Remote Problems...JRE related?

herk

Joined: 2004-02-21
Posts: 4
Posted: Mon, 2004-02-23 00:27

Ok I got the fix. Or rather I found the problem, a single line that sets the preferred size of the albums panel, and if it's simply commented out everything seems to work just fine.

The line is in MainFrame.java:

((JLabel) jAlbumTree.getCellRenderer()).setPreferredSize(new Dimension(GalleryRemote._().properties.getIntProperty("albumPictureDividerLocation"), -1));

I believe commenting this line out (add // to the start of the line) and rebuilding your GalleryRemote.jar will get things up and running properly for Linux users. Java seems to handle the sizing of the panel just fine.

If you don't feel like checking the source tree out (which doesn't even seem to be working now on account of a strange sourceforge error), I've put a copy of my GalleryRemote.jar up at:

http://www.fnordia.org/code/GalleryRemote.jar

It might have some leftover debugging info left in, maybe some other changes I made on my quest to fix this glitch. I tried to check it all out fresh and make that single little change but cvs seems borked right now.

Also, I've noticed on a coupel occasions the first time I login I don't see any albums, but logging out and back in always makes them appear. Other times, it shows up fine on the first try, haven't figured out what's up with that yet. I'm also not sure why this line in particular is a problem on Linux, and I probably won't bother to try to find out. Hopefully the developers will. :)

Kudos on a great product, I've been very impressed, thus the determination to get this app up and running on Linux.

Cheers.

 
Donovan_NS
Donovan_NS's picture

Joined: 2004-02-18
Posts: 2
Posted: Mon, 2004-02-23 01:03

Woooohooooo!  It works now!!  Awesome!!
Thanks so much! :P

(I downloaded the replacement .jar, in case anyone is wondering, quick and painless)

 
cmize

Joined: 2003-07-21
Posts: 5
Posted: Mon, 2004-02-23 02:42

Yep, herk's replacement .jar file did the trick. Thanks!

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2004-02-23 17:23

herk, thanks very much for figuring this out! Does the tree look okay using that method? On Windows, the album names are cut off and can't be scrolled.

Now that we know what was wrong, I'll try to find a solution for both Linux and other platforms. I hope you Linux users will be okay to test this before I release what I hope will be the last of the 1.3.x fixes.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2004-02-23 18:47

I've just uploaded a fix on the official "nightly" site which should fix the Linux tree problem using herk's modification.

The tree now uses tooltips to show the names of albums when they're too long, which is much better UI anyway, and removes a bad solution to a badly designed part of Swing.

Please test it and let me know if it works adequately on Linux. If so, I'll release 1.3.2 very soon.

 
leeep

Joined: 2004-02-24
Posts: 5
Posted: Tue, 2004-02-24 12:02

i am having continual problems with java and the installer for gallery remote. i haven't used the program mainly because i can't get it to install! :(

i am running sun jre v1.4.2_03 on Windows 2000 SP4.

thanks for any help!

-eric

after an error stating, "Installer User Interface Mode Not Supported" here is the output from the error log:

Quote:
java.lang.NullPointerException
at com.zerog.ia.installer.Main.a(DashoA8113)
at com.zerog.ia.installer.Main.d(DashoA8113)
at com.zerog.ia.installer.Main.d(DashoA8113)
at com.zerog.ia.installer.Main.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)

 
herk

Joined: 2004-02-21
Posts: 4
Posted: Tue, 2004-02-24 16:42
paour wrote:
I've just uploaded a fix on the official "nightly" site which should fix the Linux tree problem using herk's modification.

The tree now uses tooltips to show the names of albums when they're too long, which is much better UI anyway, and removes a bad solution to a badly designed part of Swing.

Please test it and let me know if it works adequately on Linux. If so, I'll release 1.3.2 very soon.

Seems to work fine on Linux so far. I'll check it out a little more once home from work, but the albums are displaying even better now, I think they had a bunch of whitespace in the tree that shouldn't have been there and isn't anymore.

Looks good on my end.

Kudos!

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2004-02-25 23:29

leeep, which download are you using? Also, please create a different thread for this; it's a separate problem...

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2004-02-25 23:35

I've uploaded version 1.3.2-b6, which contains a lot of changes... I started working on those changes because I noticed that after I removed the hack for the album tree width, adding pictures to an album would cause the album name to be truncated.

For reasons I cannot fathom, Swing JTrees do not recalculate the width of a node even if I send events to the effect that the node changed. I tried working around this 10 different ways and couldn't crack the problem. So now the nodes are made wider to accomodate them being bolded and having the number of items in parens.

Starting from there, I cleaned up a bunch of the event handling for albums being changed and created, to prevent losing the disclosure state of the tree too often.

Please test adding pictures to albums, uploading, creating and moving albums.

Thanks!

 
Mickey

Joined: 2004-03-07
Posts: 10
Posted: Sun, 2004-03-07 18:13

Hi, I too have a problem accessing my Gallery via GalleryRemote. It works perfectly till GR 1.2.1, but from version 1.3 (I tryied every version from 1.3 to 1.3.2b7), the LogIn process hangs during "Fetching Albums". No log is written.
I am on OSX 10.3.2 for GR and the gallery itself is on a RedHat 7.2 host.
I repeat everything runs fine under GR 1.2.1 with all other things being the same. paour, may I PM you with info needed to log into my Gallery ?

thanks a lot

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2004-03-08 21:25

Hum... it works fine for me... I can see your albums (and that you're French-speaking :-) ).

Can you try the latest 1.3.2 beta? If that doesn't work, please post the log.

FAQ Gallery Remote:1

FAQ Gallery Remote:3

 
Mickey

Joined: 2004-03-07
Posts: 10
Posted: Tue, 2004-03-09 05:56

But, I do not have a single log in that case... It seems to hang in the very first stage of the connection process. I suppose (I am not home for now) the settings to produce a log are correct (under 1.2.x, the log is written).

The client runs on OS X 10.3.2, java 1.4.2. I am sure it works under windows. If it worked with GR 1.2.x and not in 1.3.x, did you change something in the connect process ?
I can surf normally, but I have a router. Are you using exotic ports ?

I already tried 1.3.2b7 to no avail (see my previous post)

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2004-03-09 14:14

There always is a log. However, in GR 1.3.x, the log is in a different place. Please read the FAQ entry.

 
Mickey

Joined: 2004-03-07
Posts: 10
Posted: Tue, 2004-03-09 17:22

I PM you a log (sorry for not seeing the log was now in /tmp)

Mickey

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2004-03-09 18:13

An exception is probably thrown, and is not printed to the log.

Try running GR in a DOS window using this command-line (from the main GR directory):

java -jar GalleryRemote.jar

 
Mickey

Joined: 2004-03-07
Posts: 10
Posted: Tue, 2004-03-09 18:23

From "Gallery Remote.app/Contents/Resources/Java" directory, running "java -jar GalleryRemote.jar" gives:

Instanciating Gallery Remote...
Logger thread running
Creating log file in /tmp
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.gallery.GalleryRemote.PictureInspector.jbInit(PictureInspector.java:195)
at com.gallery.GalleryRemote.PictureInspector.<init>(PictureInspector.java:91)
at com.gallery.GalleryRemote.MainFrame.<init>(MainFrame.java:155)
at com.gallery.GalleryRemote.GalleryRemoteMainFrame.initializeGR(GalleryRemoteMainFrame.java:58)
at com.gallery.GalleryRemote.GalleryRemote.main(GalleryRemote.java:167)
Caused by: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(ImageIcon.java:138)
at com.gallery.GalleryRemote.util.ImageUtils.javaLoad(ImageUtils.java:165)
at com.gallery.GalleryRemote.util.ImageUtils.<clinit>(ImageUtils.java:605)
... 5 more

So I need maybe to give more args to the command ? I am on MacOSX... The DOS window you mention is a Unix console window...

--EDIT-- I put after this one a post with a log from the terminal when I launch the App "à la MacOSX" in the terminal...

 
Mickey

Joined: 2004-03-07
Posts: 10
Posted: Tue, 2004-03-09 18:27

OK.

I did merely an "open Gallery Remote.app/Contents/MacOS/JavaApplicationStub"-> here you have some thrown exceptions...

/Volumes/Michel\ Ti\ Tools/Graphics/Gallery\ Remote/Gallery\ Remote.app/Contents/MacOS/JavaApplicationStub; exit
[mrabozee@Michel-Ti mrabozee]$ /Volumes/Michel\ Ti\ Tools/Graphics/Gallery\ Remote/Gallery\ Remote.app/Contents/MacOS/JavaApplicationStub; exit
Instanciating Gallery Remote...
com.apple.macosx.AntiAliasedGraphicsOn has been deprecated. Please switch to apple.awt.Antialiasing.
com.apple.macosx.AntiAliasedGraphicsOn has been deprecated. Please switch to apple.awt.Antialiasing.
Logger thread running
Creating log file in /tmp
---ATTENTION!--- JSX could not recognize your implementation of java, which is:
implVendor='Apple Computer, Inc.'
specVersion='1.4'
implVersion='1.4.2_03'
In the meantime, JSX will try the standard implementation for Java 1.4 - which will probably work
Please post the above information to:

- in particular, please state whether the standard implementation worked or not, for both writing and reading.
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NullPointerException
at com.gallery.GalleryRemote.model.Gallery.getChildCount(Gallery.java:917)
at com.gallery.GalleryRemote.MainFrame$2.run(MainFrame.java:482)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NullPointerException
at com.gallery.GalleryRemote.model.Gallery.getChildCount(Gallery.java:917)
at com.gallery.GalleryRemote.MainFrame$2.run(MainFrame.java:482)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NullPointerException
at com.gallery.GalleryRemote.model.Gallery.getChildCount(Gallery.java:917)
at com.gallery.GalleryRemote.MainFrame$2.run(MainFrame.java:482)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NullPointerException
at com.gallery.GalleryRemote.model.Gallery.getChildCount(Gallery.java:917)
at com.gallery.GalleryRemote.MainFrame$2.run(MainFrame.java:482)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NullPointerException
at com.gallery.GalleryRemote.model.Gallery.getChildCount(Gallery.java:917)
at com.gallery.GalleryRemote.MainFrame$2.run(MainFrame.java:482)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
apple.awt.EventQueueExceptionHandler Caught Throwable :
java.lang.NullPointerException
at com.gallery.GalleryRemote.model.Gallery.getChildCount(Gallery.java:917)
at com.gallery.GalleryRemote.MainFrame.fetchAlbums(MainFrame.java:731)
at com.gallery.GalleryRemote.MainFrame.actionPerformed(MainFrame.java:1274)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.NullPointerException
at com.gallery.GalleryRemote.model.Album.setParentAlbum(Album.java:612)
at com.gallery.GalleryRemote.GalleryComm2$AlbumListTask.list22(GalleryComm2.java:862)
at com.gallery.GalleryRemote.GalleryComm2$AlbumListTask.runTask(GalleryComm2.java:707)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.run(GalleryComm2.java:276)
at java.lang.Thread.run(Thread.java:552)

Hope this helps helping me :wink:

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2004-03-09 23:46

Mickey, I know why this happens: GR is trying to auto-reload a state that was saved by a previous version. In the preferences dialog, files tab, uncheck auto load state. Restart GR, log on, the exception should no longer be there.

 
Mickey

Joined: 2004-03-07
Posts: 10
Posted: Sun, 2004-03-21 18:09

Hello... Sorry to answer so late, I was sent away for work...

In the Preferences under OSX, I do not have any "Files" tab. Only General, Upload, Slideshow, URLs, Proxy Settings, File Menu, Quick Config.
Under the File Menu I have a checkbox "Do you want Gallery Remote to load the last saved file when it starts". I unchecked this checkbox. But the problem persisted.

But you gave me an idea: I deleted the properties preferences and the file (.grg) and recreated it and all went fine. Thanks for giving me the clue.

Mickey

 
crangelmd

Joined: 2004-03-17
Posts: 13
Posted: Sun, 2004-03-21 22:30

Hi,

I'm getting the following error:": java.io.EOFException: Unexpected end of ZLIB input stream"

Running Win2K, gallery remote 1.3.1, sun java VM; upgraded to "nightly" file (1.3.2-b8) and still getting the same error.
----------------------
Here is the log...

46641|INFO |GalComm2 |Preparing to upload...
46641|TRACE|GalComm2 |add-item parameters: [HTTPClient.NVPair[name=cmd,value=add-item], HTTPClient.NVPair[name=protocol_version,value=2.3], HTTPClient.NVPair[name=set_albumName,value=test], HTTPClient.NVPair[name=caption,value=Fgallery1-1.jpg], HTTPClient.NVPair[name=force_filename,value=Fgallery1-1.jpg], null]
46672|TRACE|StatusBar |level: 0 - 12 pictures / 638 K - 0
46672|TRACE|GalComm2 |Url: /gallery/gallery_remote2.php
46672|TRACE|GalComm |Sending cookie: PHPSESSID=f135c0c6af693208b30f65763676dfbc; path=/; domain=shutternuts.com
46750|TRACE|StatusBar |level: 0 - 12 pictures / 638 K - 0
48610|TRACE|GalComm |Accepting cookie: PHPSESSID=f135c0c6af693208b30f65763676dfbc; path=/; domain=shutternuts.com
48766|ERROR|GalComm2 |java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.util.zip.GZIPInputStream.read(Unknown Source)
at HTTPClient.HTTPResponse.readResponseData(HTTPResponse.java:936)
at HTTPClient.HTTPResponse.getData(HTTPResponse.java:501)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.requestResponse(GalleryComm2.java:356)
at com.gallery.GalleryRemote.GalleryComm2$UploadTask.uploadPicture(GalleryComm2.java:658)
at com.gallery.GalleryRemote.GalleryComm2$UploadTask.runTask(GalleryComm2.java:576)
at com.gallery.GalleryRemote.GalleryComm2$GalleryTask.run(GalleryComm2.java:276)
at java.lang.Thread.run(Unknown Source)

48766|INFO |GalComm2 |Error: java.io.EOFException: Unexpected end of ZLIB input stream
51766|TRACE|StatusBar |level: 0 - 12 pictures / 638 K - 0
55328|INFO |MainFrame |Shutting down GR
55360|TRACE|PreviewFra|1350496 - 5050368
55500|TRACE|PreviewFra|2492952 - 5050368
55500|TRACE|PreviewFra|2491792 - 5050368
55610|TRACE|PreviewFra|2492320 - 5050368
55610|INFO |MainFrame |Shutting down log
----------------------------------------

Any thoughts?

Thanks,

Chrissie

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2004-03-21 23:37

You should disable zip output on your web server, see if that fixes it.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Sun, 2004-03-21 23:37

Closing this topic, as all the bugs it was started for have been fixed.