gpt4 book ai didi

java - java.io.NotSerializableException:weblogic.ejb.container.internal.StatelessLocalObject

转载 作者:太空宇宙 更新时间:2023-11-04 13:04:48 25 4
gpt4 key购买 nike

我安装了具有两个服务器的Weblogic 12C群集。当我启动服务器时,该应用程序一切正常,但是在首次登录该应用程序时,我可以在服务器日志中看到此异常。

 <BEA-000126 <All session objects should be serializable to replicate. Check the objects in the session. Failed to replicate a non-serializable object.


java.ri.arshalException:无法进行更新(Lweblogic.cluster.replication.ROID; ILjava.io.Serializable; Ljava.lang.Object;);嵌套的异常是:
         java.io.NotSerializableException:weblogic.ejb.container.internal.StatelessLocalObject
         在weblogic.rjv.BasicOutboundRequest.arshalArgs(BasicOutboundRequest.java:92)
         在weblogic.ri.internal.BasicReoteRef.invoke(BasicReoteRef.java:301)
         在weblogic.cluster.replication.ANReplicationanager_12130_WLStub.update中(未知源)
         在sun.reflect.NativeethodAccessorIpl.invoke0(本机ethod)
         在sun.reflect.NativeethodAccessorIpl.invoke(NativeethodAccessorIpl.java:62)
         在sun.reflect.DelegatingethodAccessorIpl.invoke(DelegatingethodAccessorIpl.java:43)
         在java.lang.reflect.ethod.invoke(ethod.java:497)
         在weblogic.cluster.replication.SecureReplicationInvocationHandler $ ReplicationServicesInvocationAction.run(SecureReplicationInvocationHandler.java:194)处
         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         在weblogic.security.service.Securityanager.runAs(Securityanager.java:120)
         在weblogic.cluster.replication.SecureReplicationInvocationHandler.invoke(SecureReplicationInvocationHandler.java:164)
         在co.sun.proxy。$ Proxy110.update(未知来源)
         在weblogic.cluster.replication.Replicationanager.sendUpdateRequestToSecondary(Replicationanager.java:763)
         在weblogic.cluster.replication.Replicationanager.updateSecondary(Replicationanager.java:678)
         在weblogic.servlet.internal.session.ReplicatedSessionData._syncSession(ReplicatedSessionData.java:599)
         在weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:563)
         在weblogic.servlet.internal.session.SessionContext.sync(SessionContext.java:148)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSession(ServletRequestIpl.java:3258)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSessions(ServletRequestIpl.java:3236)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSession(ServletRequestIpl.java:3224)
         在weblogic.servlet.internal.ServletResponseIpl $ 1.run(ServletResponseIpl.java:1597)
         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         在weblogic.security.service.Securityanager.runAs(Securityanager.java:120)
         在weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
         在weblogic.servlet.internal.ServletResponseIpl.send(ServletResponseIpl.java:1593)
         在weblogic.servlet.internal.ServletRequestIpl.run(ServletRequestIpl.java:1582)
         在weblogic.servlet.provider.ContainerSupportProviderIpl $ WlsRequestExecutor.run(ContainerSupportProviderIpl.java:255)
         在java.io.ObjectOutputStrea.writeSerialData(ObjectOutputStrea.java:1509)
         在java.io.ObjectOutputStrea.writeOrdinaryObject(ObjectOutputStrea.java:1432)
         在java.io.ObjectOutputStrea.writeObject0(ObjectOutputStrea.java:1178)
         在java.io.ObjectOutputStrea.defaultWriteFields(ObjectOutputStrea.java:1548)
         在java.io.ObjectOutputStrea.writeSerialData(ObjectOutputStrea.java:1509)
         在java.io.ObjectOutputStrea.writeOrdinaryObject(ObjectOutputStrea.java:1432)
         在java.io.ObjectOutputStrea.writeObject0(ObjectOutputStrea.java:1178)
         在java.io.ObjectOutputStrea.writeObject(ObjectOutputStrea.java:348)
         在weblogic.servlet.internal.session.ReplicatedSessionChange.writeExternal(ReplicatedSessionChange.java:181)
         在java.io.ObjectOutputStrea.writeExternalData(ObjectOutputStrea.java:1459)
         在java.io.ObjectOutputStrea.writeOrdinaryObject(ObjectOutputStrea.java:1430)
         在java.io.ObjectOutputStrea.writeObject0(ObjectOutputStrea.java:1178)
         在java.io.ObjectOutputStrea.writeObject(ObjectOutputStrea.java:348)
         在weblogic.rjv.sgAbbrevOutputStrea.writeObject(sgAbbrevOutputStrea.java:627)
         在weblogic.rjv.sgAbbrevOutputStrea.writeObjectWL(sgAbbrevOutputStrea.java:618)
         在weblogic.ri.internal.ObjectIO.writeObject(ObjectIO.java:38)
         在weblogic.rjv.BasicOutboundRequest.arshalArgs(BasicOutboundRequest.java:88)
         在weblogic.ri.internal.BasicReoteRef.invoke(BasicReoteRef.java:301)
         在weblogic.cluster.replication.ANReplicationanager_12130_WLStub.update中(未知源)
         在sun.reflect.NativeethodAccessorIpl.invoke0(本机ethod)
         在sun.reflect.NativeethodAccessorIpl.invoke(NativeethodAccessorIpl.java:62)
         在sun.reflect.DelegatingethodAccessorIpl.invoke(DelegatingethodAccessorIpl.java:43)
         在java.lang.reflect.ethod.invoke(ethod.java:497)
         在weblogic.cluster.replication.SecureReplicationInvocationHandler $ ReplicationServicesInvocationAction.run(SecureReplicationInvocationHandler.java:194)处
         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         在weblogic.security.service.Securityanager.runAs(Securityanager.java:120)
         在weblogic.cluster.replication.SecureReplicationInvocationHandler.invoke(SecureReplicationInvocationHandler.java:164)
         在co.sun.proxy。$ Proxy110.update(未知来源)
         在weblogic.cluster.replication.Replicationanager.sendUpdateRequestToSecondary(Replicationanager.java:763)
         在weblogic.cluster.replication.Replicationanager.updateSecondary(Replicationanager.java:678)
         在weblogic.servlet.internal.session.ReplicatedSessionData._syncSession(ReplicatedSessionData.java:599)
         在weblogic.servlet.internal.session.ReplicatedSessionData.syncSession(ReplicatedSessionData.java:563)
         在weblogic.servlet.internal.session.SessionContext.sync(SessionContext.java:148)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSession(ServletRequestIpl.java:3258)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSessions(ServletRequestIpl.java:3236)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSession(ServletRequestIpl.java:3224)
         在weblogic.servlet.internal.ServletResponseIpl $ 1.run(ServletResponseIpl.java:1597)
         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         在weblogic.servlet.internal.session.SessionContext.sync(SessionContext.java:148)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSession(ServletRequestIpl.java:3258)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSessions(ServletRequestIpl.java:3236)
         在weblogic.servlet.internal.ServletRequestIpl $ SessionHelper.syncSession(ServletRequestIpl.java:3224)
         在weblogic.servlet.internal.ServletResponseIpl $ 1.run(ServletResponseIpl.java:1597)
         在weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         在weblogic.security.service.Securityanager.runAs(Securityanager.java:120)
         在weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
         在weblogic.servlet.internal.ServletResponseIpl.send(ServletResponseIpl.java:1593)
         在weblogic.servlet.internal.ServletRequestIpl.run(ServletRequestIpl.java:1582)
         在weblogic.servlet.provider.ContainerSupportProviderIpl $ WlsRequestExecutor.run(ContainerSupportProviderIpl.java:255)
         在weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
         在weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

该应用程序不使用EJB容器。任何想法?

谢谢

最佳答案

当对象无法串行化而正在发送或接收对象时,抛出此异常。
这意味着从其创建对象的类未实现“可序列化”接口。我不知道您是否有权访问服务器(或客户端)的代码。
要更清楚什么是序列化,请参阅以下较早的文章:What is object serialization?

关于java - java.io.NotSerializableException:weblogic.ejb.container.internal.StatelessLocalObject,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34592751/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com