"java.lang.NullPointerException" Error Occurring While Uploading a File to Document

(Doc ID 795833.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Transportation Management - Version 5.5.04.06 to 6.0.1 [Release 5.5 to 6]
Information in this document applies to any platform.
***Checked for relevance on 12-Dec-2013***


Symptoms

-- Problem Statement:

 

When attempting to upload a file to a document, the following error occurs. This includes uploading an XML file to create an XML Template.

ERROR
java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:33)
at glog.util.jdbc.lob.GLogLob$SetLob.<init>(GLogLob.java:206)
at glog.util.jdbc.lob.GLogClob$SetClob.<init>(GLogClob.java:117)
at glog.util.jdbc.lob.GLogClob.write(GLogClob.java:36)
at glog.server.document.DocumentSessionBean.insertUpdateDocumentContent(DocumentSessionBean.java:302)
at glog.server.document.DocumentSessionServerSideEJBWrapper.insertUpdateDocumentContent(DocumentSessionServerSideEJBWrapper.java:98)
at glog.server.document.DocumentSessionBean.setDocumentContent(DocumentSessionBean.java:206)
at glog.server.document.DocumentSessionBean.setDocumentContent(DocumentSessionBean.java:179)
at glog.server.document.DocumentSessionServerSideEJBWrapper.setDocumentContent(DocumentSessionServerSideEJBWrapper.java:66)
at sun.reflect.GeneratedMethodAccessor602.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SecurityRoleInterceptor.invoke(SecurityRoleInterceptor.java:47)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at DocumentSessionHome_RemoteProxy_3e8o502.setDocumentContent(Unknown Source)
at glog.server.document.gen.DocumentSessionSkel.setDocumentContent(DocumentSessionSkel.java:270)
at glog.server.document.gen.DocumentSessionSkel.exec(DocumentSessionSkel.java:36)
at glog.webserver.wrapper.SkelImpl.execDispatch(SkelImpl.java:15)
at glog.server.wrapper.WrapperSessionBean.execDispatch(WrapperSessionBean.java:56)
at glog.server.wrapper.WrapperSessionServerSideEJBWrapper.execDispatch(WrapperSessionServerSideEJBWrapper.java:42)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms