I am trying to upload photos using the java big applet. Th eapplet is not pulling the albums it is just hanging. Here is the stack trace
Exception in thread "Thread-8" java.lang.IllegalArgumentException: new child is an ancestor
at javax.swing.tree.DefaultMutableTreeNode.insert(Unknown Source)
at javax.swing.tree.DefaultMutableTreeNode.add(Unknown Source)
at com.gallery.GalleryRemote.GalleryComm2$AlbumListTask.list22(GalleryComm2.java:805)
at com.gallery.GalleryRemote.GalleryComm2$AlbumListTask.runTask(GalleryComm2.java:613)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.run(GalleryComm2.java:290)
at java.lang.Thread.run(Unknown Source)
----
The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: 1.4.4
Apache version: 2.0.48
PHP version (don't just say PHP 4, please): 4.3.3
Graphics Toolkit: imagemajic
Operating system: Suse Linux 9.0
Web browser/version (if applicable): All of them
Posts: 13451
[Moved to Gallery Remote]
Posts: 1479
That looks like a corrupted Gallery, where an album appears in different places in the hierarchy. I don't really know how to diagnose and fix this. Can the Gallery support help out?
Posts: 11
Yes I came to the same conclussion but how do I find out which one
Posts: 11
I tried it with gallery remote full version and the same thing is happening. Can anyone help me here as it it kind of an urgent to get it fixed as it is our production Photo app here. Thanks
Posts: 1479
[Moved back to Troubleshooting]
Posts: 13451
LORDs_diakonos, what happens if you do a form based upload, with debug mode enabled ( FAQ Gallery:c.31 ) ?
Posts: 11
it works fine. I only tried one album but we have like 267 albumns here is the output
Processing status...
- Adding tuxhammer.png
Resizing/compressing original image
No resizing required
File /srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.png type 3.
Executing:
'/usr/bin/convert' -quality 90 -size 300x300 +profile '*' '/srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.png' -geometry 300x300 '/srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.thumb.png'
Results:
none
Debug messages::
Status: 0 (expected 0)
Executing:
'/usr/bin/jhead' '/tmp/galleryOtYrxM'
Results:
Not JPEG: /tmp/galleryOtYrxM
Debug messages::
Status: 0 (expected 0)
- Resizing tuxhammer
Executing:
'/usr/bin/convert' -quality 90 -size 640x640 +profile '*' '/srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.png' -geometry 640x640 '/srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.sized.png'
Results:
none
Debug messages::
Status: 0 (expected 0)
Executing:
'/usr/bin/jhead' '/srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.png'
Results:
Not JPEG: /srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.png
Debug messages::
Status: 0 (expected 0)
Executing:
'/usr/bin/jhead' '/srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.png'
Results:
Not JPEG: /srv/photo.nbbc.edu/htdocs/albums/publications/tuxhammer.png
Debug messages::
Status: 0 (expected 0)
No email sent as no valid email addresses were found
Posts: 13451
That looks like a valid upload, doesn't it appear after you have finished uploading?
Posts: 11
Yes my problem is I cannot use the full applet to upload cause it is having trouble reading the albums. It just hangs as it reads the albums. The gallery remote guy said it sounds like a corrupted album. I don't know how to find or fix this.
Posts: 13451
Well, the debug result you provided looks like a valid upload, but still the image doesn't display after it finished? What is the url?
Posts: 11
The image does display. It is only internal. The problem is the full applet
Posts: 13451
Right. Hmm, if the applet is the only thing showing problems, i'll need to move it back to the GR forum.
Paour??
Posts: 11
The applet is the thing showing problems but it related to a bad album or corrupted album but i am not sure which one. I hav elike 267 albums.
Posts: 1
we're you ever able to resolve this issue? i am having the same problem.
>>update: make sure your top-level album has a title. this worked for me.