java.lang.IllegalArgumentException: The icon should not be n

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

java.lang.IllegalArgumentException: The icon should not be n

Postby weijenli » Wed May 20, 2015 12:41 pm

I have a Java process that starts another Java GUI process (which uses JIDE).

When I ran it I saw a lot of "Can't create cache file!".
and saw this stacktrace:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: The icon should not be null.
at com.jidesoft.icons.MenuCheckIcon.<init>(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetWindowsUtils.initComponentDefaultsWithMenu(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installDefaultLookAndFeelAndExtension(Unknown Source)

Running the GUI process directly won't see the exception.
It only happens when the GUI process is started from another process using Runtime.getRunTime.exec

How do I solve this issue?
What and where are these "cache file" created?


Thanks,
Weijen
weijenli
 
Posts: 12
Joined: Thu Sep 19, 2013 5:48 am

Re: java.lang.IllegalArgumentException: The icon should not

Postby JIDE Support » Wed May 20, 2015 3:29 pm

The error is from JDK source code ImageIO. We are not sure what's going on under the hood. Could it be a permission issue?
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: java.lang.IllegalArgumentException: The icon should not

Postby weijenli » Thu May 21, 2015 5:43 am

Yes, this is very much like a permission issue.

This is what I have:
JavaProcessA uses Runtime.getRunTime.exec to start JavaProcessB, and JavaProcessB is a JIDE GUI.
We run this on Windows.
If the user is Administrator, then everything is fine.
However, if the user is not Administrator, JavaProcessB crashes.

The issue seems JIDE writes some temporary cache, because I see "Can't create cache file!" in the ErrorStream.
But how do we setup the user permission? The user cannot be administrator.
At least we should find out where this cache file is written, so we can manually change the permission of a specific folder.

One thing to note, it works well if we run JavaProcessB directly from command line.
Thanks,
Weijen
weijenli
 
Posts: 12
Joined: Thu Sep 19, 2013 5:48 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 13 guests

cron