• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SunOne7.0b - EBJ Deployment

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When my client executes the following line (note: my client and server code both works in iplanet6.5 and the modifications I have made to migrate to sun one are minimal, mostly in xml files):
ConsumerCreditHome serverHome = (ConsumerCreditHome)PortableRemoteObject.narrow(serverHomeRef, ConsumerCreditHome.class);

The client spits out the following error message: java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Porta
bleRemoteObject.java:296)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at a.ConsumerCreditClient.connect(ConsumerCreditClient.java:66)
at a.ConsumerCreditRunner.runExample(ConsumerCreditRunner.java:62)
at a.ConsumerCreditRunner.main(ConsumerCreditRunner.java:81)
The appserver spits out the following error messages:
INFO: CORE3274: successful server startup
SEVERE:
com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI
_recvBANative: PR_Recv() failed
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recvBANative(Nativ
e Method)
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recv(Unknown Sourc
e)
at com.iplanet.ias.cis.connection.BlockingConnectionInputStream.read(Unk
nown Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(Unknown
Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(
Unknown Source)
at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(Unknown
Source)
at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(Unknown So
urce)
at com.sun.corba.ee.internal.iiop.ReaderThread.run(Unknown Source)
SEVERE:
com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI
_recvBANative: PR_Recv() failed
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recvBANative(Nativ
e Method)
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recv(Unknown Sourc
e)
at com.iplanet.ias.cis.connection.BlockingConnectionInputStream.read(Unk
nown Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(Unknown
Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(
Unknown Source)
at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(Unknown
Source)
at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(Unknown So
urce)
at com.sun.corba.ee.internal.iiop.ReaderThread.run(Unknown Source)
SEVERE:
com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI
_recvBANative: PR_Recv() failed
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recvBANative(Nativ
e Method)
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recv(Unknown Sourc
e)
at com.iplanet.ias.cis.connection.BlockingConnectionInputStream.read(Unk
nown Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(Unknown
Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(
Unknown Source)
at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(Unknown
Source)
at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(Unknown So
urce)
at com.sun.corba.ee.internal.iiop.ReaderThread.run(Unknown Source)
SEVERE:
com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI
_recvBANative: PR_Recv() failed
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recvBANative(Nativ
e Method)
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recv(Unknown Sourc
e)
at com.iplanet.ias.cis.connection.BlockingConnectionInputStream.read(Unk
nown Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(Unknown
Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(
Unknown Source)
at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(Unknown
Source)
at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(Unknown So
urce)
at com.sun.corba.ee.internal.iiop.ReaderThread.run(Unknown Source)
SEVERE:
com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI
_recvBANative: PR_Recv() failed
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recvBANative(Nativ
e Method)
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recv(Unknown Sourc
e)
at com.iplanet.ias.cis.connection.BlockingConnectionInputStream.read(Unk
nown Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(Unknown
Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(
Unknown Source)
at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(Unknown
Source)
at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(Unknown So
urce)
at com.sun.corba.ee.internal.iiop.ReaderThread.run(Unknown Source)
SEVERE:
com.iplanet.ias.cis.channel.tcp.TCPNativeException: -5961:TCPBlockingChannel.JNI
_recvBANative: PR_Recv() failed
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recvBANative(Nativ
e Method)
at com.iplanet.ias.cis.channel.tcp.TCPBlockingChannel.recv(Unknown Sourc
e)
at com.iplanet.ias.cis.connection.BlockingConnectionInputStream.read(Unk
nown Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(Unknown
Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(
Unknown Source)
at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(Unknown
Source)
at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(Unknown So
urce)
at com.sun.corba.ee.internal.iiop.ReaderThread.run(Unknown Source)
WARNING:
java.io.IOException: -5961:TCPBlockingChannel.JNI_recvBANative: PR_Recv() failed
at com.iplanet.ias.cis.connection.BlockingConnectionInputStream.read(Unk
nown Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.readFully(Unknown
Source)
at com.sun.corba.ee.internal.iiop.messages.MessageBase.createFromStream(
Unknown Source)
at com.sun.corba.ee.internal.iiop.MessageMediator.processRequest(Unknown
Source)
at com.sun.corba.ee.internal.iiop.IIOPConnection.processInput(Unknown So
urce)
at com.sun.corba.ee.internal.iiop.ReaderThread.run(Unknown Source)

the server error messages are cryptic and i cannot find any information on how to resolve my problem. Can someone shed some light on what im doing wrong?
my client code is something like this:
// Create the context
Context ctx = getInitialContext(url, contextFactory, user, passwd);

// Retrieve the home server factory from the context
Object serverHomeRef = ctx.lookup("ConsumerCreditServer");
ConsumerCreditHome serverHome = (ConsumerCreditHome)PortableRemoteObject.narrow(serverHomeRef,
ConsumerCreditHome.class);
// Create the Bean
_server = serverHome.create();
reply
    Bookmark Topic Watch Topic
  • New Topic