Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError: java.util.Properties.load(Ljava/io/Reader;)V #40

Open
mgaldzic opened this issue Jun 5, 2011 · 3 comments
Labels
Milestone

Comments

@mgaldzic
Copy link
Member

mgaldzic commented Jun 5, 2011

java.util.Properties.load was introduced in Java 6, target Java 5

re: Exception
java.lang.NoSuchMethodError: java.util.Properties.load(Ljava/io/Reader;)V

from Chris J. Myers

Hi Michal,

I get the following exception with the single jar version of libSBOL on my Mac.

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: java.util.Properties.load(Ljava/io/Reader;)V
at com.clarkparsia.empire.config.io.impl.PropertiesConfigReader.read(Unknown Source)
at com.clarkparsia.empire.config.io.impl.PropertiesConfigReader.read(Unknown Source)
at com.clarkparsia.empire.util.DefaultEmpireModule.(Unknown Source)
at com.clarkparsia.empire.Empire.init(Unknown Source)
at com.clarkparsia.empire.Empire.init(Unknown Source)
at org.sbolstandard.libSBOLj.SBOLservice.(SBOLservice.java:65)
at org.sbolstandard.libSBOLj.SBOLservice.(SBOLservice.java:70)
at org.sbolstandard.libSBOLj.SBOLutil.fromRDF(SBOLutil.java:236)

The issue appears to be that java.util.Properties.load was introduce in Java 6, and I'm using Java 5. We have found that we have lots of compatibility issues when we use things that only work in Java 6, so we target Java 5 in our builds. Is it possible for you to rewrite this to be Java 5 compatible?

Thanks,

Chris

@mgaldzic
Copy link
Member Author

mgaldzic commented Jun 5, 2011

f/u from chris:

the exception that I got did not appear when we used the separate jar files. It only appeared when we used the jar file that combined all the files (0.3). Does this make any sense to you?

@mgaldzic
Copy link
Member Author

mgaldzic commented Jun 6, 2011

Chris:
tried 0.4, and have same issue:

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: java.util.Properties.load(Ljava/io/Reader;)V
at com.clarkparsia.empire.config.io.impl.PropertiesConfigReader.read(Unknown Source)
at com.clarkparsia.empire.config.io.impl.PropertiesConfigReader.read(Unknown Source)
at com.clarkparsia.empire.util.DefaultEmpireModule.(Unknown Source)
at com.clarkparsia.empire.Empire.init(Unknown Source)
at com.clarkparsia.empire.Empire.init(Unknown Source)
at org.sbolstandard.libSBOLj.SbolService.(SbolService.java:64)
at org.sbolstandard.libSBOLj.SbolService.(SbolService.java:70)
at org.sbolstandard.libSBOLj.IOTools.fromRdfXml(IOTools.java:255)
at sbol.SbolBrowser.loadRDF(SbolBrowser.java:103)
at sbol.SbolBrowser.(SbolBrowser.java:29)
at main.Gui.executeMouseClickEvent(Gui.java:9061)
at main.Gui.mouseClicked(Gui.java:10935)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.Component.processMouseEvent(Component.java:5620)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
at java.awt.Component.processEvent(Component.java:5382)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4083)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3918)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1801)
at java.awt.Component.dispatchEvent(Component.java:3918)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:501)
at java.awt.EventQueue.access$000(EventQueue.java:80)
at java.awt.EventQueue$1.run(EventQueue.java:462)
at java.awt.EventQueue$1.run(EventQueue.java:461)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:95)
at java.awt.EventQueue$2.run(EventQueue.java:476)
at java.awt.EventQueue$2.run(EventQueue.java:475)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:84)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:473)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

@mgaldzic
Copy link
Member Author

mgaldzic commented Jun 6, 2011

and
FYI: it works fine for Java 1.6. This is a Java 1.5 issue which unfortunately is the version I have on my computer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant