This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 8 - Pages: 1 - Last Post: 9 Feb 21, 19:33 Last Post By: davidekholm Threads: [ Previous | Next ]
AndreWolff

Posts: 1,289
Registered: 14-Dec-2007
Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 14:52
 
  Click to reply to this thread Reply
Sometimes, but not always, I see in the console this crash:
engine.getSkin(); // Use of implicit object
for (AlbumObject ao : selectedObjects) System.out.println(ao); // Iterate over selected objects
window.messageBox("You can interact with any Java object");
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: illegal component position
	at java.desktop/java.awt.Container.addImpl(Unknown Source)
	at java.desktop/java.awt.Container.add(Unknown Source)
	at se.datadosen.explorer.JAlbumExplorer.addJAO(JAlbumExplorer.java:4171)
	at se.datadosen.explorer.JAlbumExplorer.addJAO(JAlbumExplorer.java:4164)
	at se.datadosen.explorer.JAlbumExplorer.viewFolder(JAlbumExplorer.java:4074)
	at se.datadosen.explorer.JAlbumExplorer.lambda$init$34(JAlbumExplorer.java:2883)
	at java.desktop/javax.swing.JTree.fireValueChanged(Unknown Source)
	at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
	at java.desktop/javax.swing.JTree.setSelectionPath(Unknown Source)
	at se.datadosen.explorer.JAlbumExplorer.gotoPath(JAlbumExplorer.java:3719)
	at se.datadosen.explorer.JAlbumExplorer.gotoLastLocation(JAlbumExplorer.java:3808)
	at se.datadosen.explorer.JAlbumExplorer.lambda$setRootFolder$48(JAlbumExplorer.java:3885)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Skin loading: 0.625s
and sometimes I see this mesage:
Skin loading: 1.291s
javax.imageio.IIOException: Can't get input stream from URL!
I never see these messages in the batch file used to regenerate all my sample albums.

Where does this come from and can I do something to avoid the messages completely?
davidekholm

Posts: 3,440
Registered: 18-Oct-2002
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 15:54   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
I've frankly never seen those error messages before. Really don't know what's causing them. As always, see if you can reproduce them at will, then we have somewhere to start.
AndreWolff

Posts: 1,289
Registered: 14-Dec-2007
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 16:18   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
I've frankly never seen those error messages before. Really don't know what's causing them.
Well I did search in my skin for the text ‘ // Iterate over selected objects’ and did not find it, so this text must be somewhere in your code
As always, see if you can reproduce them at will, then we have somewhere to start..
Well it is random and never in a batch file
ctwist

Posts: 471
Registered: 27-Sep-2003
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 16:30   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
" // Iterate over selected objects "
is not part of the error stack.

This is added to system console when you open jAlbum.

Do a web search for:
java "illegal component position"

This may give you some insight into what could cause it.
davidekholm

Posts: 3,440
Registered: 18-Oct-2002
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 17:10   in response to: ctwist in response to: ctwist
 
  Click to reply to this thread Reply
Exactly Chris
AndreWolff

Posts: 1,289
Registered: 14-Dec-2007
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 17:37   in response to: ctwist in response to: ctwist
 
  Click to reply to this thread Reply
ctwist wrote:
Do a web search for:
java "illegal component position"

This may give you some insight into what could cause it.

Well Chris you overestimate my JAVA knowledge, what I see there it too complicated for me and I am not sure whether the error comes from the jAlbum core or from the skin.

But the error is not reproducibly and it seems to do no harm in the generated albums so I can live with it.
You don't see at all this error if the Console window is not open.

I did find the cause of the other reproducible error
javax.imageio.IIOException: Can't get input stream from URL!
That was caused by an invalid target URL of a web-location.
davidekholm

Posts: 3,440
Registered: 18-Oct-2002
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 19:07   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Ok, the first error seems jAlbum core related. It's happening when the explore view is populated with thumbnails it seems.
AndreWolff

Posts: 1,289
Registered: 14-Dec-2007
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 19:23   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Ok, the first error seems jAlbum core related. It's happening when the explore view is populated with thumbnails it seems.
Do you have any idea why it is not reproducible?
davidekholm

Posts: 3,440
Registered: 18-Oct-2002
Re: Crash after engine.getSkin() and message Can't get input stream from URL!
Posted: 9 Feb 21, 19:33   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
Nope :-(
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums