[IDE] Errors When opening/Closing/Saving a Project

Asked by Harry Readinger

The following is example output of what sometimes shows up when I Open/save/close projects in the Sikuli IDE (1.0rc3 (r905)):

java.lang.reflect.InvocationTargetException
 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 org.sikuli.ide.SikuliIDE$MenuAction.actionPerformed(SikuliIDE.java:1065)
 at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
 at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
 at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
 at javax.swing.AbstractButton.doClick(Unknown Source)
 at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
 at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
 at java.awt.Component.processMouseEvent(Unknown Source)
 at javax.swing.JComponent.processMouseEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Sour

ce)
 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.Window.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(Unknown Source)
 at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
 at java.awt.EventQueue.access$000(Unknown Source)
 at java.awt.EventQueue$1.run(Unknown Source)
 at java.awt.EventQueue$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknow

n Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.awt.EventQueue$2.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Caused by: java.lang.NullPointerException
 at org.sikuli.ide.ImageButton.createFromString(ImageButton.java:241)
 at org.sikuli.ide.SikuliPane.replaceWithImage(SikuliPane.java:617)
 at org.sikuli.ide.SikuliPane.parseLine(SikuliPane.java:568)
 at org.sikuli.ide.SikuliPane.parseRange(SikuliPane.java:528)
 at org.sikuli.ide

.SikuliPane.parse(SikuliPane.java:543)
 at org.sikuli.ide.SikuliPane.parse(SikuliPane.java:546)
 at org.sikuli.ide.SikuliPane.read(SikuliPane.java:427)
 at org.sikuli.ide.SikuliPane.loadFile(SikuliPane.java:372)
 at org.sikuli.ide.SikuliPane.loadFile(SikuliPane.java:383)
 at org.sikuli.ide.SikuliIDE$FileAction.doLoad(SikuliIDE.java:1411)
 ... 43 more

Sometimes restarting the IDE fixes this issue, sometimes it doesnt, sometimes even a restart doesnt fix it.. Right now it seems to come and go as it pleases, but it is mostly with files I have edited outside the IDE (tested with those files open in other editors at the same time and with SIkuli IDE being the only editor open)

Any insight into what the errors actually mean/root cause?

System:

Windows 7 64-bit
SikuliX1.0rc3-r905

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Harry Readinger
Solved:
Last query:
Last reply:
Revision history for this message
Harry Readinger (temporary22) said :
#1

Also if these errors occur when opening a .sikuli file, the file is opened as "untitled"

Revision history for this message
Harry Readinger (temporary22) said :
#2

Big Update: This may be a separate issue, but now i can no longer launch the sikuli IDE at all. Here is what I did since posting

1) Restarted my computer
    After this step, I was not able to launch the IDE. It would start a 32 bit javaw process, but would not actually draw any window.

2) reinstall Sikuli
    No Change

3) uninstall all versions of JRE and JDK and SIkuli

4) reinstall 32 bit JRE/JDK 6

5) Reinstall Sikuli

Now I am getting an error saying "Unable to access jarfile C:\Program Files (x86)\Sikuli X\sikuli-ide.jar"

Not quite sure what the issue is now, the libraries still work fine with eclipse, so it seems to be a problem specifically with the IDE executable (possibly)

Revision history for this message
Harry Readinger (temporary22) said :
#3

Just re-checked the installation directory and it looked like the installer just didn't copy over all the files. So now i actually HAVE a sikuli-script.jarm and am getting the "spawn javaw process but don't open window" behavior again.

Revision history for this message
Harry Readinger (temporary22) said :
#4

IDE now launches thanks to https://answers.launchpad.net/sikuli/+faq/1766 Waiting to see if i still have the errors on loading.

Revision history for this message
Harry Readinger (temporary22) said :
#5

Still have the same errors on loading a file.

Revision history for this message
Harry Readinger (temporary22) said :
#6

Linked to a bug, marking as solved.