Processing jobs failing

9 views
Skip to first unread message

Tyler Mitchell

unread,
Feb 18, 2009, 5:58:07 PM2/18/09
to pTolemy3D
Hi, I've worked through the getting started instructions and am
stuck.
When I run my processing jobs, I'm getting the error:
"ACTION=READBINARY. The file specified no longer exists: /Users/tyler/
Desktop/ptconsole/webroot_cfmlapps/cfmlWebContext_1/ptconsole/working/
output/00x-124518400y45875200.jp2"

Indeed the file does not exist. I have some new files in /working/
input but nothing in output.

I'm running this on Mac OSX. I've also ensured full write access to
this folder.

Looks like a very promising project, congratulations and best wishes.

Tyler

Mark Korver

unread,
Feb 19, 2009, 2:36:06 AM2/19/09
to pTolemy3D
It looks like the png to jp2 conversion is not working for you.

ptconsole/udf/convert.cfm is the file wrapping the call to the
jj2000.jar file (in lib directory)

for this to work with the ptconsole app it also has to be working from
the commandline like this

java -classpath jj2000-5.1-mod.jar JJ2KEncoder -i 00x0y0.png -o
00x0y0.png -tiles 1024 1024 -pph_tile on -rate 0.8 -Alayers 0.9 +1 -
Qtype reversible -Wlev 3 -debug

if you can go to the input directory, use one of the downloaded pngs
in the commandline above and get it to output a jp2 , it should also
run via the web application.

I suspect that it just a matter setting up OS X JAVA_HOME environment
variable. I have no OS X experience but I think the below link is
relevant?

http://www.oreillynet.com/mac/blog/2001/04/mac_os_x_java_wheres_my_java_h.html

Mark Korver

unread,
Feb 19, 2009, 2:45:14 AM2/19/09
to pTolemy3D
I forgot to mention the other main reason for failure when "running"
jobs.

The tiles that ptconsole creates will go outside of the normal
-180,-90,180,90 bounding box of the world. This is because the jp2
tile structure starts from the bottom up (00.0016 Decimal Degrees
tilewidth) and increases level by level by a factor of 8, see
http://trac.ptolemy3d.org/wiki/PtolemyDataTileSystem.

some wms systems will give you an error when you make a bbox query
outside of this box. As a work around you can use the map tab to zoom
in a bit before you process data. This mostly is of concern when are
making global tiles, so smaller regions are normally not a problem.

On Feb 19, 1:36 am, Mark Korver <mwkor...@gmail.com> wrote:
> It looks like the png to jp2 conversion is not working for you.
>
> ptconsole/udf/convert.cfm is the file wrapping the call to the
> jj2000.jar file (in lib directory)
>
> for this to work with the ptconsole app it also has to be working from
> the commandline like this
>
> java -classpath jj2000-5.1-mod.jar JJ2KEncoder -i 00x0y0.png -o
> 00x0y0.png -tiles 1024 1024 -pph_tile on -rate 0.8 -Alayers 0.9 +1 -
> Qtype reversible -Wlev 3 -debug
>
> if you can go to the input directory, use one of the downloaded pngs
> in the commandline above and get it to output a jp2 , it should also
> run via the web application.
>
> I suspect that it just a matter setting up OS X JAVA_HOME environment
> variable.  I have no OS X experience but I think the below link is
> relevant?
>
> http://www.oreillynet.com/mac/blog/2001/04/mac_os_x_java_wheres_my_ja...

asantiago

unread,
Feb 19, 2009, 4:33:51 PM2/19/09
to pTolemy3D
Hi Tyleer,
as Mark sugests, please try with a BBOX like: -100,-60,100,60

it works for me in my Linux machine.

Tyler Mitchell

unread,
Feb 19, 2009, 4:54:20 PM2/19/09
to pTolemy3D
Hi guys,
I tried with a fairly small bbox at first anyway. -124,50,-120,54 -
or something similar.

The command line running of the process gave me an exception. When I
copy pasted from the web page debug output, I got this message:
"Exception in thread "main" java.lang.SecurityException: sealing
violation: package jj2000.j2k.util is sealed"
When I ran/copied what Mark wrote I got: "Exception in thread "main"
java.lang.NoClassDefFoundError: JJ2KEncoder"

How can I clear the Jobs queue to start over?

mwkorver

unread,
Feb 19, 2009, 11:01:24 PM2/19/09
to pTolemy3D
Just want to confirm that the way I had the command line written
above, the jj2000-5.1-mod.jar file and the input png would have to be
in the same directory for it to work. When used in the ptconsole code
all paths are explicitly defined at run time. Did you run it that way
with all the parts in one directory?

aah I just noticed a mistake, it should read
java -classpath jj2000-5.1-mod.jar JJ2KEncoder -i 00x0y0.png -o
00x0y0.jp2 -tiles 1024 1024 -pph_tile on -rate 0.8 -Alayers 0.9 +1 -
Qtype reversible -Wlev 3 -debug

My apologies, I had both input and output the same file name above,
but that doesn't seem to be the problem.

I had this problem once before with something else, the sealing
violation could be caused by 2 apps that use the same jj2000.j2k.util,
with one in the java classpath before the other. Do you have
something else installed that may be using jj2000?

Here is a post about what sounds like the same problem.

http://kenta.blogspot.com/2005_11_01_archive.html

But he goes on the rebuild the jar such that it will not conflict.
Maybe this is what we need to do.

asantiago

unread,
Feb 20, 2009, 10:44:22 AM2/20/09
to pTolemy3D
Hi Tyler,
could you confirm us if you have installed the JAI_ImageIO package on
your system?

JAI_ImagIO is based on JJ2000 package and 'ptconsole' uses a slightly
modified version of JJ2000 (attached to ptconsole) to accept PNG as
input.
If you have JAI_ImageIO installed it could produce the "sealed"
problem.

Tyler Mitchell

unread,
Feb 20, 2009, 12:09:37 PM2/20/09
to pTolemy3D
On Feb 20, 7:44 am, asantiago <asantia...@gmail.com> wrote:
> Hi Tyler,
> could you confirm us if you have installed the JAI_ImageIO package on
> your system?

I'll give Mark's other stuff a try too, but off the top of my head I
doubt I have JAI_ImageIO installed - that is, I've never meant to
install it specifically. I'm not a java developer, nor even a power
user, so whatever is on my Mac is there because of whatever Apple, or
other apps, thought I should have :) I wouldn't be surprised, though
I'm so clueless I wouldn't even know how to check!

Tyler Mitchell

unread,
Feb 20, 2009, 12:11:03 PM2/20/09
to pTolemy3D
On Feb 19, 8:01 pm, mwkorver <mwkor...@gmail.com> wrote:
> Did you run it that way
> with all the parts in one directory?

Yes, that's right.

> My apologies, I had both input and output the same file name above,
> but that doesn't seem to be the problem.

Not a problem, I noticed it and switched it anyway.

> something else installed that may be using jj2000?

I highly doubt it. If I do, I don't know about it :)

> http://kenta.blogspot.com/2005_11_01_archive.html

I'll have a peek.
Thanks guys,
Tyler

Tyler Mitchell

unread,
Feb 20, 2009, 12:12:03 PM2/20/09
to pTolemy3D
> How can I clear the Jobs queue to start over?

Still wondering about this too. In case my jobs are flawed, I don't
know how to remove them.

mwkorver

unread,
Feb 20, 2009, 2:33:59 PM2/20/09
to pTolemy3D
Whenever you go to the the JOBS tab and generate a set of queue items
for whatever level you want to create, it clears all the previous
queue items before it at that level, its not additive.

So if you go back to the MAP tab and zoom in one step to define a new
BBOX, the session records this and shows same BBOX on JOBs tab. when
you hit the button there to push the jobs to the queue you have a new
set of jobs.

Sorry, its still not working for you, but when it works you can
kind've play with different wms sources by manually entering them in
the MAP tab, and basically "paint the globe" with content from those
servers.

mwkorver

unread,
Feb 20, 2009, 2:35:42 PM2/20/09
to pTolemy3D
just want you to know we are looking into it now on a Mac.

mwkorver

unread,
Feb 20, 2009, 4:38:25 PM2/20/09
to pTolemy3D
Please see ptconsole wiki page. At the bottom is attached a repacked
jar file which we hope is the fix for your problem.

http://trac.ptolemy3d.org/wiki/PtolemyToolPtconsole

On Feb 20, 11:11 am, Tyler Mitchell <tmitchell.os...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages