ws_0113
wswsws_001
2015-03-27 02:05

weblogic12c oracle10g

  • ojdbc

使用ojdbc6连10g时,报不能序列化问题。这个怎么解决呢。直接用ojdbc14.jar替换server下的ojdbc6.创建wls数据源时失败。有什么办法解决?weblogic12c(12.1)
java.rmi.UnmarshalException: oracle.jdbc.driver.T4CConnection; nested exception is:

java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection

    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:476)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:272)
    at com.lenovo.stat.collection.SubmitInfoBean_5ry88c_EOImpl_1211_WLStub.setSubmitObj(Unknown Source)
    at com.lenovo.stat.collection.SubmitInfoBeanClient.setSubmitObj(SubmitInfoBeanClient.java:125)
    at com.lenovo.stat.collection.DataSubmit.addItem(DataSubmit.java:83)
    at com.lenovo.stat.pub.AbstractServletAction.runAction(AbstractServletAction.java:279)
    at com.lenovo.stat.pub.ServletNavigation.doServlet(ServletNavigation.java:601)
    at jsp_servlet._pub.__run_action._jspService(__run_action.java:102)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3284

)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.ja
va:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
at weblogic.rmi.extensions.server.CBVOutputStream.writeObject(CBVOutputStream.java:80)
at weblogic.rmi.internal.ServerRequest.copy(ServerRequest.java:280)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:193)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:461)
... 25 more

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐