Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > java corba client to ejb
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 21st March 16:25
ollka.vallka
External User
 
Posts: 1
Default java corba client to ejb


Hi all,

I'm trying to write simple example - java client, which do smth useful
with ejb through corba.
I already have some beans (entity and session) and simple jnp client.
I want to make Cobra client to my ejbs.
Ejb deployed to jboss.

I found some tutorial, and trying to do step by step.
Firstly I generated idls with tool rmic
Then I trying to generate java code from idl with tool idlj.
This tool generated some java classes (Stubs, Holders, Helpers, etc),
but firsly i don't understand, why i need to do it with all import
classes - the stubs, helpers, etc. generated to those classes to (if
don't it wouldnot work)
And one question else: Why it use some <ClassName>Impl but don't
created them. Must I implement those abstract classes and interfaces
with special logic?

I tryed to implement such classes and i have not write any logic -
just as stubs.
When I'm able to compile, I try to start my client, but i have error
and i don't understant what does it mean and can't find any answers.

Please, help me with this deal and f****ve me my poor english
ollka
  Reply With Quote


  sponsored links


2 21st March 16:25
ollka.vallka
External User
 
Posts: 1
Default java corba client to ejb


Hi all,

I'm trying to write simple example - java client, which do smth useful
with ejb through corba.
I already have some beans (entity and session) and simple jnp client.
I want to make Cobra client to my ejbs.
Ejb deployed to jboss.

I found some tutorial, and trying to do step by step.
Firstly I generated idls with tool rmic
Then I trying to generate java code from idl with tool idlj.
This tool generated some java classes (Stubs, Holders, Helpers, etc),
but firsly i don't understand, why i need to do it with all import
classes - the stubs, helpers, etc. generated to those classes to (if
don't it wouldnot work)
And one question else: Why it use some <ClassName>Impl but don't
created them. Must I implement those abstract classes and interfaces
with special logic?

I tryed to implement such classes and i have not write any logic -
just as stubs.
When I'm able to compile, I try to start my client, but i have error
and i don't understant what does it mean and can't find any answers.

Please, help me with this deal and f****ve me my poor english
ollka
  Reply With Quote
3 22nd March 05:21
ollka.vallka
External User
 
Posts: 1
Default java corba client to ejb


sorry,
my error is
21.03.2007 16:20:30
com.sun.corba.se.impl.protocol.giopmsgheaders.Mess ageBase
readGIOPHeader
WARNING: "IOP00710220: (INTERNAL) Error in GIOP magic"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 220 completed: Maybe
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.giopMagicError(ORBUtilSystemException.java:
4095)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.giopMagicError(ORBUtilSystemException.java:
4109)
at
com.sun.corba.se.impl.protocol.giopmsgheaders.Mess ageBase.readGIOPHeader(MessageBase.java:
156)
at
com.sun.corba.se.impl.transport.CorbaContactInfoBa se.createMessageMediator(CorbaContactInfoBase.java :
150)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.readBits(SocketOrChannelConnectionImpl .java:
314)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.handleEvent(SocketOrChannelConnectionI mpl.java:
1098)
at com.sun.corba.se.impl.transport.SelectorImpl.run(S electorImpl.java:
282)
javax.naming.CommunicationException: Cannot connect to ORB [Root
exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code:
203 completed: No]
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext( CNCtx.java:362)
at com.sun.jndi.cosnaming.CNCtx.initUsingCorbanameUrl (CNCtx.java:321)
at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.ja va:247)
at com.sun.jndi.cosnaming.CNCtx.createUsingURL(CNCtx. java:85)
at
com.sun.jndi.url.iiop.iiopURLContextFactory.getUsi ngURLIgnoreRest(iiopURLContextFactory.java:
56)
at
com.sun.jndi.url.iiop.iiopURLContext.getRootURLCon text(iiopURLContext.java:
44)
at
com.sun.jndi.toolkit.url.GenericURLContext.lookup( GenericURLContext.java:
182)
at javax.naming.InitialContext.lookup(InitialContext. java:351)
at CorbaClient.getMySession(CorbaClient.java:71)
at CorbaClient.main(CorbaClient.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:
90)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203
completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.writeErrorSend(ORBUtilSystemException.java:
2231)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.writeErrorSend(ORBUtilSystemException.java:
2253)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.writeLock(SocketOrChannelConnectionImp l.java:
933)
at
com.sun.corba.se.impl.encoding.BufferManagerWriteS tream.sendFragment(BufferManagerWriteStream.java:
78)
at
com.sun.corba.se.impl.encoding.BufferManagerWriteS tream.sendMessage(BufferManagerWriteStream.java:
96)
at
com.sun.corba.se.impl.encoding.CDROutputObject.fin ishSendingMessage(CDROutputObject.java:
144)
at
com.sun.corba.se.impl.protocol.CorbaMessageMediato rImpl.finishSendingRequest(CorbaMessageMediatorImp l.java:
247)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.marshalingComplete1(CorbaClientReque stDispatcherImpl.java:
342)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.marshalingComplete(CorbaClientReques tDispatcherImpl.java:
323)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.invoke(CorbaClientDelegateImpl.java:
129)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.is_a(CorbaClientDelegateImpl.java:
213)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl .java:112)
at
org.omg.CosNaming.NamingContextHelper.narrow(Namin gContextHelper.java:
69)
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext( CNCtx.java:345)
... 14 more
  Reply With Quote
4 22nd March 05:21
ollka.vallka
External User
 
Posts: 1
Default java corba client to ejb


sorry,
my error is
21.03.2007 16:20:30
com.sun.corba.se.impl.protocol.giopmsgheaders.Mess ageBase
readGIOPHeader
WARNING: "IOP00710220: (INTERNAL) Error in GIOP magic"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 220 completed: Maybe
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.giopMagicError(ORBUtilSystemException.java:
4095)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.giopMagicError(ORBUtilSystemException.java:
4109)
at
com.sun.corba.se.impl.protocol.giopmsgheaders.Mess ageBase.readGIOPHeader(MessageBase.java:
156)
at
com.sun.corba.se.impl.transport.CorbaContactInfoBa se.createMessageMediator(CorbaContactInfoBase.java :
150)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.readBits(SocketOrChannelConnectionImpl .java:
314)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.handleEvent(SocketOrChannelConnectionI mpl.java:
1098)
at com.sun.corba.se.impl.transport.SelectorImpl.run(S electorImpl.java:
282)
javax.naming.CommunicationException: Cannot connect to ORB [Root
exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code:
203 completed: No]
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext( CNCtx.java:362)
at com.sun.jndi.cosnaming.CNCtx.initUsingCorbanameUrl (CNCtx.java:321)
at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.ja va:247)
at com.sun.jndi.cosnaming.CNCtx.createUsingURL(CNCtx. java:85)
at
com.sun.jndi.url.iiop.iiopURLContextFactory.getUsi ngURLIgnoreRest(iiopURLContextFactory.java:
56)
at
com.sun.jndi.url.iiop.iiopURLContext.getRootURLCon text(iiopURLContext.java:
44)
at
com.sun.jndi.toolkit.url.GenericURLContext.lookup( GenericURLContext.java:
182)
at javax.naming.InitialContext.lookup(InitialContext. java:351)
at CorbaClient.getMySession(CorbaClient.java:71)
at CorbaClient.main(CorbaClient.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:
90)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203
completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.writeErrorSend(ORBUtilSystemException.java:
2231)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.writeErrorSend(ORBUtilSystemException.java:
2253)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.writeLock(SocketOrChannelConnectionImp l.java:
933)
at
com.sun.corba.se.impl.encoding.BufferManagerWriteS tream.sendFragment(BufferManagerWriteStream.java:
78)
at
com.sun.corba.se.impl.encoding.BufferManagerWriteS tream.sendMessage(BufferManagerWriteStream.java:
96)
at
com.sun.corba.se.impl.encoding.CDROutputObject.fin ishSendingMessage(CDROutputObject.java:
144)
at
com.sun.corba.se.impl.protocol.CorbaMessageMediato rImpl.finishSendingRequest(CorbaMessageMediatorImp l.java:
247)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.marshalingComplete1(CorbaClientReque stDispatcherImpl.java:
342)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.marshalingComplete(CorbaClientReques tDispatcherImpl.java:
323)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.invoke(CorbaClientDelegateImpl.java:
129)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.is_a(CorbaClientDelegateImpl.java:
213)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl .java:112)
at
org.omg.CosNaming.NamingContextHelper.narrow(Namin gContextHelper.java:
69)
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext( CNCtx.java:345)
... 14 more
  Reply With Quote
5 30th March 02:18
External User
 
Posts: 1
Default java corba client to ejb


Hi all,

I'm trying to write simple example - java client, which do smth useful
with ejb through corba.
I already have some beans (entity and session) and simple jnp client.
I want to make Cobra client to my ejbs.
Ejb deployed to jboss.

I found some tutorial, and trying to do step by step.
Firstly I generated idls with tool rmic
Then I trying to generate java code from idl with tool idlj.
This tool generated some java classes (Stubs, Holders, Helpers, etc),
but firsly i don't understand, why i need to do it with all import
classes - the stubs, helpers, etc. generated to those classes to (if
don't it wouldnot work)
And one question else: Why it use some <ClassName>Impl but don't
created them. Must I implement those abstract classes and interfaces
with special logic?

I tryed to implement such classes and i have not write any logic -
just as stubs.
When I'm able to compile, I try to start my client, but i have error
and i don't understant what does it mean and can't find any answers.

Please, help me with this deal and f****ve me my poor english
ollka
  Reply With Quote
6 30th March 02:18
External User
 
Posts: 1
Default java corba client to ejb


sorry,
my error is
21.03.2007 16:20:30
com.sun.corba.se.impl.protocol.giopmsgheaders.Mess ageBase
readGIOPHeader
WARNING: "IOP00710220: (INTERNAL) Error in GIOP magic"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 220 completed: Maybe
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.giopMagicError(ORBUtilSystemException.java:
4095)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.giopMagicError(ORBUtilSystemException.java:
4109)
at
com.sun.corba.se.impl.protocol.giopmsgheaders.Mess ageBase.readGIOPHeader(MessageBase.java:
156)
at
com.sun.corba.se.impl.transport.CorbaContactInfoBa se.createMessageMediator(CorbaContactInfoBase.java :
150)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.readBits(SocketOrChannelConnectionImpl .java:
314)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.handleEvent(SocketOrChannelConnectionI mpl.java:
1098)
at com.sun.corba.se.impl.transport.SelectorImpl.run(S electorImpl.java:
282)
javax.naming.CommunicationException: Cannot connect to ORB [Root
exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code:
203 completed: No]
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext( CNCtx.java:362)
at com.sun.jndi.cosnaming.CNCtx.initUsingCorbanameUrl (CNCtx.java:321)
at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.ja va:247)
at com.sun.jndi.cosnaming.CNCtx.createUsingURL(CNCtx. java:85)
at
com.sun.jndi.url.iiop.iiopURLContextFactory.getUsi ngURLIgnoreRest(iiopURLContextFactory.java:
56)
at
com.sun.jndi.url.iiop.iiopURLContext.getRootURLCon text(iiopURLContext.java:
44)
at
com.sun.jndi.toolkit.url.GenericURLContext.lookup( GenericURLContext.java:
182)
at javax.naming.InitialContext.lookup(InitialContext. java:351)
at CorbaClient.getMySession(CorbaClient.java:71)
at CorbaClient.main(CorbaClient.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:
90)
Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 203
completed: No
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.writeErrorSend(ORBUtilSystemException.java:
2231)
at
com.sun.corba.se.impl.logging.ORBUtilSystemExcepti on.writeErrorSend(ORBUtilSystemException.java:
2253)
at
com.sun.corba.se.impl.transport.SocketOrChannelCon nectionImpl.writeLock(SocketOrChannelConnectionImp l.java:
933)
at
com.sun.corba.se.impl.encoding.BufferManagerWriteS tream.sendFragment(BufferManagerWriteStream.java:
78)
at
com.sun.corba.se.impl.encoding.BufferManagerWriteS tream.sendMessage(BufferManagerWriteStream.java:
96)
at
com.sun.corba.se.impl.encoding.CDROutputObject.fin ishSendingMessage(CDROutputObject.java:
144)
at
com.sun.corba.se.impl.protocol.CorbaMessageMediato rImpl.finishSendingRequest(CorbaMessageMediatorImp l.java:
247)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.marshalingComplete1(CorbaClientReque stDispatcherImpl.java:
342)
at
com.sun.corba.se.impl.protocol.CorbaClientRequestD ispatcherImpl.marshalingComplete(CorbaClientReques tDispatcherImpl.java:
323)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.invoke(CorbaClientDelegateImpl.java:
129)
at
com.sun.corba.se.impl.protocol.CorbaClientDelegate Impl.is_a(CorbaClientDelegateImpl.java:
213)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl .java:112)
at
org.omg.CosNaming.NamingContextHelper.narrow(Namin gContextHelper.java:
69)
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext( CNCtx.java:345)
... 14 more
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666