- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem using SimForge 0.9 with Linux
Problem using SimForge 0.9 with Linux
Problem using SimForge 0.9 with Linux
Hi All!
i want to use SimForge 0.9 with OpenModelica 1.5.0.svn.r5385-2 on Debian (Squeeze).
Using libmico2.3.13
When clicking on "New Project" or "Tools -> Settings", the gui freezes and the prompt is showing this:
Code:
$ java -jar SimForge.jar
[warning] jEdit: jedit.jar not in class path!
[warning] jEdit: Assuming jEdit is installed in /home/shui/SimForge/SimForge-0.9.RC2.
[warning] jEdit: Override with jedit.home system property.
Parsing file: /home/shui/SimForge/SimForge-0.9.RC2/settings.xml.......
Parsing XML file... /home/shui/SimForge/SimForge-0.9.RC2/settings.xml
XML file parsed
Ok.
Validating file: /home/shui/SimForge/SimForge-0.9.RC2/settings.xml.......
Starting to read .../home/shui/SimForge/SimForge-0.9.RC2/settings.xml...
Validation successfull of /home/shui/SimForge/SimForge-0.9.RC2/settings.xml.
Ok.
OMCSTATUS: Will look for OMC object reference in '/tmp/openmodelica.shui.objid.omc'.
OMCSTATUS: Old OMC CORBA object reference present, assuming OMC is running.
14.05.2010 00:06:49 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNUNG: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 192.168.178.37; port: 53693"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:223)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:236)
at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:119)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:168)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:136)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:449)
at omc._OmcCommunicationStub.sendExpression(_OmcCommunicationStub.java:41)
at omc.OMCProxy.init(OMCProxy.java:648)
at omc.OMCProxy.sendExpression(OMCProxy.java:740)
at omc.OMCProxy.getVersion(OMCProxy.java:2490)
at GUI.common.JDialog.CreateProgramDialog.getAnnotationVersion(CreateProgramDialog.java:301)
at GUI.common.JDialog.CreateProgramDialog.getPanelC(CreateProgramDialog.java:166)
at GUI.common.JDialog.CreateProgramDialog.getContentPane(CreateProgramDialog.java:91)
at GUI.common.JDialog.CreateProgramDialog.getJDialog(CreateProgramDialog.java:81)
at GUI.common.JDialog.CreateProgramDialog.show(CreateProgramDialog.java:67)
at GUI.common.EditorWindow2.createProject(EditorWindow2.java:1031)
at GUI.common.abstractInternalFrame.AbstractJMenuBar$EnumJMenuItem.doAction(AbstractJMenuBar.java:94)
at GUI.common.abstractInternalFrame.AbstractJMenuBar.actionPerformed(AbstractJMenuBar.java:720)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.net.SocketException: Network is unreachable
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:525)
at java.nio.channels.SocketChannel.open(SocketChannel.java:164)
at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:78)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:206)
... 44 more
OMCSTATUS: Failed sending expression, will try to start OMC.
OMCSTATUS: Using OPENMODELICAHOME environment variable to find omc-binary
OMCSTATUS: No omc binary at: [/usr/omc]
OMCSTATUS: Using omc-binary at '/usr/bin/omc'
OMCSTATUS: Removing old OMC object reference file.
OMCSTATUS: Running command /usr/bin/omc +c=omc +d=interactiveCorba
OMCSTATUS: Setting working directory to /usr
OMCSTATUS: Command run successfully.
OMCSTATUS: Waiting for OMC CORBA object reference to appear on disk.
Created server.
Dumped Corba IOR in file: /tmp/openmodelica.shui.objid.omc
Started the Corba ORB thread with id: 3036777328
OMCSTATUS: OMC object reference found.
14.05.2010 00:06:49 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNUNG: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 192.168.178.37; port: 54583"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:223)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:236)
at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:119)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:168)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:136)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:449)
at omc._OmcCommunicationStub.sendExpression(_OmcCommunicationStub.java:41)
at omc.OMCProxy.init(OMCProxy.java:648)
at omc.OMCProxy.sendExpression(OMCProxy.java:740)
at omc.OMCProxy.getVersion(OMCProxy.java:2490)
at GUI.common.JDialog.CreateProgramDialog.getAnnotationVersion(CreateProgramDialog.java:301)
at GUI.common.JDialog.CreateProgramDialog.getPanelC(CreateProgramDialog.java:166)
at GUI.common.JDialog.CreateProgramDialog.getContentPane(CreateProgramDialog.java:91)
at GUI.common.JDialog.CreateProgramDialog.getJDialog(CreateProgramDialog.java:81)
at GUI.common.JDialog.CreateProgramDialog.show(CreateProgramDialog.java:67)
at GUI.common.EditorWindow2.createProject(EditorWindow2.java:1031)
at GUI.common.abstractInternalFrame.AbstractJMenuBar$EnumJMenuItem.doAction(AbstractJMenuBar.java:94)
at GUI.common.abstractInternalFrame.AbstractJMenuBar.actionPerformed(AbstractJMenuBar.java:720)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.net.SocketException: Network is unreachable
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:525)
at java.nio.channels.SocketChannel.open(SocketChannel.java:164)
at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:78)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:206)
... 44 more
OMCSTATUS: Failed sending expression, will try to start OMC.
Any ideas?
Re: Problem using SimForge 0.9 with Linux
Hi,
1. See if any omc process is running or not, and then kill it.
2. Check if you have the firewall on and if you do, try to add rules to let omc, java (SimForge), OMShell, OMNotebook process to connect to the *local only* network.
3. Start OMShell and see if is starting an omc process and if is working correctly.
4. Start SimForge again and see if is working.
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
Re: Problem using SimForge 0.9 with Linux
Hi,
You have in your stack dump: Caused by: java.net.SocketException: Network is unreachable
So it seems like your Java installation cannot connect to the network for some reason.
It might be firewall related or see below.
I searched a bit for this problem and it seems that when sockets are set to IPV6 only Java
will not be able to connect to the network:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560056
https://issues.apache.org/jira/browse/CASSANDRA-628
Try to apply their fix.
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Problem using SimForge 0.9 with Linux