There are some problems where I start the weblogic server which configured in IDEA 5

When I start the weblogic,the console shows these error:
Connected to server
<> <> <> <> ]]>
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.StreamCorruptedException
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137)
at weblogic.management.internal.RemoteMBeanServerImpl_814_WLStub.getServerName(Unknown Source)
at com.intellij.j2ee.wrappers.RemoteMBeanServerWrapper.getServerName(RemoteMBeanServerWrapper.java:38)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance.refreshStateImpl(WeblogicAbstractInstance.java:198)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$4.run(ServerPollThread.java:318)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.security.Security.runAs(Security.java:41)
at com.intellij.j2ee.wrappers.WeblogicLogin.runAs(WeblogicLogin.java:121)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.refreshState(ServerPollThread.java:315)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$1.run(ServerPollThread.java:102)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.runRequest(ServerPollThread.java:289)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.run(ServerPollThread.java:255)
Caused by: java.io.StreamCorruptedException
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1301)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:120)
at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:120)
at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
-


nested within: -


weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
[java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.StreamCorruptedException]
at weblogic.management.internal.RemoteMBeanServerImpl_814_WLStub.getServerName(Unknown Source)
at com.intellij.j2ee.wrappers.RemoteMBeanServerWrapper.getServerName(RemoteMBeanServerWrapper.java:38)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance.refreshStateImpl(WeblogicAbstractInstance.java:198)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$4.run(ServerPollThread.java:318)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.security.Security.runAs(Security.java:41)
at com.intellij.j2ee.wrappers.WeblogicLogin.runAs(WeblogicLogin.java:121)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.refreshState(ServerPollThread.java:315)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$1.run(ServerPollThread.java:102)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.runRequest(ServerPollThread.java:289)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.run(ServerPollThread.java:255)

<Incoming message header or abbreviation processing failed
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = 1081892073854801359, local class serialVersionUID = -5467795090068647408
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = 1081892073854801359, local class serialVersionUID = -5467795090068647408
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:33)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:210)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:235)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:735)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:760)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)


<> <> <> <> ]]>
weblogic.rjvm.PeerGoneException: ; nested exception is:
java.io.EOFException
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:137)
at weblogic.management.internal.RemoteMBeanServerImpl_814_WLStub.addNotificationListener(Unknown Source)
at com.intellij.j2ee.wrappers.RemoteMBeanServerWrapper.addNotificationListener(RemoteMBeanServerWrapper.java:67)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.registerMBeansListener(ServerPollThread.java:136)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.access$500(ServerPollThread.java:42)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$1.run(ServerPollThread.java:104)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.runRequest(ServerPollThread.java:289)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.run(ServerPollThread.java:255)
Caused by: java.io.EOFException
at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:874)
at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:583)
at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:533)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:691)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:638)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:282)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
-


nested within: -


weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
[weblogic.rjvm.PeerGoneException: ; nested exception is:
java.io.EOFException]
at weblogic.management.internal.RemoteMBeanServerImpl_814_WLStub.addNotificationListener(Unknown Source)
at com.intellij.j2ee.wrappers.RemoteMBeanServerWrapper.addNotificationListener(RemoteMBeanServerWrapper.java:67)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.registerMBeansListener(ServerPollThread.java:136)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.access$500(ServerPollThread.java:42)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$1.run(ServerPollThread.java:104)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.runRequest(ServerPollThread.java:289)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.run(ServerPollThread.java:255)

<> <> <> <> ]]>
java.rmi.ConnectException: Couldn't connect to weblogic.rjvm.RJVMImpl@125bc91 - id: '-2247851723731589086S:192.168.0.223:[80,80,-1,-1,80,-1,-1,0,0]:HAS:three' connect time: 'Thu Aug 04 10:50:22 CST 2005' - it is likely that the connection has already been shut down
at weblogic.rjvm.ConnectionManager.getOutputStream(ConnectionManager.java:1597)
at weblogic.rjvm.RJVMImpl.getOutputStream(RJVMImpl.java:392)
at weblogic.rjvm.RJVMImpl.getRequestStream(RJVMImpl.java:551)
at weblogic.rjvm.RJVMImpl.getOutboundRequest(RJVMImpl.java:683)
at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:90)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:126)
at weblogic.management.internal.AdminMBeanHomeImpl_814_WLStub.getMBean(Unknown Source)
at com.intellij.j2ee.wrappers.WebLogicMBeanWrapper.getMBean(WebLogicMBeanWrapper.java:107)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance.getDeploymentStatus(WeblogicAbstractInstance.java:416)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance.access$400(WeblogicAbstractInstance.java:63)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance$2.run(WeblogicAbstractInstance.java:390)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$3.run(ServerPollThread.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.security.Security.runAs(Security.java:61)
at com.intellij.j2ee.wrappers.WeblogicLogin.runAs(WeblogicLogin.java:117)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.runRequest(ServerPollThread.java:281)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.run(ServerPollThread.java:255)
-


nested within: -


weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception - with nested exception:
[java.rmi.ConnectException: Couldn't connect to weblogic.rjvm.RJVMImpl@125bc91 - id: '-2247851723731589086S:192.168.0.223:[80,80,-1,-1,80,-1,-1,0,0]:HAS:three' connect time: 'Thu Aug 04 10:50:22 CST 2005' - it is likely that the connection has already been shut down]
at weblogic.management.internal.AdminMBeanHomeImpl_814_WLStub.getMBean(Unknown Source)
at com.intellij.j2ee.wrappers.WebLogicMBeanWrapper.getMBean(WebLogicMBeanWrapper.java:107)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance.getDeploymentStatus(WeblogicAbstractInstance.java:416)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance.access$400(WeblogicAbstractInstance.java:63)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.WeblogicAbstractInstance$2.run(WeblogicAbstractInstance.java:390)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread$3.run(ServerPollThread.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.security.Security.runAs(Security.java:61)
at com.intellij.j2ee.wrappers.WeblogicLogin.runAs(WeblogicLogin.java:117)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.runRequest(ServerPollThread.java:281)
at com.intellij.j2ee.weblogic.runDebug.weblogicServerInstances.ServerPollThread.run(ServerPollThread.java:255)

Please tell me what is the problem! Thanks.

12 comments
Comment actions Permalink

I have experienced the same exact problem, and I have modified the idea.properties file (uncommented the line "jmx.serial.form=1.0") and restarted the IDE - as was recommended in the referenced discussion, but it had no effect watsoever.

I am still getting the same exception: "java.rmi.UnmarshalException: error unmarshalling arguments..." when attempting to launch a local WL instance. I have been using ant scripts to deploy ejbs, but it would have been much, much easier if I could deploy my j2ee modules from the IDE. Very frustrating. Any clue what else I need to do to make it work? I am using WL 8.1 and JDK 1.4.x. Please help!!! :) Anyone? Thanks!

0
Comment actions Permalink

Please, use JDK 1.4 for running IDEA

Constantine Vasilyev wrote:

I have experienced the same exact problem, and I have modified the idea.properties file (uncommented the line "jmx.serial.form=1.0") and restarted the IDE - as was recommended in the referenced discussion, but it had no effect watsoever.

I am still getting the same exception: "java.rmi.UnmarshalException: error unmarshalling arguments..." when attempting to launch a local WL instance. I have been using ant scripts to deploy ejbs, but it would have been much, much easier if I could deploy my j2ee modules from the IDE. Very frustrating. Any clue what else I need to do to make it work? I am using WL 8.1 and JDK 1.4.x. Please help!!! :) Anyone? Thanks!



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Maxim,
Thank you so much for your reply! Forgive me for one more really dumb question... :) Where do I change this setting? I have my project settings pointing to JDK 1.4 in the JDK/Global Libraries tab, but that's what IDEA uses to compile my code. I am not sure what to do to run IDEA itself using 1.4. Should I simply make changes in the idea start scripts. Thanks a lot for your help!

0
Comment actions Permalink

idea.bat

Constantine Vasilyev wrote:

Maxim,
Thank you so much for your reply! Forgive me for one more really dumb question... :) Where do I change this setting? I have my project settings pointing to JDK 1.4 in the JDK/Global Libraries tab, but that's what IDEA uses to compile my code. I am not sure what to do to run IDEA itself using 1.4. Should I simply make changes in the idea start scripts. Thanks a lot for your help!



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

I didn't work... I have modified idea.bat (explicitly, "SET IDEA_JDK=C:\Java\j2sdk1.4.2_07" to override the original setting) and restarted the IDE. The same nasty java.rmi.UnmarshalException when trying to run a WL instance. There's got to be a better way, seriously! Otherwise, this WL support is totally worthless.

I have also tried to use the "Add IntelliJ SDK" button in the JDK/Global Libraries tab, but it gives me the following message when I attempt to select my JDK folder:

"The directory selected is not a valid home for IntelliJ IDEA SDK."

Am I doing something wrong? I know that a co-worker is currently going through the same trouble and hasn't been able to resolve it either.

0
Comment actions Permalink

Hello Constantine,

I didn't work... I have modified idea.bat (explicitly, "SET
IDEA_JDK=C:\Java\j2sdk1.4.2_07" to override the original setting)


Do you run idea.bat then? Or do you launch idea.exe? What JDK version mentioned
in IDEA's Help|About dialog?

IntelliJ SDK has nothing to the JRE IDEA runs itself under. That's for plugin
development.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I didn't work... I have modified idea.bat (explicitly, "SET
IDEA_JDK=C:\Java\j2sdk1.4.2_07" to override the original setting)
and restarted the IDE. The same nasty java.rmi.UnmarshalException when
trying to run a WL instance. There's got to be a better way,
seriously! Otherwise, this WL support is totally worthless.

I have also tried to use the "Add IntelliJ SDK" button in the
JDK/Global Libraries tab, but it gives me the following message when I
attempt to select my JDK folder:

"The directory selected is not a valid home for IntelliJ IDEA SDK."

Am I doing something wrong? I know that a co-worker is currently going
through the same trouble and hasn't been able to resolve it either.



0
Comment actions Permalink


Also, jmx version should not be set if IDEA runs under 1.4

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I didn't work... I have modified idea.bat (explicitly, "SET
IDEA_JDK=C:\Java\j2sdk1.4.2_07" to override the original setting)
and restarted the IDE. The same nasty java.rmi.UnmarshalException when
trying to run a WL instance. There's got to be a better way,
seriously! Otherwise, this WL support is totally worthless.

I have also tried to use the "Add IntelliJ SDK" button in the
JDK/Global Libraries tab, but it gives me the following message when I
attempt to select my JDK folder:

"The directory selected is not a valid home for IntelliJ IDEA SDK."

Am I doing something wrong? I know that a co-worker is currently going
through the same trouble and hasn't been able to resolve it either.



0
Comment actions Permalink

Maxim & Maxim,

thank you both very much. I finally got it to work after I set the IDEA_JDK value in the environment vs. setting it in the idea.bat file. Not sure what the difference was. I also launched the IDE by explicitly typing idea.bat in the command line instead of running the .exe file. Will play some more to figure out the easiest way.

If there is no other workaraund in the near future, it may be a good idea to automate this process. Perhaps, when the users choose to setup a project that includes a WL instance they should be informed that they need to restart the IDEA (and it will be restarted with SDK 1.4) to be able to deploy apps with local instances of WL? Thanks again for your help.

0
Comment actions Permalink

The bug in IDEA-1651 was fixed, from version 3526 I'm able to run idea with
jdk 1.5 and debug on WL 8.1.4 with jdk 1.4.05.
Your response means that there are other problems or is a mistake?

Thank's

Please, use JDK 1.4 for running IDEA

Constantine Vasilyev wrote:

>> I have experienced the same exact problem, and I have modified the
>> idea.properties file (uncommented the line "jmx.serial.form=1.0") and
>> restarted the IDE - as was recommended in the referenced discussion,
>> but it had no effect watsoever.
>>
>> I am still getting the same exception: "java.rmi.UnmarshalException:
>> error unmarshalling arguments..." when attempting to launch a local
>> WL instance. I have been using ant scripts to deploy ejbs, but it
>> would have been much, much easier if I could deploy my j2ee modules
>> from the IDE. Very frustrating. Any clue what else I need to do to
>> make it work? I am using WL 8.1 and JDK 1.4.x. Please help!!! :)
>> Anyone? Thanks!
>>


0
Comment actions Permalink

Roberto Poli wrote:

The bug in IDEA-1651 was fixed, from version 3526 I'm able to run idea
with jdk 1.5 and debug on WL 8.1.4 with jdk 1.4.05.
Your response means that there are other problems or is a mistake?
Thank's


I had the same thought, until I realized that this is the community forum.
Most users here are not using the EAP versions, but rather the released versions.
The latest release is 5.0.1 (build 3461).
I believe that the first released version to have the fix will be 5.0.2.

0

Please sign in to leave a comment.