• Post Reply Bookmark Topic Watch Topic
  • New Topic

CORBA COMM_FAILURE  RSS feed

 
samantha hewamanage
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
background:
-----------
I am working in linux. uses VXWORKS for server side. JAVA IDLs to call methods written in C (all server side is written in C).
i am using java to access c codes in a server which loads some chips with a some firmware to certain types of boards. there are two different types of board that i try to program at the same time. so i am using two threads. These threads are started from a JAVA GUI. once they are started they mind their own business and do not freeze the GUI.

question:
---------
i have a server side method that keeps track of the progress of each board(ex. erasing, loading, labeling, done). its a static method and has a static array. all it does is returns the status of a board when called from java.

this works just fine when one thread is run and checks for status. but when both threads are running, sometimes when both threads try to check status of a board at the same time, i get this CORBA.COMM_FAILURE error. (The two threads are trying to read the two different boards. NOT ONE BOARD!)

There is too much info here. let me explain some of it.

xftmod.FinderboardVme.FinderboardClient.flashProgramStatus: is the method used to call server side


java.lang.NoClassDefFoundError
at org.omg.CORBA.COMM_FAILURE.<init>(COMM_FAILURE.java:13)
at gov.fnal.robin.BERsequence.<init>(BERsequence.java:120)
at gov.fnal.robin.rRequest.get_response(rRequest.java:381)
at gov.fnal.robin.rRequest.invoke(rRequest.java:177)
at xftmod.FinderboardVme.FinderboardClient.flashProgramStatus(Finderboar
dClient.java:569)
java.lang.ExceptionInInitializerError
at org.omg.CORBA.COMM_FAILURE.<init>(COMM_FAILURE.java:13)
at gov.fnal.robin.BERsequence.<init>(BERsequence.java:120)
at gov.fnal.robin.rRequest.get_response(rRequest.java:381)
at gov.fnal.robin.rRequest.invoke(rRequest.java:177)
at xftmod.FinderCrateFlash$PerformTasks.run(FinderCrateFlash.java:1837)
Caused by: java.lang.NullPointerException
at org.omg.CORBA.CompletionStatus.<init>(CompletionStatus.java:23)
at org.omg.CORBA.CompletionStatus.<clinit>(CompletionStatus.java:6)
... 9 more



i know this is complicated. i can try to answer and explain any question you have.

Thanx in advance.
sam
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would concentrate on this last "Caused by":

Find out exactly what version of the JDK you're using, find the source code for that version, and see what's on line 23 of CompletionStatus.java that could throw a NullPointerException. The JDK versions I have onhand don't have any code at all on that line, so a specific version will probably be necessary.
 
samantha hewamanage
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the advice.

There is nothing in that line. stuff there is only for html doc.
here is my version of java:

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!