impossible to upload pics with applet !!!

queeroux

Joined: 2004-07-19
Posts: 2
Posted: Mon, 2004-07-19 18:44

I can upload with applet big and form, but with applet, I can't.
When I push "upload" button, nothing happens !
My teacher use Gallery too, and I can add pics on his site with applet, so this may be a configuration problemn, or a server problem.

On JAVA console, I have 2 errors :

4735|ERROR|ImageUtils|java.lang.ClassFormatError: com/drew/imaging/jpeg/JpegProcessingException (Bad magic number)

java.lang.SecurityException: class "com.gallery.GalleryRemote.util.OsShutdown"'s signer information does not match signer information of other classes in the same package

What can I do ?
Thanks

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2004-07-20 18:28

Did you upload Gallery to your web server via FTP? The JAR files need to be uploaded in binary mode.

 
queeroux

Joined: 2004-07-19
Posts: 2
Posted: Tue, 2004-07-20 19:03

yes, I downloaded jar files in binary mode. (it was auto mode before)
but result is the same.

 
jsapreston

Joined: 2004-07-23
Posts: 1
Posted: Fri, 2004-07-23 00:30

I have exactly the same problem. I tried to upload the jars via binary mode on CuteFTP and this didnt work so I used the shell based ftp to upload manually in binary. Still the problem persisted. I then updated my gallery 1.4.3 to 1.4.4 and still get the same error as yourself. Finally I downloaded Gallery Remote and this works ok...

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2004-07-26 15:58

Th correct file-size for the jars in G 1.4.4-RC3 should be:

153099 GalleryRemoteApplet.jar
221227 GalleryRemoteAppletMini.jar
215262 GalleryRemoteHTTPClient.jar
9786 applet_img.jar

(in bytes)

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Sun, 2004-08-08 14:12

Same problem here.
Filesizes are corret.

1.4.4 Final.

Nothing happens after click on upload-button.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2004-08-08 19:19

Can someone attach a complete Java log of this problem?

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2004-08-11 16:41

Adding picture to the queue:

103759|TRACE|Album     |addPictures: [D:\Path\12 - GEM. ABENDESSEN\IMG_1626.JPG]

 103759|TRACE|Album     |addPictures (expanded): [D:\Path\12 - GEM. ABENDESSEN\IMG_1626.JPG]

 105361|ERROR|ImageUtils|java.lang.ClassFormatError: com/drew/imaging/jpeg/JpegProcessingException (Bad magic number)

	at java.lang.ClassLoader.defineClass0(Native Method)

	at java.lang.ClassLoader.defineClass(Unknown Source)

	at java.security.SecureClassLoader.defineClass(Unknown Source)

	at sun.applet.AppletClassLoader.findClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.applet.AppletClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClassInternal(Unknown Source)

	at java.lang.Class.forName0(Native Method)

	at java.lang.Class.forName(Unknown Source)

	at com.gallery.GalleryRemote.util.ImageUtils.getExifTargetOrientation(ImageUtils.java:994)

	at com.gallery.GalleryRemote.model.Album.addPictureInternal(Album.java:332)

	at com.gallery.GalleryRemote.model.Album.addPictureInternal(Album.java:326)

	at com.gallery.GalleryRemote.model.Album.addPictures(Album.java:289)

	at com.gallery.GalleryRemote.GRAppletMini.addPictures(GRAppletMini.java:157)

	at com.gallery.GalleryRemote.GRAppletMini.actionPerformed(GRAppletMini.java:282)

	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

	at java.awt.Component.processMouseEvent(Unknown Source)

	at java.awt.Component.processEvent(Unknown Source)

	at java.awt.Container.processEvent(Unknown Source)

	at java.awt.Component.dispatchEventImpl(Unknown Source)

	at java.awt.Container.dispatchEventImpl(Unknown Source)

	at java.awt.Component.dispatchEvent(Unknown Source)

	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

	at java.awt.Container.dispatchEventImpl(Unknown Source)

	at java.awt.Component.dispatchEvent(Unknown Source)

	at java.awt.EventQueue.dispatchEvent(Unknown Source)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.run(Unknown Source)

Entering the "upload"-button

java.lang.SecurityException: class "com.gallery.GalleryRemote.util.OsShutdown"'s signer information does not match signer information of other classes in the same package

	at java.lang.ClassLoader.checkCerts(Unknown Source)

	at java.lang.ClassLoader.defineClass(Unknown Source)

	at java.security.SecureClassLoader.defineClass(Unknown Source)

	at sun.applet.AppletClassLoader.findClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at sun.applet.AppletClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClass(Unknown Source)

	at java.lang.ClassLoader.loadClassInternal(Unknown Source)

	at com.gallery.GalleryRemote.UploadProgress.jbInit(UploadProgress.java:93)

	at com.gallery.GalleryRemote.UploadProgress.<init>(UploadProgress.java:36)

	at com.gallery.GalleryRemote.GRAppletMini.actionPerformed(GRAppletMini.java:286)

	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)

	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)

	at java.awt.Component.processMouseEvent(Unknown Source)

	at java.awt.Component.processEvent(Unknown Source)

	at java.awt.Container.processEvent(Unknown Source)

	at java.awt.Component.dispatchEventImpl(Unknown Source)

	at java.awt.Container.dispatchEventImpl(Unknown Source)

	at java.awt.Component.dispatchEvent(Unknown Source)

	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

	at java.awt.Container.dispatchEventImpl(Unknown Source)

	at java.awt.Component.dispatchEvent(Unknown Source)

	at java.awt.EventQueue.dispatchEvent(Unknown Source)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.run(Unknown Source)

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2004-08-11 16:59

Thanks for the logs!

The first alert is not a problem, but I've now suppressed it because it does alarm users.

I think I've corrected the second problem. Please update your applets to 1.4.1-b5 and let me know how it goes...

http://gallery.menalto.com/modules.php?op=modload&name=GalleryDocs&file=index&page=gallery1-install.remote-applets.php

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2004-08-11 17:23

Aarg. I should have read your answer earlier.
;-)

I cleaned my temporary internet-files, the java-cache.
Hard to find the java-cache.
I spent a lot of time for searching for the java-files ;-)

-----
After that:

I've tested 1.4.4 standalone and postnuke-embedded.

No chance. Same problem....

BUT:
I have a subdomain for testing scripts.
I updated to Gallery v1.4.5-cvs-b104.
And what happens: The java-applet is working, now.

So. I will update the java-files for 1.4.4 final.

Thanx for your help.

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2004-08-11 17:36

Wow. How you sugess.
Updated java-applet works ! Fine. Thanx-a-lot.

BUT
After uploading I am logged out. (postnuke)

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2004-08-11 17:43

Tested it stand-alone: No logged out.

But why i am logged out in postnuke?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2004-08-11 17:52

The problem with getting logged out with the embedded applet should be corrected in GR 1.4.1-b6.

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2004-08-11 18:36

thx again.

I don't want to disturb you the whole day.
But with "gallery_remote_applets_1.4.1-b6.zip" i am still logged out after uploading.

Sorry.

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Fri, 2004-08-13 18:48

Am I alone with this problem?
Anyone who has the samen problem?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Fri, 2004-08-13 18:49

Can you describe what you mean by logged out?

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Fri, 2004-08-13 19:24

I am using gallery as a module in postnuke.
See my site (sorry in german): w?w.carsten-volmer.de
(Click on "bilder" in the horizontal navbar).

The last album is my upload-album.

I am normally logged in through postnuke.

1)
If I download the new java-files (because of cleaning the cache), postnuke logged me out after refreshing the site. I've done no upload.
- Choose "upload picture" in the option-dropdown
- browser downloads java-files
- I see the gallery-java-applet
- I close the applet (window)
- Hit F5 (refresh)
- I am logged out

2)
- Choose "upload picture" in the option-dropdown
- browser must not download java-files because they are already installed
- I see the java-applet
- I chosse any pictures and hit "upload"
- file-upload is working (no error)
- I close the upload-window
- Hit "refresh"
- picture is now in the upload-album
- but I am logged out

pls check your pm

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Fri, 2004-08-13 19:26

So just running the applet, without uploading anything, logs you out? Strange...

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Fri, 2004-08-13 19:28
paour wrote:
So just running the applet, without uploading anything, logs you out? Strange...

YES.
The first time I have to download the applet without upload anything, logs me out.
It is strange, I know.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2004-08-18 00:20

Herr.Vorragend, I tried tracing the problem, but I can't figure out why you're getting logged out. I have replicated the problem and found a bug in the applet that may explain this strange behavior.

Can you update your applets to 1.4.1-b9 and test again? Thanks!

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Wed, 2004-08-18 09:33

I'am sorry. I am getting still logged out after uploading and refreshing.
Applets updated.

 
Herr.Vorragend
Herr.Vorragend's picture

Joined: 2004-07-16
Posts: 120
Posted: Sun, 2004-09-26 15:35

Hmm.
I have updated my site.
A completely new installation of postnuke 0.7.5.0 with a new theme (xanthia-theme).

I updated all gallery-files and GR-Files.
But after uploading a picture with the java-applet, I am logged out.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2004-09-26 21:22

The fact that users become logged out after using the applet in embedded mode has been reported, but I've never been able to find out why. I'll try again.