Re: Don't have any problems with Hello Worl, It's okay but...
"Julien Regnart" <[email protected]> Thu, 2 Feb 2006 10:10:06 +0100
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Organization | Cetic |
| Message-ID | <[email protected]> |
----- Original Message ----- From: "Darren Middleman" <[email protected]> To: "Julien Regnart" <[email protected]> Cc: <[email protected]> Sent: Saturday, January 28, 2006 1:55 AM Subject: Re: [OB-Users] Don't have any problems with Hello Worl, It's okay but... > Hi Julien, > > Please CC [email protected] so that you address the whole team and > community. This will help ensure an answer in the event that I become > unavailable. > > > Yes ! That was my question. > > I use Sun Jdk 1.5 and Ant 1.6.5 (all path are configured). > > Ant say : Build Sucessful! > > I put in the correct folder the bin of version 4.3 and I test with my Hello > > world. It's work but I have some errors for the server: > > > > Exception in thread "main" java.lang.NoSuch.MethodError : > > org.omg.PortableInterceptor.IORInterceptor_3_0.adapter_manager_state_changed > > (Ljava/lang/String;S)V > > > > at com.ooc.OB.PIManager.adapterManagerStateChange(PIManager.java:688) > > at > > com.ooc.OBPortableServer.POAManager_impl.activate(POAManager_impl.java:220) > > > > at hello.Server.run(Server.java :131) > > at hello.Server.main(Server.java:30) > > > > This error is caused by incompatible OMG classes that come with the JDK > being used instead of the correct ones from Orbacus. You can get around > this by using either the '-Xbootclasspath/p:$CLASSPATH' or the > 'java.endorsed.dirs' options. For example: > > java -Xbootclasspath/p:$CLASSPATH hello.Server > > Note that this assumes that you have your classpath correctly set so that > Java can find the Orbacus JAR files or classes. Have a look at some of the > Java demo 'run' scripts that are included with Orbacus to see how we use > both of these options. > > > > > > And Now, I'm trying to use the option --with-async for jidl (on differents > > echo example). but It say it's not a available option!(or something like > > that) > > Are you using the most recent version of the jidl compiler? You can check > this by executing the command 'jidl --version'. You need to ensure that > you are using jidl version 4.3.0 to use this option, since it was only > added to the 4.3.0 release of Orbacus. You should also check to see if the > demos located in 'JOB-4.3.0/ob/demos/AMI' built as these also use the > --with-async option. > > Regards, > Darren > > -- > Darren Middleman, Software Engineer > Team Orbacus - Your CORBA Source > Email: mailto:[email protected] > WWW: http://www.orbacus.com/ > Hello Darren, I have try the option ( -Xbootclasspath/p=%CLASSPATH) to execute my server and my client. But nothing change. I have try with the example "Factory", this my mainly problems with orbacus Console Server: Exception in thread "main" java.lang.NoSuchMethodError: org.omg.PortableInterceptor.IORInterceptor_3_0.adapter_manager_state_changed(Ljava/lang/String;S)V at com.ooc.OB.PIManager.adapterManagerStateChange(PIManager.java:688) at com.ooc.OBPortableServer.POAManager_impl.activate(POAManager_impl.java:220) at factory.Server.run(Server.java:110) at factory.Server.main(Server.java:130) ----------------------------------------------------------Add after Client execution---------------------------------------------------------------- warning: Servant method raised a non-CORBA exception Client receives this exception as CORBA::UNKNOWN operation name: "_get_key" id: iiop local address: 192.168.0.13:1133 remote address: 192.168.0.13:1134 java.lang.NullPointerException at org.omg.PortableServer._ServantLocatorStub.preinvoke(Unknown Source) at com.ooc.OBPortableServer.ServantLocatorStrategy.preinvoke(ServantLocatorStrategy.java:109) at com.ooc.OBPortableServer.NonRetainStrategy.locate(NonRetainStrategy.java:110) at com.ooc.OBPortableServer.POA_impl._OB_dispatch(POA_impl.java:1746) at com.ooc.OB.DispatchRequest_impl.invoke(DispatchRequest_impl.java:52) at com.ooc.OB.DispatchSameThread_impl.dispatch(DispatchStrategyFactory_impl.java:46) at com.ooc.OB.Upcall.invoke(Upcall.java:434) at com.ooc.OB.ThreadedGIOPConnectionHandler.doReceive(ThreadedGIOPConnectionHandler.java:516) at com.ooc.OB.GIOPReceiverThread.run(ThreadedGIOPConnectionHandler.java:57) Console Client: ---------------------------------------- Testing factory w/ default servant ---------------------------------------- Purging 0 records. Created record: 0 Added data: This is some data Retrieving record again. Got record: 0 Read data: This is some data Destroying record. Expecting an OBJECT_NOT_EXIST exception...OK! Verifying that the record is destroyed...OK! ---------------------------------------- Testing factory w/ servant locator ---------------------------------------- Purging 0 records. org.omg.CORBA.UNKNOWN vmcid: 0x0 minor code: 0 completed: No at com.ooc.OB.Util.unmarshalSystemException(Util.java:272) at com.ooc.OB.GIOPConnection.processReply(GIOPConnection.java:743) at com.ooc.OB.GIOPConnection.processMessage(GIOPConnection.java:625) at com.ooc.OB.ThreadedGIOPConnectionHandler.doReceive(ThreadedGIOPConnectionHandler.java:484) at com.ooc.OB.GIOPReceiverThread.run(ThreadedGIOPConnectionHandler.java:57) but I have two others problems : Is it possible to return a ResultSet ( Java.sql.*) ? To return a structure, I have some error : Console Server : (always the same errors) Exception in thread "main" java.lang.NoSuchMethodError: org.omg.PortableInterceptor.IORInterceptor_3_0.adapter_manager_state_changed(Ljava/lang/String;S)V at com.ooc.OB.PIManager.adapterManagerStateChange(PIManager.java:688) at com.ooc.OBPortableServer.POAManager_impl.activate(POAManager_impl.java:220) at Test.Server.run(Server.java:132) at Test.Server.main(Server.java:30) Console Client : org.omg.CORBA.UNKNOWN vmcid: 0x0 minor code: 0 completed: No at com.ooc.OB.Util.unmarshalSystemException(Util.java:272) at com.ooc.OB.GIOPConnection.processReply(GIOPConnection.java:743) at com.ooc.OB.GIOPConnection.processMessage(GIOPConnection.java:625) at com.ooc.OB.ThreadedGIOPConnectionHandler.doReceive(ThreadedGIOPConnectionHandler.java:484) at com.ooc.OB.GIOPReceiverThread.run(ThreadedGIOPConnectionHandler.java:57) The error appear on this instruction : in the Client : project[] proj =sql.req(); the corp of req() :(located in sql_impl.java) it's just a little method to try Orbacus before the conception of my project public project[] req() { // TODO Auto-generated method stub try { pstmt=con.prepareStatement("SELECT * FROM project WHERE proj_projectID = ?"); pstmt.setInt(1,2); rs=pstmt.executeQuery(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { project[] myprojects ; Vector proj = new Vector(); //while(rs.next()); //{ rs.next(); System.out.println(rs.getString("proj_name")+rs.getString("proj_version")+"viens : "); project p = new project ( rs.getString( "proj_name" ),rs.getString("proj_version")); p.affiche(); proj.addElement( new project ( rs.getString( "proj_name" ),rs.getString("proj_version")) ); //} myprojects = new project[proj.size()]; proj.copyInto(myprojects); pstmt.close(); return myprojects ; //myprojects; } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } Thx a lot for your help. Regards, Julien Regnart _______________________________________________ OB-Users Mailing List - [email protected] http://mail.ooc.nf.ca/mailman/listinfo/ob-users Visit our support FAQ before you send a message. http://www.orbacus.com/faq/support.html