Oly Diesel

Greenhorn
+ Follow
since Sep 21, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Oly Diesel

I still have this problem on Oracle Weblogic 10.3.1.0.

I cannot send the entity bean to my standalone client.
I made sure the Entity Bean class file is the same on the server and the client (in the same lib I put a DTO, when I copy the entity data into the DTO the
client receives all data).
I expect the standalone client to receive a 'detached' entity bean but instead I
receive the error:

------------------------------
<15.08.2009 15:06 Uhr MESZ> <Warning> <RMI> <BEA-080003> <RuntimeException throw
n by rmi server: weblogic.corba.cos.codebase.CodeBaseImpl.meta(Ljava.lang.String
;)
org.omg.CORBA.BAD_PARAM: Could not find FVD class for: RMI:helloworld.persisten
ce.GreetedName:F7278CC14D027040:164D3331F7A9B8B9 vmcid: 0x0 minor code: 0 com
pleted: No.
org.omg.CORBA.BAD_PARAM: Could not find FVD class for: RMI:helloworld.persistenc
e.GreetedName:F7278CC14D027040:164D3331F7A9B8B9 vmcid: 0x0 minor code: 0 comp
leted: No
at weblogic.corba.cos.codebase.CodeBaseImpl.meta(CodeBaseImpl.java:104)
at org.omg.SendingContext._CodeBaseImplBase._invoke(_CodeBaseImplBase.ja
va:94)
at weblogic.corba.idl.CorbaServerRef.invoke(CorbaServerRef.java:249)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
Truncated. see log file for complete stacktrace
>


And on the client:
--------------------------------

javax.ejb.EJBException: CORBA BAD_PARAM 0 No; nested exception is:
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No; nested exception is: org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
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 com.sun.org.omg.SendingContext._CodeBaseStub.meta(_CodeBaseStub.java:105)
at com.sun.corba.se.impl.encoding.CachedCodeBase.meta(CachedCodeBase.java:89)
at com.sun.corba.se.impl.io.IIOPInputStream.getOrderedDescriptions(IIOPInputStream.java:1276)
at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1455)
at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
at helloworld._HelloWorldBean_kap09s_HelloWorldIntf_Stub.find(Unknown Source)
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:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
at $Proxy0.find(Unknown Source)
at helloworld.HelloWorldClient2.main(HelloWorldClient2.java:26)
javax.ejb.EJBException: CORBA BAD_PARAM 0 No; nested exception is:
org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No; nested exception is: org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:109)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:91)
at $Proxy0.find(Unknown Source)
at helloworld.HelloWorldClient2.main(HelloWorldClient2.java:26)
Caused by: org.omg.CORBA.BAD_PARAM: vmcid: 0x0 minor code: 0 completed: No
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
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 com.sun.org.omg.SendingContext._CodeBaseStub.meta(_CodeBaseStub.java:105)
at com.sun.corba.se.impl.encoding.CachedCodeBase.meta(CachedCodeBase.java:89)
at com.sun.corba.se.impl.io.IIOPInputStream.getOrderedDescriptions(IIOPInputStream.java:1276)
at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1455)
at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:398)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
at com.sun.corba.se.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:253)
at helloworld._HelloWorldBean_kap09s_HelloWorldIntf_Stub.find(Unknown Source)
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:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
... 2 more


13 years ago
Thanks Allen and Paul,

I actually did think of letting RAF beeing garbage collected without closing it because I assumed the FileChannel would do the right thing. A stupid assumption, but if you want to keep a channel you always have to keep the generating class, which is cumbersome and not explicitely described in the specs...

Apart from 'nio' in 'junior' URLyBird does not mention NIO :-)

Regards,
Oly
What happens to the FileChannel if the underlying RAF is garbage collected?
Does the FileChannel have a reference back to the RAF in order to prevent it's garbage collection?

If not the following method would be risky:
<pre>
static FileChannel getChannel(final File pFile) throws IOException {

RandomAccessFile raFile = new RandomAccessFile(pFile, READ_WRITE_MODE);
FileChannel channel = raFile.getChannel();

return channel;
}
</pre>

thanks,
oly
A helpful friend found something:

Weblogic has a proprietary API to do this (weblogic.jms.extensions.WLMessageProducer) sender).setTimeToDeliver(15000);

Oracle is said to have a similar API.
Hi,

Problem:
a producer sends a message to the queue.
after this 15 minutes should be waited
before the consumer processes this messages
because it is known that some preconditional
background processes are guaranteed to be
done by then.

a) blocking a thread with sleep (illegal?) in the consumer seems
stupid.
b) doing this with a selector on the timestamp
seems to me to be an expensive task if possible at all.
c) ?
what is the correct and most efficient/performant
enterprise pattern to do that?

Regards,
Oly