Content: NPE on Upload Image page for DataResource of mimetype application/pdf
------------------------------------------------------------------------------ Key: OFBIZ-1694 URL: https://issues.apache.org/jira/browse/OFBIZ-1694 Project: OFBiz Issue Type: Bug Components: content Affects Versions: SVN trunk, Release Branch 4.0 Environment: java 1.6, Fedora Core 8, OFBIZ Release Branch 4.0 Reporter: Bradley Plies Priority: Trivial Running a demo instance of OFBIZ and peeking around the content application. While inspecting the DataResource DR1114 (Disclosure Agreement) and clicking on the Image link for "Upload Image For: Disclosure Agreement [DR1114]" got an NPE. Unable to duplicate with most other DataResource instances, seems to be mainly centered around mime type of application/pdf Trunk is probably affected too because no changes have been made to org.ofbiz.content.data.DataResourceWorker since the branch. source of DataResourceWorker..streamDataResource has a comment: // TODO: remove this method in favor of getDataResourceStream Probably a trivial fix ---- runtime exception report -------------------------------------------------- Error in request handler: Exception: java.lang.NullPointerException Message: null ---- stack trace --------------------------------------------------------------- java.lang.NullPointerException org.ofbiz.content.data.DataResourceWorker.streamDataResource(DataResourceWorker.java:1079) org.ofbiz.content.data.DataResourceWorker.getContentAsByteWrapper(DataResourceWorker.java:1128) org.ofbiz.content.view.SimpleContentViewHandler.render(SimpleContentViewHandler.java:100) org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) javax.servlet.http.HttpServlet.service(HttpServlet.java:595) javax.servlet.http.HttpServlet.service(HttpServlet.java:688) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) java.lang.Thread.run(Thread.java:619) -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bradley Plies updated OFBIZ-1694: --------------------------------- Attachment: screenshot-1.jpg > Content: NPE on Upload Image page for DataResource of mimetype application/pdf > ------------------------------------------------------------------------------ > > Key: OFBIZ-1694 > URL: https://issues.apache.org/jira/browse/OFBIZ-1694 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: SVN trunk, Release Branch 4.0 > Environment: java 1.6, Fedora Core 8, OFBIZ Release Branch 4.0 > Reporter: Bradley Plies > Priority: Trivial > Attachments: screenshot-1.jpg > > > Running a demo instance of OFBIZ and peeking around the content application. While inspecting the DataResource DR1114 (Disclosure Agreement) and clicking on the Image link for "Upload Image For: Disclosure Agreement [DR1114]" got an NPE. > Unable to duplicate with most other DataResource instances, seems to be mainly centered around mime type of application/pdf > Trunk is probably affected too because no changes have been made to org.ofbiz.content.data.DataResourceWorker since the branch. > source of DataResourceWorker..streamDataResource has a comment: > // TODO: remove this method in favor of getDataResourceStream > Probably a trivial fix > ---- runtime exception report -------------------------------------------------- > Error in request handler: > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.ofbiz.content.data.DataResourceWorker.streamDataResource(DataResourceWorker.java:1079) > org.ofbiz.content.data.DataResourceWorker.getContentAsByteWrapper(DataResourceWorker.java:1128) > org.ofbiz.content.view.SimpleContentViewHandler.render(SimpleContentViewHandler.java:100) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > javax.servlet.http.HttpServlet.service(HttpServlet.java:595) > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Scott Gray updated OFBIZ-1694: ------------------------------ Affects Version/s: (was: SVN trunk) > Content: NPE on Upload Image page for DataResource of mimetype application/pdf > ------------------------------------------------------------------------------ > > Key: OFBIZ-1694 > URL: https://issues.apache.org/jira/browse/OFBIZ-1694 > Project: OFBiz > Issue Type: Bug > Components: content > Affects Versions: Release Branch 4.0 > Environment: java 1.6, Fedora Core 8, OFBIZ Release Branch 4.0 > Reporter: Bradley Plies > Priority: Trivial > Attachments: screenshot-1.jpg > > > Running a demo instance of OFBIZ and peeking around the content application. While inspecting the DataResource DR1114 (Disclosure Agreement) and clicking on the Image link for "Upload Image For: Disclosure Agreement [DR1114]" got an NPE. > Unable to duplicate with most other DataResource instances, seems to be mainly centered around mime type of application/pdf > Trunk is probably affected too because no changes have been made to org.ofbiz.content.data.DataResourceWorker since the branch. > source of DataResourceWorker..streamDataResource has a comment: > // TODO: remove this method in favor of getDataResourceStream > Probably a trivial fix > ---- runtime exception report -------------------------------------------------- > Error in request handler: > Exception: java.lang.NullPointerException > Message: null > ---- stack trace --------------------------------------------------------------- > java.lang.NullPointerException > org.ofbiz.content.data.DataResourceWorker.streamDataResource(DataResourceWorker.java:1079) > org.ofbiz.content.data.DataResourceWorker.getContentAsByteWrapper(DataResourceWorker.java:1128) > org.ofbiz.content.view.SimpleContentViewHandler.render(SimpleContentViewHandler.java:100) > org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:643) > org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:427) > org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189) > javax.servlet.http.HttpServlet.service(HttpServlet.java:595) > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248) > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > java.lang.Thread.run(Thread.java:619) > -------------------------------------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |