CORBA BAD_PARAM/201
Hi
I'm having difficulty passing info from my server to my client; primitive data types are no problem, but am not successful in implementing arrays.
A video file is read into an array in the Server, and upon request from the Client, the Server attempts to pass the array to the Client
IDL
typedef string VideoList [100];
// i have also tried typedef sequence<string> videoList //
VideoList getVideoList(); Server
String [] video_list = new String[100];
public String [] getVideoList()
return video_list;
Client
String [] client_video_list = new String [100];
client_video_list = helloRef.getVideoList();
When the Client is executed, it fails on a CORBA.BAD_PARAM /201
ERROR : org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Mayb
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Metho
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstru
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegatin
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemE
eption(ReplyMessage_1_2.java:90)
at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemExceptio
ClientResponseImpl.java:105)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegat
java:314)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at HelloApp1._HelloStub.getVideoList(_HelloStub.java:60)
at HelloClient.main(HelloClient.java:42)
Looking up the error code:
BAD_PARAM/201. vmcid: SUN minor code: 201 literally means "NULL_PARAM". This exception often occurs because a Java null was given to a write method such as write_string, write_octet_array, etc. You cannot return a Java null as the result of a Java method.
Any ideas ?
On the server side the video_list is not null .
Here are some snippets
Server
// sayHello - I call the getVideoList method from this method just to prove that the getVideoList returns an array
public String sayHello()
String aString = "from server";
System.out.println("Well, hello to you too!");
String [] array = getVideoList();
System.out.println(array[0]);
System.out.println("address of array is " + array);
return aString;
// getVideoList - Prints out the 1st element and the address of the array
public String [] getVideoList()
System.out.println("1st element in Video List is " + video_list[0]);
System.out.println("address of video_list is " + video_list);
return video_list;
// aVideo -Returns a specific video from the array ; again to show that the array is not null
public String aVideo(int x)
System.out.println("A Video ?");
System.out.println(video_list[x]);
return video_list[x];
client
System.out.println("Got this ..." + helloRef.sayHello());
String a_video = helloRef.aVideo(2);
System.out.println("3rd video in client video list is ..." + a_video);
String [] client_video_list = helloRef.getVideoList(); // fails here
String video = client_video_list[0];
System.out.println("1st video in client video list is ..." + video);
server output
// generated from helloRef.sayHello()
Well, hello to you too!
1st element in Video List is Harry Potter,1
address of video_list is [Ljava.lang.String;@872380
Harry Potter,1
address of array is [Ljava.lang.String;@872380
// generated from helloRef.aVideo(2)
A Video ?
Start Trek,1
// generated from helloRef.getVideoList()
1st element in Video List is Harry Potter,1
address of video_list is [Ljava.lang.String;@872380
client output
// generated from helloRef.sayHello()
Got this ...from server
// generated from helloRef.aVideo(2)
3rd video in client video list is ...Start Trek,1
// generated from helloRef.getVideoList()
ERROR : org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
eption(ReplyMessage_1_2.java:90)
at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(
ClientResponseImpl.java:105)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.
java:314)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at HelloApp1._HelloStub.getVideoList(_HelloStub.java:82)
at HelloClient.main(HelloClient.java:45)So you can see from all this that the video_list is not null ;
Once again the IDL is as follows:
module HelloApp1
typedef sequence<string> videoList;
// Interface to a hello object
interface Hello
string sayHello();
void sayGoodNight();
string aVideo(in long x );
videoList getVideoList();
};Any ideas ?
Similar Messages
-
I am trying to deploy BC4J as Ejb to 8i (8.1.6). I use the following deployment method with j: my Jdev root.
setjboenv j: ejb8i
loadjava - u user/passwd@host:port:sid - thin -v - r grant "SYS,PUBLIC" j:lib\xmlparserv2.jar
loadjava - u user/passwd@host:port:sid - thin -v - r grant "SYS,PUBLIC" j:lib\jbomt.zip
loadjava - u user/passwd@host:port:sid - thin -v - r grant "SYS,PUBLIC" j:lib\jboejb.jarI then create a deployment profile for ejb 8i with the ide. (Without deploying)
I then use loadjava outside the IDE to deploy the 2 jar files created
MyProject1CommonEJB.jar
and
Myproject1.jar
I then use the ide again to deploy the bean profile
Package1ModuleServerEJB.prf
The last step fails with the error :
Publishing EJBHome...org.omg.CORBA.BAD_PARAM: null Strings are illegal in IIOP. Please correct your application or run the ORB in backward compatibility mode. minor code: 0 completed: No
void oracle.aurora.ejb.deployment.GenerateEjb.invoke()
void oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(java.lang.String[], java.io.InputStream, java.io.PrintStream, java.io.PrintStream)
void oracle.aurora.ejb.deployment.GenerateEjb.main(java.lang.String[])
Exception in thread main
Strangely, when I test this EJB with the tester (middle tier = remote ejb) it works, but from JSP's I get an application error : "Unknown Exception"
I am using Jdev 3.1
Also using the deploy option when creating the deployment profile fails apparantly due to the missing grant "SYS,PUBLIC" when loading classes to the database before deploying the bean.
What can be done ?
nullHi Blaise
Thanks for the reply. I have tried to do the complete deployment from within Jdev, but now I get the following error right at the end of the deployment.
/BC4J1AppModuleEjb/EjbObject_RemoteBC4J1AppModuleEjb:ORA-29535: source requires recompilationjava.lang.NullPointerException at sun.tools.java.Environment.error(Environment.java) at sun.tools.java.Environment.error(Environment.java) at sun.tools.java.Environment.error(Environment.java) ..... etc.
I have tried to deploy to a clean schema with the java privilages granted as described in the Jdev release notes.
I included the following libraries in my project :
JBO JDBC816 PATCH
JBO OSQL Domains
JDeveloper Runtime
Oracle 8.1.6 JDBC
Connection Manager
JBO Runtime
JBO VB Runtime
JBO 8i Runtime
SQLJ Runtime
JBO 8i Client
JBO Vanilla Domains
JBO EJB Runtime
JServer
Oracle XML SQL Utility
ORACLE XML Parser 2.0
Then I just used the deployment wizzard
null -
Org.omg.CORBA.BAD_PARAM
hi,
while porting Web application using EJB's to Sun One appserver I've found very strange error message which occurs in automaticaly generated stub:
org.omg.CORBA.BAD_PARAM: osiris.setting.internet.InternetDayTypeBean_EJBLocalObjectImpl vmcid: OMG minor code: 6 completed: Maybe
I tried to found what does it means, but there is only one minor code with number 1.
And the code which results to this exception works on other place (with different classes, but same algorithm) correctly.
Does anybodhy have clue what's the matter?
Thanks,
OffYou're getting this error because javax.ejb.EJBLocal objects can't be passed through an ejb Remote interface. Either
1) define the same method on a local interface and have the client use that
or
2) assuming BeanB exposes a Remote interface as well, convert the EJBLocalObjects to EJBObjects and return those.
--ken -
Upgrade causing CORBA.BAD_PARAM error
Hello, we are currently upgrading to 8.1 and have encountered the following problem:
When our reportServlet is running, we get this error:
org.omg.CORBA.BAD_PARAM: Couldn't connect Object to the ORB vmcid: OMG minor code: 10 compl
This servlet is using the parallel crystal API as well to generate our reports.
Any ideas?
Thanks,
DanHaving same problem here.
Upgradeing report server, from 3.7 to Harmoni 1.0 - from Dynalivery.com
Previously we ran Jacorb as ORB.
Now Jacorb gives error, and when i revert to no specific ORB at all, i get this error;
org.omg.CORBA.BAD_PARAM: Couldn't connect Object to the ORB vmcid: OMG minor code: 10 completed: No
at weblogic.corba.orb.ORB.connect(ORB.java:299)
at com.dynalivery.harmoni.HarmoniGateway.RequestServer(Unknown Source)
at com.dynalivery.harmoni.HarmoniGateway.RequestServer(Unknown Source)
at com.dynalivery.harmoni.HarmoniApplicationClient.Connect(Unknown Source)
at com.dynalivery.harmoni.HarmoniApplicationClient.ConnectToHost(Unknown Source)
at se.rgk.sibsys.report.impl.AbstractReportObject.getPCREEngine(AbstractReportObject.java:653) -
CORBA client giving BAD_PARAM
Hi
I am a student working on RMI and CORBA.I have developed a server program in CORBA.It is related to a book database hence uses JDBC.The server is running successfully.I am able to compile the client program also that invokes a method get_bookgivenauthor but at run time ,it gives:
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybeorg.omg.C ORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at
java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249) at
com.sun.corba.se.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:90)
at
com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:105)
at
com.sun.corba.se.internal.corba.RequestImpl.doInvocation(RequestImpl.java:389)
at
com.sun.corba.se.internal.corba.RequestImpl.invoke(RequestImpl.java:223)
at
Book_DataBase._Book_DataStub.get_bookgivenauthor(_Book_DataStub.java:32)
at
Book_DataClient.main(Book_DataClient.java:31)
Could you please suggest something.
Regards
kanchanHi
I am sending the code that gives BAD_PARAM error.
IDL is:
module Book_DataBase{
typedef sequence<string, 500> Bounded;
interface Book_Data {
Bounded get_bookgivenauthor(in string Authorname);
The Impl class is:
public class Book_DataImpl extends BookDataImplBase {
static Connection connection;
public String[] get_bookgivenauthor(String Authorname) throws SQLException{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connection = DriverManager.getConnection("jdbc:odbc:ddd");
catch(SQLException e)
{System.out.print("\nits an SQL exception\n");}
catch(ClassNotFoundException e)
{System.out.print("\nIts an exception\n");}
Vector v = new Vector();
String a[];
a = new String[500];
String query = "SELECT
Subject_Name,Book_Name,Author_Name,ISBN_NO,Publisher_Name,Price_in_US$ FROM ddd WHERE Author_Name LIKE '"+Authorname+"'";
Statement statement = connection.createStatement();
ResultSet result = statement.executeQuery(query);
System.out.println("Method Accessed:get_bookgivenauthor");
while(result.next()){
String subjectname = result.getString(1);
v.addElement(subjectname);
String bookname = result.getString(2);
v.addElement(bookname);
String isbn = result.getString(3);
v.addElement(isbn);
String author = result.getString(4);
v.addElement(author);
String publisher = result.getString(5);
v.addElement(publisher);
String price = result.getString(6);
v.addElement(price);
v.copyInto(a);
result.close();
connection.close();
return(a);
public Book_DataImpl()
{ super(); }
The server program is given by:
public class Book_DataServer {
public static void main(String[] args) {
try {
// Create and initialize the ORB
ORB orb = ORB.init(args, null);
// Create the servant and register it with the ORB
Book_DataImpl book = new Book_DataImpl();
orb.connect(book);
// Get the root naming context
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
NamingContext ncRef = NamingContextHelper.narrow(objRef);
// Bind the object reference in naming
NameComponent nc = new NameComponent("BOOK_INFO", "");
NameComponent path[] = {nc};
ncRef.rebind(path, book);
System.out.println("My Server is ready...");
// Wait forever for current thread to die
Thread.currentThread().join();
catch( Exception e ) { e.printStackTrace(); }
And finally the client that calls is:
public class Book_DataClient{
public static void main(String[] args) {
try {
ORB orb = ORB.init(args, null);
NamingContext ncRef = NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
NameComponent path[] = {new NameComponent("BOOK_INFO", "")};
Book_Data data = Book_DataHelper.narrow(ncRef.resolve(path));
String arr[];
arr = new String[500];
System.out.println("done");
arr = (String[])data.get_bookgivenauthor("%ivor%");
for(int i=0;i<500;i++)
System.out.print(" "+arr);
} catch( Exception e ) {
System.out.print(e);
//e.printStackTrace();
The server is running successfully.the client is compiling but gives BAD_PARAM :Completed Maybe while Running.
Please help.
kanchan -
CORBA communication trouble - BAD_PARAM?
Being into learning how to use CORBA with Java, I'm following the trail through the Java IDL tutorial to be found at
http://java.sun.com/j2se/1.4.2/docs/guide/idl/GShome.html
This is what I did so far:
- an orbd is running at localhost, port 1050.
- the HelloServer implementation is up and running
- the HelloClient implementation starts up, gets a server object and tries to call a remote function, which, then, fails:
server object: IOR:000000000000001749444c3a48656c6c6f4170702f48656c6c6f3a312e300000000000010000000000000082000102000000000a3132372e302e302e3100edca00000031afabcb0000000020c8ea754600000001000000000000000100000008526f6f74504f410000000008000000010000000014000000000000020000000100000020000000000001000100000002050100010001002000010109000000010001010000000026000000020002
exception: org.omg.CORBA.BAD_PARAM: ----------BEGIN server-side stack trace----------
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1099)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1113)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.writeString(CDROutputStream_1_0.java:473)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_string(CDROutputStream_1_0.java:467)
at com.sun.corba.se.impl.encoding.CDROutputStream.write_string(CDROutputStream.java:153)
at HelloApp.HelloPOA._invoke(HelloPOA.java:40)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
----------END server-side stack trace---------- vmcid: SUN minor code: 201 completed: Maybe
org.omg.CORBA.BAD_PARAM: ----------BEGIN server-side stack trace----------
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1099)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1113)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.writeString(CDROutputStream_1_0.java:473)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_string(CDROutputStream_1_0.java:467)
at com.sun.corba.se.impl.encoding.CDROutputStream.write_string(CDROutputStream.java:153)
at HelloApp.HelloPOA._invoke(HelloPOA.java:40)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
----------END server-side stack trace---------- vmcid: SUN minor code: 201 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at HelloApp._HelloStub.sayHello(_HelloStub.java:19)
at HelloApp.HelloClient.main(HelloClient.java:23)
Any ideas what's wrong here? As said, to figure out how to deal with CORBA in Java, I exactly followed the tutorial code using idlj and the SUN orbd from JDK 1.5.0_01. Can someone enlighten me?
TIA and have a fine sunday,
KrisBeing into learning how to use CORBA with Java, I'm following the trail through the Java IDL tutorial to be found at
http://java.sun.com/j2se/1.4.2/docs/guide/idl/GShome.html
This is what I did so far:
- an orbd is running at localhost, port 1050.
- the HelloServer implementation is up and running
- the HelloClient implementation starts up, gets a server object and tries to call a remote function, which, then, fails:
server object: IOR:000000000000001749444c3a48656c6c6f4170702f48656c6c6f3a312e300000000000010000000000000082000102000000000a3132372e302e302e3100edca00000031afabcb0000000020c8ea754600000001000000000000000100000008526f6f74504f410000000008000000010000000014000000000000020000000100000020000000000001000100000002050100010001002000010109000000010001010000000026000000020002
exception: org.omg.CORBA.BAD_PARAM: ----------BEGIN server-side stack trace----------
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1099)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1113)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.writeString(CDROutputStream_1_0.java:473)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_string(CDROutputStream_1_0.java:467)
at com.sun.corba.se.impl.encoding.CDROutputStream.write_string(CDROutputStream.java:153)
at HelloApp.HelloPOA._invoke(HelloPOA.java:40)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
----------END server-side stack trace---------- vmcid: SUN minor code: 201 completed: Maybe
org.omg.CORBA.BAD_PARAM: ----------BEGIN server-side stack trace----------
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 201 completed: Maybe
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1099)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.nullParam(ORBUtilSystemException.java:1113)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.writeString(CDROutputStream_1_0.java:473)
at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_string(CDROutputStream_1_0.java:467)
at com.sun.corba.se.impl.encoding.CDROutputStream.write_string(CDROutputStream.java:153)
at HelloApp.HelloPOA._invoke(HelloPOA.java:40)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)
at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)
at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)
at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
----------END server-side stack trace---------- vmcid: SUN minor code: 201 completed: Maybe
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)
at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
at HelloApp._HelloStub.sayHello(_HelloStub.java:19)
at HelloApp.HelloClient.main(HelloClient.java:23)
Any ideas what's wrong here? As said, to figure out how to deal with CORBA in Java, I exactly followed the tutorial code using idlj and the SUN orbd from JDK 1.5.0_01. Can someone enlighten me?
TIA and have a fine sunday,
Kris -
Exception while running a client to connect to a Corba Interface
Hi,
I am gettting the follwing error, while i run my client program and through which i am trying to establish connection with CORBA
"Interface.Exception in thread "main" org.omg.CORBA.BAD_PARAM: minor code: 0 completed:
No"
Can any one out there let me know, why i am getting this error?
Thanks in advance :)
SheshankYou are passing a null value (CORBA doens't handle null value).
-
Stand alone client for remote EJB corba error
Regarding problem below, I've checked System env variables
that weblogic server is using for CORBA classes:
javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
org.omg.CORBA.ORBClass weblogic.corba.orb.ORB
javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
But these are server classes and not found in wlclient.jar and wljmsclient.jar. What classes should be used for client? What needs to be set in order to get successful remote RMI/EJB call to weblogic server?
Original post:
I have a stand alone spring client for simple stateless session EJB deployed on weblogic 9.2. I'm using spring (jdk 1.5) to call this remote EJB and the only way I can succeed is to have full weblogic.jar in my bootstrap classpath. Otherwise I get corba error:
CORBA BAD_PARAM 0 No; nested exception is:
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
Interestingly, within same client I have JMS call to weblogic JMS and that fails if weblogic.jar is in boot classpath. Getting rid of weblogic.jar from boot classpath works if I have wlclient.jar and wljmsclient.jar in regular classpath (as per weblogic docs). I would think that for stand alone client all I would need is to weblogic client jars, why should I need to have full weblogic.jar?
I can't get those work together with same classpath. I wonder if anybody has some pointers and/or advice. I was looking to set system parameters for corba for weblogic client that maybe could help:
org.omg.CORBA.ORBClass
org.omg.CORBA.ORBSingletonClass
javax.rmi.CORBA.UtilClass
javax.rmi.CORBA.StubClass
javax.rmi.CORBA.PortableRemoteObjectClass
But I can't find definitive answer.
Regards,
-pp
Edited by mr.papini at 06/28/2007 9:05 AMI'm stuck exactly with the same issue while trying to port my application from weblogic to jboss.
I tried to specify different ORB implementations (JacORB, OpenORB) for jvm option org.omg.CORBA.ORBClass, but JBoss couldn't get them instantiated. Native Sun implementation which is used in JBoss by default and can be instantiated, apparently is not fully compatible with weblogic security module.
So did you manage to find out the solution?
Edited by DigitalDude at 04/09/2008 11:47 PM -
Hi,
I have a question on using EJB / or RMI servers with CORBA clients using
RMI-IIOP transport, which in theory should work, but in practice has few
glitches.
Basically, I have implemented a very simple server, StockTreader, which
looks up for a symbol and returns a 'Stock' object. In the first example, I
simplified the 'Stock' object to be a mere java.lang.String, so that lookup
would simply return the 'synbol'.
Then I have implemented the above, as an RMI-IIOP server (case 1) and a
CORBA server (case 2) with respective clients, and the pair of
client-servers work fine as long as they are CORBA-to-CORBA and RMI-to-RMI.
But the problem arises when I tried using the RMI server (via IIOP) with the
CORBA client, when the client tries to narrow the object ref obtained from
the naming service into the CORBA idl defined type (StockTrader) it ends up
with a class cast exception.
This is what I did to achieve the above results:
[1] Define an RMI interface StockTrader.java (extending java.rmi.Remote)
with the method,
public String lookup( String symbol) throws RMIException;
[2] Implement the StorckTrader interface (on a PortableRemoteObject derived
class, to make it IIOP compliant), and then the server to register the stock
trader with COS Naming service as follows:
String homeName =....
StockTraderImpl trader =new StockTraderImpl();
System.out.println("binding obj <" homeName ">...");
java.util.Hashtable ht =new java.util.Hashtable();
ht.put("java.naming.factory.initial", args[2]);
ht.put("java.naming.provider.url", args[3]);
Context ctx =new InitialContext(ht);
ctx.rebind(homeName, trader);
[3] Generate the RMI-IIOP skeletons for the Implementation class,
rmic -iiop stock.StockTraderImpl
[4] generate the IDL for the RMI interface,
rmic -idl stock.StockTraderImpl
[5] Generate IDL stubs for the CORBA client,
idlj -v -fclient -emitAll StockTraderImpl.idl
[6] Write the client to use the IDL-defined stock trader,
String serverName =args[0];
String symList =args[1];
StockClient client =new StockClient();
System.out.println("init orb...");
ORB orb =ORB.init(args, null);
System.out.println("resolve init name service...");
org.omg.CORBA.Object objRef
=orb.resolve_initial_references("NameService");
NamingContext naming =NamingContextHelper.narrow(objRef);
... define a naming component etc...
org.omg.CORBA.Object obj =naming.resolve(...);
System.out.println("narrow objRef: " obj.getClass() ": " +obj);
StockTrader trader =StockTraderHelper.narrow(obj);
[7] Compile all the classes using Java 1.2.2
[8] start tnameserv (naming service), then the server to register the RMI
server obj
[9] Run the CORBA client, passing it the COSNaming service ref name (with
which the server obj is registered)
The CORBA client successfully finds the server obj ref in the naming
service, the operation StockTraderHelper.narrow() fails in the segment
below, with a class cast exception:
org.omg.CORBA.Object obj =naming.resolve(...);
StockTrader trader =StockTraderHelper.narrow(obj);
The <obj> returned by naming service turns out to be of the type;
class com.sun.rmi.iiop.CDRInputStream$1
This is of the same type when stock trader object is registered in a CORBA
server (as opposed to an RMI server), but works correctly with no casting
excpetions..
Any ideas / hints very welcome.
thanks in advance,
-hariOn the contrary... all that is being said is that we needed to provide clearer examples/documentation in the 5.1.0 release. There will be no difference between the product as found in the service pack and the product found in the 5.1.1. That is, the only substantive will be that 5.1.1 will also
include the examples.
"<=one way=>" wrote:
With reference to your and other messages, it appears that one should not
expect that WLS RMI-IIOP will work in a complex real-life system, at least
not now. In other words, support for real-life CORBA clients is not an
option in the current release of WLS.
TIA
"Eduardo Ceballos" <[email protected]> wrote in message
news:[email protected]...
We currently publish an IDL example, even though the IDL programmingmodel in Java is completely non-functional, in anticipation of the support
needs for uses who need to use IDL to talk to the Weblogic server,
generically. This example illustrates the simplest connectivity; it does not
address how
to integrate CORBA and EJB, a broad topic, fraught with peril, imo. I'llnote in passing that, to my knowledge, none of the other vendors attempt
this topic either, a point which is telling if all the less happy to hear.
For the record then, what is missing from our distribution wrt RMI-IIOPare a RMI-IIOP example, an EJB-IIOP example, an EJB-C++. In this you are
correct; better examples are forth coming.
Still, I would not call our RMI-IIOP implementation fragile. I would saythat customers have an understandably hard time accepting that the IDL
programming model is busted; busted in the sense that there are no C++
libraries to support the EJB model, and busted in the sense that there is
simply no
support in Java for an IDL interface to an EJB. Weblogic has nothing to doit being busted, although we are trying to help our customers deal with it
in productive ways.
For the moment, what there is is a RMI (over IIOP) programming model, aninherently Java to Java programming model, and true to that, we accept and
dispatch IIOP request into RMI server objects. The way I look at it is this:
it's just a protocol, like HTTP, or JRMP; it's not IDL and it has
practically nothing to do with CORBA.
ST wrote:
Eduardo,
Can you give us more details about the comment below:
I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult ot
use an idl client in java to work.It seems to me that Weblogic's RMI-IIOP is a very fragile
implementation. We
don't need a "HelloWorld" example, we need a concrete serious example(fully
tested and seriously documented) that works so that we can get a betteridea
on how to integrate CORBA and EJB.
Thanks,
Said
"Eduardo Ceballos" <[email protected]> wrote in message
news:[email protected]...
Please post request to the news group...
As I said, you must separate the idl related classes (class files and
java
files) from the rmi classes... in the rmic step, you must set a newtarget
(as you did), emit the java files into that directory (it's not clearyou
did this), then remove all the rmi class files from the class path... ifyou
need to compile more classes at that point, copy the java files to theidl
directly is you must, but you can not share the types in any way.
I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult otuse
an idl client in java to work.
Harindra Rajapakshe wrote:
Hi Eduardo,
Thanks for the help. That is the way I compiled my CORBA client, by
separating the IDL-generated stubs from the RMI ones, but still I
get a
CORBA.BAD_PARAM upon narrowing the client proxy to the interfacetype.
Here's what I did;
+ Define the RMI interfaces, in this case a StockTrader interface.
+ Implement RMI interface by extendingjavax.rmi.PortableRemoteObject
making
it IIOP compliant
+ Implemnnt an RMI server, and compile using JDK1.2.2
+ use the RMI implementation to generate CORBA idl, using RMI-IIOPplugin
utility rmic;
rmic -idl -noValueMethods -always -d idl stock.StockTraderImpl
+ generate Java mappings to the IDL generated above, using RMI-IIOPplugin
util,
idlj -v -fclient -emitAll -tf src stocks\StockTrader.idl
This creates source for the package stock and also
org.omg.CORBA.*
package, presumably IIOP type marshalling
+ compile all classes generated above using JDK1.2.2
+ Implement client (CORBA) using the classes generated above, NOTthe
RMI
proxies.
+ start RMI server, with stockTrader server obj
+ start tnameserv
+ start CORBA client
Then the client errors when trying to narrow the obj ref from the
naming
service, into the CORBA IDL defined interface using,
org.omg.CORBA.Object obj =naming.resolve(nn);
StockTrader trader =StockTraderHelper.narrow(obj); // THIS
ERRORS..!!!
throwing a CORBA.BAD_PARAM exception.
any ideas..?
Thanks in advance,
-hari
----- Original Message -----
From: Eduardo Ceballos <[email protected]>
Newsgroups: weblogic.developer.interest.rmi-iiop
To: Hari Rajapakshe <[email protected]>
Sent: Wednesday, July 26, 2000 4:38 AM
Subject: Re: problem using CORBA clients with RMI/EJBservers..!!!???
Please see the post on june 26, re Errors compiling... somewherein
there,
I suspect, you are referring to the rmi class file when you are
obliged
to
completely segregate these from the idl class files.
Hari Rajapakshe wrote:
Hi,
I have a question on using EJB / or RMI servers with CORBA
clients
using
RMI-IIOP transport, which in theory should work, but in practice
has
few
glitches.
Basically, I have implemented a very simple server,
StockTreader,
which
looks up for a symbol and returns a 'Stock' object. In the firstexample, I
simplified the 'Stock' object to be a mere java.lang.String, so
that
lookup
would simply return the 'synbol'.
Then I have implemented the above, as an RMI-IIOP server (case
1)
and a
CORBA server (case 2) with respective clients, and the pair of
client-servers work fine as long as they are CORBA-to-CORBA andRMI-to-RMI.
But the problem arises when I tried using the RMI server (via
IIOP)
with
the
CORBA client, when the client tries to narrow the object ref
obtained
from
the naming service into the CORBA idl defined type (StockTrader)
it
ends
up
with a class cast exception.
This is what I did to achieve the above results:
[1] Define an RMI interface StockTrader.java (extending
java.rmi.Remote)
with the method,
public String lookup( String symbol) throws RMIException;
[2] Implement the StorckTrader interface (on a
PortableRemoteObject
derived
class, to make it IIOP compliant), and then the server to
register
the
stock
trader with COS Naming service as follows:
String homeName =....
StockTraderImpl trader =new StockTraderImpl();
System.out.println("binding obj <" homeName ">...");
java.util.Hashtable ht =new java.util.Hashtable();
ht.put("java.naming.factory.initial", args[2]);
ht.put("java.naming.provider.url", args[3]);
Context ctx =new InitialContext(ht);
ctx.rebind(homeName, trader);
[3] Generate the RMI-IIOP skeletons for the Implementation
class,
rmic -iiop stock.StockTraderImpl
[4] generate the IDL for the RMI interface,
rmic -idl stock.StockTraderImpl
[5] Generate IDL stubs for the CORBA client,
idlj -v -fclient -emitAll StockTraderImpl.idl
[6] Write the client to use the IDL-defined stock trader,
String serverName =args[0];
String symList =args[1];
StockClient client =new StockClient();
System.out.println("init orb...");
ORB orb =ORB.init(args, null);
System.out.println("resolve init name service...");
org.omg.CORBA.Object objRef
=orb.resolve_initial_references("NameService");
NamingContext naming=NamingContextHelper.narrow(objRef);
... define a naming component etc...
org.omg.CORBA.Object obj =naming.resolve(...);
System.out.println("narrow objRef: " obj.getClass() ":"
+obj);
StockTrader trader =StockTraderHelper.narrow(obj);
[7] Compile all the classes using Java 1.2.2
[8] start tnameserv (naming service), then the server to
register
the
RMI
server obj
[9] Run the CORBA client, passing it the COSNaming service ref
name
(with
which the server obj is registered)
The CORBA client successfully finds the server obj ref in the
naming
service, the operation StockTraderHelper.narrow() fails in thesegment
below, with a class cast exception:
org.omg.CORBA.Object obj =naming.resolve(...);
StockTrader trader =StockTraderHelper.narrow(obj);
The <obj> returned by naming service turns out to be of the
type;
class com.sun.rmi.iiop.CDRInputStream$1
This is of the same type when stock trader object is registeredin a
CORBA
server (as opposed to an RMI server), but works correctly with
no
casting
excpetions..
Any ideas / hints very welcome.
thanks in advance,
-hari -
JDK 1.5.0_03 and Jacorb problem (BAD_PARAM)
I have recently upgraded my computer environment to jacorb 2.2.2 and
jdk 1.5.0_03 and discovered a log that I cannot find the reason to.
Previously, I was running jacorb 1.4.1 (with a patch to solve bug
#445) and jdk 1.4.2_06 and did not experience this problem. The
problem still remains when using jacorb 1.4.1 (with the patch) and jdk
1.5.0_03 but not when switching back to jdk 1.4.2_06. Can anyone help
me explain the reason to this log? Does anybody know what minor code 227 means?
---- Extract from log.out -----------
Aug 18, 2005 9:30:27 AM com.sun.corba.se.spi.orb.ORB$2 run
FINE: "IOP00110227: (BAD_PARAM) ORBDynamicStubFactoryFactoryClass
property had value
com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl,
which could not be loaded by the ORB ClassLoader"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 227 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDynamicStubFactoryFactory(ORBUtilSystemException.java:1851)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDynamicStubFactoryFactory(ORBUtilSystemException.java:1870)
at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:196)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.corba.se.spi.orb.ORB.<clinit>(ORB.java:179)
at com.sun.corba.se.impl.logging.UtilSystemException.get(UtilSystemException.java:54)
at com.sun.corba.se.impl.javax.rmi.CORBA.StubDelegateImpl.<clinit>(StubDelegateImpl.java:49)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.rmi.CORBA.Stub.createDelegateIfSpecified(Stub.java:209)
at javax.rmi.CORBA.Stub.<clinit>(Stub.java:51)
at org.jacorb.orb.Delegate.getReference(Unknown Source)
at org.jacorb.orb.ORB.getReference(Unknown Source)
at org.jacorb.poa.POA.getReference(Unknown Source)
at org.jacorb.poa.POA.servant_to_reference(Unknown Source)
at
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:225)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTestRunner.java:177)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:651)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:558)
Caused by: java.lang.ClassNotFoundException:
com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at com.sun.corba.se.impl.orbutil.ORBClassLoader.loadClass(ORBClassLoader.java:20)
at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:192)
... 32 moreyes ,i tried many Jre versions,
does anybody knows what Node does in JAVA , what are the library file are there in Linux which takes care of this -
Hello
i am having some problems with a particular situation in CORBA. i am trying to invoke a server call and i am getting a BAD_PARAM exception (==? NULL references). Any kind of help would be greatly appreciated. Here is the sample codes:
IDL structure:
struct NestedStructure
string name;
sequence<NestedStructure> subField;
void getNestedStructure(out NestedStructureList data);
Server implementation :
public void getNestedStructure(NestedStructureListHolder data)
System.out.println(data.value);
data.value = myNestedStructure;
Client implementation :
public void getNestedStructure()
NestedStructureListHolder dataHolder = new NestedStructureListHolder();
myStub.getNestedStructure(dataHolder);
When i run them, i receive the following error message:
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.inprise.vbroker.orb.SE.read(SE.java:28)
at com.inprise.vbroker.orb.DelegateImpl.handleReply(DelegateImpl.java:874)
at com.inprise.vbroker.orb.DelegateImpl.invoke(DelegateImpl.java:759)
at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
...when i add some value to the holder on the client before making the remote call, i still get the same exceptions. Moreover, the system output on the server side is also NULL in this case.
Any kind of help would be most appreciated. This has been annoying me for a while now.
Kind regards,
viksolved :)
vik -
CORBA error while trying to connect to Visibroker server
Hello,
I have a Java application with Weblogic 9.2 app server talking to Visibroker server.The Weblogic default ORB is being used as the client-side ORB.
I use :
Weblogic 9.2
jdk 1.5.0_11
I seem to be getting the following error:
Aug 21, 2007 3:23:00 PM com.sun.corba.se.spi.orb.ORB$2 run
FINE: "IOP00110227: (BAD_PARAM) ORBDynamicStubFactoryFactoryClass property had v
alue com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl, whi
ch could not be loaded by the ORB ClassLoader"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 227 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDy
namicStubFactoryFactory(ORBUtilSystemException.java:1851)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDy
namicStubFactoryFactory(ORBUtilSystemException.java:1870)
at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:196)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.corba.se.spi.orb.ORB.<clinit>(ORB.java:179)
at com.sun.corba.se.impl.logging.OMGSystemException.get(OMGSystemExcepti
on.java:67)
at com.sun.corba.se.impl.io.ValueHandlerImpl.<init>(ValueHandlerImpl.jav
a:120)
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.<clinit>(Util.java:112)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at weblogic.iiop.UtilDelegateImpl.<clinit>(UtilDelegateImpl.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:342)
at javax.rmi.CORBA.Util.<clinit>(Util.java:53)
at weblogic.iiop.IIOPInputStream.<clinit>(IIOPInputStream.java:89)
at weblogic.iiop.IOR.destringify(IOR.java:238)
at weblogic.corba.orb.ORB.string_to_object(ORB.java:323)
at com.vz.s4gui.service.vRepair.VRepairTTMgrConnector.<init>(VRepairTTMg
rConnector.java:67)
at com.vz.s4gui.service.vRepair.VRepairTTMgrConnector.getInstance(VRepai
rTTMgrConnector.java:44)
at com.vz.s4gui.servlet.CreateTTServlet.callVRepairServices(CreateTTServ
let.java:124)
at com.vz.s4gui.servlet.CreateTTServlet.doPost(CreateTTServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.lang.ClassNotFoundException: com.sun.corba.se.impl.presentation.
rmi.bcel.StubFactoryFactoryBCELImpl
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:259)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:158)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:42)
at com.sun.corba.se.impl.orbutil.ORBClassLoader.loadClass(ORBClassLoader
.java:20)
at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:192)
... 37 more
Could someone be kind enough to tell me why the error occurs and what needs to be done to rectify it?
Thanks,
Smitha.Smitha Ramaswamy <> writes:
The stacktrace indicates you are not using the WebLogic ORB. How are
you accessing the ORB and are you setting an ORB properties on the
command-line of the server?
andy
Hello,
I have a Java application with Weblogic 9.2 app server talking to Visibroker server.The Weblogic default ORB is being used as the client-side ORB.
I use :
Weblogic 9.2
jdk 1.5.0_11
I seem to be getting the following error:
Aug 21, 2007 3:23:00 PM com.sun.corba.se.spi.orb.ORB$2 run
FINE: "IOP00110227: (BAD_PARAM) ORBDynamicStubFactoryFactoryClass property had v
alue com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl, whi
ch could not be loaded by the ORB ClassLoader"
org.omg.CORBA.BAD_PARAM: vmcid: SUN minor code: 227 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDy
namicStubFactoryFactory(ORBUtilSystemException.java:1851)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDy
namicStubFactoryFactory(ORBUtilSystemException.java:1870)
at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:196)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.corba.se.spi.orb.ORB.<clinit>(ORB.java:179)
at com.sun.corba.se.impl.logging.OMGSystemException.get(OMGSystemExcepti
on.java:67)
at com.sun.corba.se.impl.io.ValueHandlerImpl.<init>(ValueHandlerImpl.jav
a:120)
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.<clinit>(Util.java:112)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at weblogic.iiop.UtilDelegateImpl.<clinit>(UtilDelegateImpl.java:66)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:342)
at javax.rmi.CORBA.Util.<clinit>(Util.java:53)
at weblogic.iiop.IIOPInputStream.<clinit>(IIOPInputStream.java:89)
at weblogic.iiop.IOR.destringify(IOR.java:238)
at weblogic.corba.orb.ORB.string_to_object(ORB.java:323)
at com.vz.s4gui.service.vRepair.VRepairTTMgrConnector.<init>(VRepairTTMg
rConnector.java:67)
at com.vz.s4gui.service.vRepair.VRepairTTMgrConnector.getInstance(VRepai
rTTMgrConnector.java:44)
at com.vz.s4gui.servlet.CreateTTServlet.callVRepairServices(CreateTTServ
let.java:124)
at com.vz.s4gui.servlet.CreateTTServlet.doPost(CreateTTServlet.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:223)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3245)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2003)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:1909)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1359)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.lang.ClassNotFoundException: com.sun.corba.se.impl.presentation.
rmi.bcel.StubFactoryFactoryBCELImpl
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:259)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
areClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:158)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
areClassLoader.java:42)
at com.sun.corba.se.impl.orbutil.ORBClassLoader.loadClass(ORBClassLoader
.java:20)
at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:192)
... 37 more
Could someone be kind enough to tell me why the error occurs and what needs to be done to rectify it?
Thanks,
Smitha. -
I have been trying to purify a Tuxedo CORBA application with not much luck. Hoping
somebody can help.
OS : SunOS 5.8
Tuxedo: 8.0
Purify: 2003.06.00 Solaris 2
I set the following environment variables before building the application
CC=/app/Rational/releases/purify.sol.2003.06.00/purify /net/pdcnfs01/share/nfs01/software02/SUNWspro6.0/WS6U2/bin/CC
CFLAGS=-g -mt -w -pic
I compiled the simpapp (corba application) that came with tuxedo and tried booting
up the server. Initially I got an error specifying that it could not find the
following library:
ld.so.1: simple_server: fatal: libenv.so.71_pure_p3_c0_111202132_58_32: open failed:
No such file or directory
So I modified LD_LIBRARY_PATH to $LD_LIBRARY_PATH:/app/Rational/releases/purify.sol.2003.06.00/cache/app/tuxedo/tuxedo8.0/lib
That seemed to solve that problem. But now when the server comes up, it dumps
core.
This is what the stack looks like.. (from dbx; where -h)
current thread: t@1
[1] xkill(0x0, 0x6, 0x0, 0x5, 0xffbee870, 0x0), at 0x771fc
[2] pure_signal_handler_wrapper(0x6, 0xffbeebc8, 0xffbee910, 0xfdb1801c, 0x1faf4,
0xfda6c028), at 0x5090c
[3] pure_sigtramp(0x6, 0x0, 0x0, 0xffffffff, 0x149a68, 0x0), at 0x74040
[4] abort(0xfdb1801c, 0x3fc3b151, 0x14f74, 0xfe895110, 0xff0ebe08, 0x0), at
0xfda48d24
[5] __Cimpl::ex_terminate(0x0, 0x20, 0xfe9134f8, 0x0, 0x0, 0x0), at 0xff0d849c
[6] __Crun::ex_throw(0xff0edd88, 0xfec1d2d4, 0xfe8dd218, 0x0, 0xff0ec544, 0x0),
at 0xff0d40b0
[7] CORBA::BAD_PARAM::_raise(0x14ad10, 0xfec4acc4, 0xffbeeee8, 0x1813a, 0xffbeef50,
0x0), at 0xfe8dd5ec
[8] ErrorInfo::RaiseExceptionIfError(0x14ad10, 0xffbeeee8, 0xfec4acc4, 0x128aec,
0xffbeef50, 0xfec5b30c), at 0xfe9134f0
[9] TypeCodeImpl::TypeCodeImpl(0xffbeef50, 0xfec5b2f0, 0x0, 0x0, 0xfec4acc4,
0x0), at 0xfe908c8c
[10] __STATIC_CONSTRUCTOR(0xfec4acc4, 0xfec5ba40, 0x0, 0xff0edcf0, 0x293b0,
0xff3bdd04), at 0xfe8d8c18
[11] _init(0x0, 0xff3e2660, 0x1, 0xff3e2660, 0x0, 0x0), at 0xfebf0a10
[12] call_init(0xff0a0f94, 0x1, 0xff3e21f0, 0xff3e2660, 0x400000, 0xff0a0ff0),
at 0xff3bad80
[13] setup(0xff3a0018, 0xff3e2000, 0xff3e20d0, 0xff3e3c30, 0xff3e2030, 0xff3e2660),
at 0xff3ba9f8
[14] _setup(0xd4, 0xff3e2660, 0xff3a0018, 0x5, 0x100d4, 0x0), at 0xff3c4d58
[15] rtboot(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xff3b2938
I got the same exception when I tried to run the client piece too.
Any help would be greatly appreciated.This looks like a Purify problem. I have run Purify for Windows without problem
against Tuxedo on a regular basis. Are you sure you are running the latest version
of Purify and have the proper Purify for you compiler and OS version? Can you
try running your application on Windows and try using Purify for Windows?
Basically what you are encountering is an exception being thrown during the static
initialization of a typecode. This is typically done in our stubs. Why you would
be getting a BAD_PARAM is beyond me. Have you compiled all the code with the
same version of the compiler and is your compiler up to date?
-tl
-tl
"A Marcose" <[email protected]> wrote:
>
I have been trying to purify a Tuxedo CORBA application with not much
luck. Hoping
somebody can help.
OS : SunOS 5.8
Tuxedo: 8.0
Purify: 2003.06.00 Solaris 2
I set the following environment variables before building the application
CC=/app/Rational/releases/purify.sol.2003.06.00/purify /net/pdcnfs01/share/nfs01/software02/SUNWspro6.0/WS6U2/bin/CC
CFLAGS=-g -mt -w -pic
I compiled the simpapp (corba application) that came with tuxedo and
tried booting
up the server. Initially I got an error specifying that it could not
find the
following library:
ld.so.1: simple_server: fatal: libenv.so.71_pure_p3_c0_111202132_58_32:
open failed:
No such file or directory
So I modified LD_LIBRARY_PATH to $LD_LIBRARY_PATH:/app/Rational/releases/purify.sol.2003.06.00/cache/app/tuxedo/tuxedo8.0/lib
That seemed to solve that problem. But now when the server comes up,
it dumps
core.
This is what the stack looks like.. (from dbx; where -h)
current thread: t@1
[1] xkill(0x0, 0x6, 0x0, 0x5, 0xffbee870, 0x0), at 0x771fc
[2] pure_signal_handler_wrapper(0x6, 0xffbeebc8, 0xffbee910, 0xfdb1801c,
0x1faf4,
0xfda6c028), at 0x5090c
[3] pure_sigtramp(0x6, 0x0, 0x0, 0xffffffff, 0x149a68, 0x0), at 0x74040
[4] abort(0xfdb1801c, 0x3fc3b151, 0x14f74, 0xfe895110, 0xff0ebe08,
0x0), at
0xfda48d24
[5] __Cimpl::ex_terminate(0x0, 0x20, 0xfe9134f8, 0x0, 0x0, 0x0), at
0xff0d849c
[6] __Crun::ex_throw(0xff0edd88, 0xfec1d2d4, 0xfe8dd218, 0x0, 0xff0ec544,
0x0),
at 0xff0d40b0
[7] CORBA::BAD_PARAM::_raise(0x14ad10, 0xfec4acc4, 0xffbeeee8, 0x1813a,
0xffbeef50,
0x0), at 0xfe8dd5ec
[8] ErrorInfo::RaiseExceptionIfError(0x14ad10, 0xffbeeee8, 0xfec4acc4,
0x128aec,
0xffbeef50, 0xfec5b30c), at 0xfe9134f0
[9] TypeCodeImpl::TypeCodeImpl(0xffbeef50, 0xfec5b2f0, 0x0, 0x0, 0xfec4acc4,
0x0), at 0xfe908c8c
[10] __STATIC_CONSTRUCTOR(0xfec4acc4, 0xfec5ba40, 0x0, 0xff0edcf0,
0x293b0,
0xff3bdd04), at 0xfe8d8c18
[11] _init(0x0, 0xff3e2660, 0x1, 0xff3e2660, 0x0, 0x0), at 0xfebf0a10
[12] call_init(0xff0a0f94, 0x1, 0xff3e21f0, 0xff3e2660, 0x400000, 0xff0a0ff0),
at 0xff3bad80
[13] setup(0xff3a0018, 0xff3e2000, 0xff3e20d0, 0xff3e3c30, 0xff3e2030,
0xff3e2660),
at 0xff3ba9f8
[14] _setup(0xd4, 0xff3e2660, 0xff3a0018, 0x5, 0x100d4, 0x0), at 0xff3c4d58
[15] rtboot(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0xff3b2938
I got the same exception when I tried to run the client piece too.
Any help would be greatly appreciated. -
I'm developing a CORBA application using JAVA IDL when I packaged my code in my defined packages I started getting an error when running the client
ERROR : org.omg.CORBA.BAD_PARAM: minor code: 1398079489 completed: Maybe
org.omg.CORBA.BAD_PARAM: minor code: 1398079489 completed: Maybe
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(ReplyMessage.java:93)
at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:83)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.java:204)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at ServiceProvApp._SpStub.processCommand(_SpStub.java:35)
at SpClient.main(SpClient.java:38)
This error happens when I try to call a native C code from my application ... can any one help in this please. I have inserted the shared libraries in the proper path and they are loaded properlyI am getting something very similar does anyone have any idea??????? pls
-
Question on EJB 2.1 using Netbeans 5.5 Beta 2. Cant understand error msg
"IOP00100006: (BAD_PARAM) Class com.sun.ejb.containers.EJBLocalObjectInvocationHandler is not Serializable"
org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 6 completed: Maybe
at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:996)
at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1011)
at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:730)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:636)
at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:721)
at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:787)
at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:201)
at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:570)
at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:631)
at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:135)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at java.util.ArrayList.writeObject(ArrayList.java:569)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:602)
at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:568)
at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:243)
at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:43)
at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:32)
at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:39)
at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:30)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:745)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:202)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
at ejb._CustomerFacadeRemote_DynamicStub.getAllCustomers(_CustomerFacadeRemote_DynamicStub.java)
at web.customerList.processRequest(customerList.java:39)
at web.customerList.doGet(customerList.java:72)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
|#]
java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is:
java.io.NotSerializableException:
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:257)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:678)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:218)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:119)
at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:197)
at ejb._CustomerFacadeRemote_DynamicStub.getAllCustomers(_CustomerFacadeRemote_DynamicStub.java)
at web.customerList.processRequest(customerList.java:39)
at web.customerList.doGet(customerList.java:72)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:278)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: java.io.NotSerializableException:
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:250)
... 33 more
Caused by: org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 6 completed: Maybe
at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:996)
at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1011)
at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:730)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:636)
at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:721)
at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:787)
at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:201)
at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:570)
at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:631)
at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:260)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:489)
at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:135)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
at java.util.ArrayList.writeObject(ArrayList.java:569)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:602)
at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:568)
at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:156)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:224)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:206)
at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:146)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:787)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:836)
at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:243)
at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:43)
at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:32)
at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:39)
at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:30)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:745)
at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:202)
... 31 moreTo start off, that is my error. I am following this http://www.netbeans.org/kb/50/quickstart-j2ee.html article and so far I can get the entire code working. Netbeans truly makes it easy!
Now I decided to expand on the example and so I used a caching service locator and added one more finder method to the Customer entity bean (CMP). It is a findAllCustomers method that returns a collection and the EJB QL I entered was as follows:
SELECT OBJECT(o) FROM Customer oI correspondingly added another business method to the session facade bean and I wrote a servlet that calls upon the caching service locator class and gets a reference to the session facade bean and calls the findAllCustomer method and gets back a List of all Customers. Then it takes the List, sticks it into the HttpServletRequest object and calls sendredirect to a JSP that is the view.
The JSP is straightforward in that I have a foreach jstl tag that is going to display the customers in a table format. So when I run the code the way it is, what happens when I access that servlet is that the it gets rerouted to the jsp page, but the table does not get displayed...but the above error gets posted in the Netbeans SJSAS console. I have never encountered that kind of error before so i am a bit stumped and don't know how to go about decoding that stacktrace.
Any pointers or suggestions or solutions (much prefer this one) would be great!
Thanks a lot. Sorry for the rather long post. If needed I can package up the entire project and send it to you.
Cheers,
SuryaIt sounds like you're attempting to pass Local EJB objects over a Remote interface, which is not permitted. EJBLocalObjects can not be passed outside the ejb tier. You'll need to either pull their data out into data access object classes (basically structs) or return EJBObjects.
--ken
Maybe you are looking for
-
How much Memory Should my IMac have? iMac, 24-inch, Intel Core 2 Duo
Hi, I have a problem. I have a iMac, 24-inch, Intel Core 2 Duo which had to have a hard drive replaced. Brought it home today and it is not the same? It makes weird noises when processing info and it seems to run slower. I noticed that the memory is
-
Performance of Transfer Statement
Hi, I'm working in a MDMP - Unicode Conversion Project. My job primarily is to enable Custom ABAP code for Unicode syntax. I have a generic program which takes the names of tables and fields and the destination path from a file and extracts tho
-
hi , below query taking lot of time,can anybody help me tune the query.My db version is oracle 9.2 explain plan for select MRH_MRN,DECODE(MRH_SEX,'M','MALE','FEMALE') AS SEX, trim((mrh_sur_name||' '||mrh_first_name||' '||mrh_middle_name)) as MEMNAME
-
Hi, We are using Installation guide MAPBOX 4.0 for SP11. In the installation guide it is mentioned that the following steps needs to be carried out for WAS 6.20 Copy the files sapjcorfc.dll and sapjco.jar into the following folder <Installation direc
-
My IPAD 2 is freezing on the principal internet access page. It comes up through a light grey filter and does not respond to any touch or keys. All other internet dependent functions seem to be working fine (mail, various APPs). How do I "unfreeze