This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Programming Diversions and the fly likes CORBA COMM_FAILURE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "CORBA COMM_FAILURE" Watch "CORBA COMM_FAILURE" New topic
Author

CORBA COMM_FAILURE

samantha hewamanage
Greenhorn

Joined: Feb 22, 2006
Posts: 4
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

Joined: Jan 30, 2000
Posts: 18671
Well, this definitely isn't something for Programming Diversions. Let's move this to Distributed Java instead...


"I'm not back." - Bill Harding, Twister
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CORBA COMM_FAILURE
 
Similar Threads
CORBA COMM_FAILURE
CORBA newbie question
Running EJB Client
Problem with WAS 3.5
Application fails to start up : CORBA exception