This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 111254 - Error registering WebLogic server - StreamCorruptedException
Summary: Error registering WebLogic server - StreamCorruptedException
Status: RESOLVED DUPLICATE of bug 85454
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-27 18:18 UTC by _ jimdavidson
Modified: 2007-07-30 10:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ jimdavidson 2007-07-27 18:18:59 UTC
Using a developer build:

Download and install WebLogic Server 9.2.  

In IDE, select Add Server to register the server.  Fill in location and instance properties (examples server,
weblogic/weblogic).  After clicking Finish, the following error appears:

java.io.StreamCorruptedException: invalid type code: 31
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1356)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
	at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
	at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
	at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:191)
	at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
	at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:201)
Caused: java.rmi.UnmarshalException: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested
exception is: 
	java.io.StreamCorruptedException: invalid type code: 31
	at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:203)
	at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:224)
	at weblogic.common.internal.RMIBootServiceImpl_920_WLStub.authenticate(Unknown Source)
	at weblogic.security.acl.internal.Security$1.run(Security.java:185)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
	at weblogic.security.acl.internal.Security.authenticate(Security.java:181)
	at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:726)
	at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:659)
Caused: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: failed to unmarshal class
weblogic.security.acl.internal.AuthenticatedUser; nested exception is: 
	java.io.StreamCorruptedException: invalid type code: 31]
	at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:85)
	at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:41)
	at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:765)
	at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:665)
	at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:465)
	at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:372)
	at weblogic.jndi.Environment.getContext(Environment.java:307)
	at weblogic.jndi.Environment.getContext(Environment.java:277)
	at weblogic.jndi.Environment.createInitialContext(Environment.java:200)
	at weblogic.jndi.Environment.getInitialContext(Environment.java:184)
	at weblogic.jndi.Environment.getInitialContext(Environment.java:162)
	at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getContext(ServerConnectionImpl.java:330)
	at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getEnvironment(ServerConnectionImpl.java:302)
	at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:141)
Caused: weblogic.deploy.api.spi.exceptions.ServerConnectionException
	at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectionImpl.java:143)
	at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(WebLogicDeploymentManagerImpl.java:148)
	at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:118)
Caused: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
	at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:121)
	at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
	at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:432)
	at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:450)
Caused: java.lang.reflect.InvocationTargetException
	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 org.netbeans.modules.j2ee.weblogic9.WLDeploymentFactory.getDM(WLDeploymentFactory.java:145)
Caused: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: Cannot create weblogic
DeploymentManager instance.
	at org.netbeans.modules.j2ee.weblogic9.WLDeploymentFactory.getDM(WLDeploymentFactory.java:152)
	at org.netbeans.modules.j2ee.weblogic9.WLDeploymentFactory.getDeploymentManager(WLDeploymentFactory.java:208)
	at org.netbeans.modules.j2ee.deployment.impl.Server.getDeploymentManager(Server.java:163)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getDeploymentManager(ServerInstance.java:221)
Caused: java.lang.RuntimeException
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getDeploymentManager(ServerInstance.java:226)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargetMap(ServerInstance.java:464)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getTargets(ServerInstance.java:437)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._retrieveTarget(ServerInstance.java:1572)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.isSuspended(ServerInstance.java:779)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance$1.run(ServerInstance.java:319)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)


An entry for BEA Weblogic Server appears under the Servers node, so the registration may or may not have worked.
Comment 1 Sherold Dev 2007-07-30 10:11:27 UTC
Marking as a duplicate and lowering the priority to p3.

*** This issue has been marked as a duplicate of 85454 ***