CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   CORBABAD_OPERATION in compound editor (http://www.cfd-online.com/Forums/openfoam-installation/57584-corbabad_operation-compound-editor.html)

tomohiro October 2, 2006 18:07

Hello, I compiled OpenFOAM-1.3
 
Hello, I compiled OpenFOAM-1.3 and succeeded in finishing it without error.
But when I edit the parameters with compound editor of Edit Dictionary in blockMesh, error window 'org.omg.CORBA.BAD_OPERATION' appears and following error messages are written in the terminal window.

This error does not occur in all compound editors. (They seems to work correctly in most other compound editors.)

My enviroment is as follows
gcc 4.1.1
JDK j2sdk1.4.2_05(download from OF site)

Where should I correct to work them properly?

Tomohiro


----- Error messages -----
org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No
at com.sun.corba.se.internal.corba.AnyImpl.extract_do uble(AnyImpl.java:759)
at FoamX.Util.FoamXAny.anyToString(FoamXAny.java:298)
at FoamX.Util.FoamXAny.toString(FoamXAny.java:68)
at FoamX.Editors.DictionaryEntryEditor.EntryCache.Dic tionaryEntryCache.toString(Dic tionaryEntryCache.java:418)
at javax.swing.table.DefaultTableCellRenderer.setValu e(DefaultTableCellRenderer.jav a:249)
at javax.swing.table.DefaultTableCellRenderer.getTabl eCellRendererComponent(Default TableCellRenderer.java:160)
at FoamX.Editors.DictionaryEntryEditor.DictionaryEntr yCellRenderer.getTableCellRend ererComponent(DictionaryEntryCellRenderer.java:88)
at javax.swing.JTable.prepareRenderer(JTable.java:373 1)
at javax.swing.plaf.basic.BasicTableUI.paintCell(Basi cTableUI.java:1149)
at javax.swing.plaf.basic.BasicTableUI.paintCells(Bas icTableUI.java:1051)
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTab leUI.java:974)
at javax.swing.plaf.ComponentUI.update(ComponentUI.ja va:142)
at javax.swing.JComponent.paintComponent(JComponent.j ava:541)
at javax.swing.JComponent.paint(JComponent.java:808)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JViewport.paint(JViewport.java:722)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paint(JComponent.java:817)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:5 57)
at javax.swing.JComponent.paintChildren(JComponent.ja va:647)
at javax.swing.JComponent.paintWithOffscreenBuffer(JC omponent.java:4794)
at javax.swing.JComponent.paintDoubleBuffered(JCompon ent.java:4740)
at javax.swing.JComponent.paint(JComponent.java:798)
at java.awt.GraphicsCallback$PaintCallback.run(Graphi csCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGra phicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraph icsCallback.java:97)
at java.awt.Container.paint(Container.java:1312)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.motif.MComponentPeer.handleEvent(MComponen tPeer.java:405)
at java.awt.Component.dispatchEventImpl(Component.jav a:3678)
at java.awt.Container.dispatchEventImpl(Container.jav a:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606 )
at java.awt.Component.dispatchEvent(Component.java:34 77)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 456)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:2 01)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:151 )
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:141 )
at java.awt.Dialog$1.run(Dialog.java:540)
at java.awt.Dialog.show(Dialog.java:561)
at FoamX.Util.RunPanel.editDictButton_ActionPerformed (RunPanel.java:794)
at FoamX.Util.RunPanel.access$100(RunPanel.java:55)
at FoamX.Util.RunPanel$2.actionPerformed(RunPanel.jav a:416)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(AbstractButton.ja va:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.jav a:245)
at java.awt.Component.processMouseEvent(Component.jav a:5100)
at java.awt.Component.processEvent(Component.java:489 7)
at java.awt.Container.processEvent(Container.java:156 9)
at java.awt.Component.dispatchEventImpl(Component.jav a:3615)
at java.awt.Container.dispatchEventImpl(Container.jav a:1627)
at java.awt.Component.dispatchEvent(Component.java:34 77)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3128)
at java.awt.Container.dispatchEventImpl(Container.jav a:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606 )
at java.awt.Component.dispatchEvent(Component.java:34 77)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 456)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:2 01)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:151 )
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:100)

mattijs October 4, 2006 03:26

Can you specify exactly what y
 
Can you specify exactly what you were editing? So case, dictionary (blockMeshDict?) and which field, what value etc. Could be some editing operation is not implemented or the FoamX setup is not correct for the dictionary.

tomohiro October 11, 2006 12:12

I'm sorry for the late reply.
 
I'm sorry for the late reply.
As long as I checked, this error occurs in blockMesh of any case (including icoFoam). but when I click the 'Edit Dictionary' buttom in the other Foam utilities, compound editor opens properly and works without any problem.
As for editing data, I don't edit any values, which are just copied form the OpenFOAM's source directory. And the result of excuting the blockMesh itself has no problem. (unless clicking the 'Edit dictionary' button, it breaks the data file)

Ayway, what the meaning of the top line of the error log?
>org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: No

mattijs October 12, 2006 12:24

I can edit blockMeshDict fine.
 
I can edit blockMeshDict fine. Can you check the blockMeshDict with an editor? Remove the 'arguments' entry and try again.

tomohiro October 13, 2006 09:52

Thank you for your reply. I c
 
Thank you for your reply.
I can edit blockMeshDict fine as well.
Comparing to the pre-compiled version, if the case works properly in the precompiled FoamX, the above error occurs in my self-compiled FoamX.
And, as I wrote previously, the result of excuting the blockMesh itself has no problem even in my self-compiled version. the produced mesh data works properly.
My problem seems to be related just to the GUI.

tomohiro December 15, 2006 09:22

: Finally, I have succeeded
 
[Self-reply]:
Finally, I have succeeded in making FoamX work correctly. In my environment, the following command at L298 in FoamXAnyjava cause the error.

test = format(fxAny_.value.extract_double());

By changing the precision from SP to DP. FoamX works without problem.

Though I don't know whether it is the bug or the special issue which happens only in my case, I submit this result and my environment, since this may help others...

My environment:
CPU: AthlonXP-1800
Mem: 1GB
Distribution: Gentoo
kernel:2.6.19
gcc: 4.1.1(4.1.1-r3)
glibc:2.5
flex:2.5.4a
zlib:1.2.3

tomohiro December 15, 2006 09:25

: Finally, I have succeeded
 
[Self-reply]:
Finally, I have succeeded in making FoamX work correctly. In my environment, the following command at L298 in FoamXAnyjava cause the error.

test = format(fxAny_.value.extract_double());

By changing the precision from SP to DP, FoamX works without problem.
Though I don't know whether it is the bug or the special issue which happens only in my case, I submit this result and my environment, since this may help others...

My environment:
CPU: AthlonXP-1800
Mem: 1GB
Distribution: Gentoo
kernel:2.6.19
gcc: 4.1.1(4.1.1-r3)
glibc:2.5
flex:2.5.4a
zlib:1.2.3

mattijs December 15, 2006 14:08

I do not understand. What did
 
I do not understand. What did you change? Any Java?

Or were you using the single precision OpenFOAM version and inputting a number which does not fit into single precision?

tomohiro December 16, 2006 21:44

I did not change any setting a
 
I did not change any setting about Java, at least after I succeed in making FoamX work properly.
And what I use to test is a tutorial case without any change.

I confirmed the effect of DP <-> SP setting as shown below:


0. (some modifications to avoid compile errors...)
1. compile in DP : O.K.

2. wcleanAll
3. change WM_PRECISION_OPTION from DP to SP
4. source XXX/.OpenFOAM-1.3/bashrc
5. ./Allwmake
6. compile
7. cp XXX/OpenFOAM-1.3/tutorials/* ${HOME}/OpenFOAM /root-1.3/run/tutorials/ -rf
8. TEST : N.G.(org.omg.CORBA.BAD_OPERATION)

9. wcleanAll
10. change WM_PRECISION_OPTION from SP to DP
11. source XXX/.OpenFOAM-1.3/bashrc
12. ./Allwmake
13. compile
14. cp XXX/OpenFOAM-1.3/tutorials/* ${HOME}/OpenFOAM /root-1.3/run/tutorials/ -rf
15. TEST : O.K.


All times are GMT -4. The time now is 07:30.