Ok, I created an issue before I foreget something:
https://issues.apache.org/jira/browse/OFBIZ-4336

Will attach additional info when I have them.


On Sat Jul 09,2011 02:31 pm, BJ Freeman wrote:
> can do the same thing in eclipse but you have to know the pattern you
> looking for.
> If I had time would go through history available through svn.
> 
> Mansour Al Akeel sent the following on 7/9/2011 2:25 PM:
> > BJ,
> > I appreciate your help. I am looking to report it, but may be it will
> > help a bit more if I can locate the date/revision where the bug was
> > introduced. I use git which allows me to perform binary search in the
> > history to locate the bug.
> > I will see what I can come up with.
> > 
> > 
> > 
> > On Sat, Jul 9, 2011 at 5:05 PM, BJ Freeman <[email protected]> wrote:
> >> open a Jira and put all that you have found so far.
> >>
> >> Mansour Al Akeel sent the following on 7/9/2011 1:24 PM:
> >>> Release 10.04 is working fine. I can upload PDF files, jar files, zip
> >>> files, JPG images ... etc.
> >>> It looks like a bug was introduced somewhere.
> >>>
> >>>
> >>>
> >>> On Sat, Jul 9, 2011 at 2:00 PM, BJ Freeman <[email protected]> wrote:
> >>>> The demo I have is not the current trunk so I can not confirm.
> >>>> when have some free time will download the trunk and run a test.
> >>>> can not guaranteeing that will be soon.
> >>>>
> >>>>
> >>>> Mansour Al Akeel sent the following on 7/9/2011 10:10 AM:
> >>>>> I am not using selinux. It's disabled. I just tried to start ofbiz as a
> >>>>> root, and the same issue. Changed the database engine from derby to
> >>>>> postgresql, and the same problem exists.
> >>>>>
> >>>>> I am using gentoo.
> >>>>>
> >>>>> java version "1.6.0_26"
> >>>>> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> >>>>> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> >>>>>
> >>>>> Can you please confirm it's working on your local machine with the
> >>>>> default config. If it's not working either, this means I am missing
> >>>>> some config.
> >>>>>
> >>>>> I think this is the only way to narrow down the issue. Thank you.
> >>>>>
> >>>>>
> >>>>> On Sat Jul 09,2011 09:38 am, BJ Freeman wrote:
> >>>>>> I have not addressed this particular upload.
> >>>>>> I doubt my solution of not using the bulk upload would work for you.
> >>>>>> I don't use the trunk or any ofbiz pure code so I can't be of any help
> >>>>>> further than i have been.
> >>>>>> it is something particular to the files you are having trouble with and
> >>>>>> is not the code, since it works on the demo.
> >>>>>> how about the JDK I run Centos 5.6 with open JDK but the recommended is
> >>>>>> the Sun JDK.
> >>>>>> Just a way out thought, possibly a selinux setting.
> >>>>>>
> >>>>>> Mansour Al Akeel sent the following on 7/9/2011 8:42 AM:
> >>>>>>> BJ,
> >>>>>>> how did you fix it?
> >>>>>>>
> >>>>>>> My JAVA_OPTS is "-Xms1024m -Xmx2048m" with 8 GB machine.
> >>>>>>> Is there any settings for the uploaded files. I tried uploading a 31 
> >>>>>>> MB
> >>>>>>> text file and it went through and worked fine. Still can not upload a
> >>>>>>> 260 KB PDF file !
> >>>>>>>
> >>>>>>> I just started again from scratch, and got the source from git, 
> >>>>>>> rebuilt
> >>>>>>> and ran the new instance with no luck, and the same results. Something
> >>>>>>> wierd going on. I am working on linux wich is what the demo is 
> >>>>>>> running.
> >>>>>>>
> >>>>>>>
> >>>>>>> Any idea ?
> >>>>>>>
> >>>>>>>
> >>>>>>> On Sat Jul 09,2011 08:32 am, BJ Freeman wrote:
> >>>>>>>> it would be memory size.
> >>>>>>>> uploads require use of global memory. if you don't have enough then 
> >>>>>>>> the
> >>>>>>>> upload is aborted.
> >>>>>>>> Atleast that was my experience on uploading large files.
> >>>>>>>>
> >>>>>>>> Mansour Al Akeel sent the following on 7/9/2011 7:00 AM:
> >>>>>>>>> BJ, I really appreciate your help.
> >>>>>>>>> I am a bit lost here. The issue exists only on my local instance. 
> >>>>>>>>> The
> >>>>>>>>> demo https://demo-trunk.ofbiz.apache.org/ is working properly.
> >>>>>>>>> My local instance is pulled from trunk. Not sure if there's some
> >>>>>>>>> configuration I missed.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On Sat, Jul 9, 2011 at 9:40 AM, Mansour Al Akeel
> >>>>>>>>> <[email protected]> wrote:
> >>>>>>>>>> thank you BJ.
> >>>>>>>>>> It is working on the demo.
> >>>>>>>>>>
> >>>>>>>>>> On Sat, Jul 9, 2011 at 4:20 AM, BJ Freeman <[email protected]> 
> >>>>>>>>>> wrote:
> >>>>>>>>>>> somewhere between the PorjectScreens.xml#EditProjectContents and
> >>>>>>>>>>> saveLocalFileDataResource the information is not put in context, 
> >>>>>>>>>>> is my
> >>>>>>>>>>> guess.
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Mansour Al Akeel sent the following on 7/8/2011 9:11 PM:
> >>>>>>>>>>>> I am unable to upload jpg images either. Some formats are ok 
> >>>>>>>>>>>> like xml,
> >>>>>>>>>>>> text, png.
> >>>>>>>>>>>>
> >>>>>>>>>>>> The log says there's no content found, but the file is a valid 
> >>>>>>>>>>>> pdf
> >>>>>>>>>>>> file, and it exists!
> >>>>>>>>>>>>
> >>>>>>>>>>>> I am stuck, and need some help. Thank you a lot.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Here's the log:
> >>>>>>>>>>>>
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> >>>>>>>>>>>>      [java] java.lang.Thread.run(Thread.java:662)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> --------------------------------------------------------------------------------
> >>>>>>>>>>>>      [java]
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,847 (http-0.0.0.0-8443-2) [   
> >>>>>>>>>>>> CallSimpleMethod.java:109:WARN ] Got error [error] calling 
> >>>>>>>>>>>> inline simple-method named [saveLocalFileDataResource] in 
> >>>>>>>>>>>> resource [], message is null, and the error message list is: {No 
> >>>>>>>>>>>> uploaded content found in context}
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,848 (http-0.0.0.0-8443-2) [    
> >>>>>>>>>>>> TransactionUtil.java:383:INFO ] 
> >>>>>>>>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not 
> >>>>>>>>>>>> set, rollback only is already set.
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,849 (http-0.0.0.0-8443-2) [  
> >>>>>>>>>>>> ServiceDispatcher.java:543:ERROR] Error in Service 
> >>>>>>>>>>>> [attachUploadToDataResource]: No uploaded content found in 
> >>>>>>>>>>>> context
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [    
> >>>>>>>>>>>> TransactionUtil.java:383:INFO ] 
> >>>>>>>>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not 
> >>>>>>>>>>>> set, rollback only is already set.
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,850 (http-0.0.0.0-8443-2) [      
> >>>>>>>>>>>>    GroupModel.java:165:ERROR] Grouped service 
> >>>>>>>>>>>> [attachUploadToDataResource] failed.
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [  
> >>>>>>>>>>>> ServiceDispatcher.java:543:ERROR] Error in Service 
> >>>>>>>>>>>> [createContentFromUploadedFile]: No uploaded content found in 
> >>>>>>>>>>>> context
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,851 (http-0.0.0.0-8443-2) [    
> >>>>>>>>>>>> TransactionUtil.java:383:INFO ] 
> >>>>>>>>>>>> [TransactionUtil.setRollbackOnly] transaction rollback only not 
> >>>>>>>>>>>> set, rollback only is already set.
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,852 (http-0.0.0.0-8443-2) [  
> >>>>>>>>>>>> ServiceDispatcher.java:604:INFO ] Sync service 
> >>>>>>>>>>>> [projectmgr/createContentFromUploadedFile] finished in [1067] 
> >>>>>>>>>>>> milliseconds with response [{errorMessageList={No uploaded 
> >>>>>>>>>>>> content found in context}, responseMessage=error}]
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,864 (http-0.0.0.0-8443-2) [     
> >>>>>>>>>>>> UtilProperties.java:1056:INFO ] ResourceBundle DefaultMessages 
> >>>>>>>>>>>> (en) created in 0.01s with 11 properties
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,879 (http-0.0.0.0-8443-2) [     
> >>>>>>>>>>>> UtilProperties.java:1056:INFO ] ResourceBundle 
> >>>>>>>>>>>> MiniLangErrorUiLabels (en) created in 0.014s with 4 properties
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,881 (http-0.0.0.0-8443-2) [    
> >>>>>>>>>>>> TransactionUtil.java:341:ERROR]
> >>>>>>>>>>>>      [java] ---- exception report 
> >>>>>>>>>>>> ----------------------------------------------------------
> >>>>>>>>>>>>      [java] [TransactionUtil.rollback]
> >>>>>>>>>>>>      [java] Exception: java.lang.Exception
> >>>>>>>>>>>>      [java] Message: Stack Trace
> >>>>>>>>>>>>      [java] ---- stack trace 
> >>>>>>>>>>>> ---------------------------------------------------------------
> >>>>>>>>>>>>      [java] java.lang.Exception: Stack Trace
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:340)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:317)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:870)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:160)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.minilang.SimpleMethod.runSimpleEvent(SimpleMethod.java:121)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.webapp.event.SimpleEventHandler.invoke(SimpleEventHandler.java:70)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:647)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:393)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:224)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:87)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:336)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> >>>>>>>>>>>>      [java] java.lang.Thread.run(Thread.java:662)
> >>>>>>>>>>>>      [java] 
> >>>>>>>>>>>> --------------------------------------------------------------------------------
> >>>>>>>>>>>>      [java]
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,904 (http-0.0.0.0-8443-2) [    
> >>>>>>>>>>>> TransactionUtil.java:351:INFO ] [TransactionUtil.rollback] 
> >>>>>>>>>>>> transaction rolled back
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,904 (http-0.0.0.0-8443-2) [     
> >>>>>>>>>>>> RequestHandler.java:648:INFO ] Ran Event 
> >>>>>>>>>>>> [simple:component://projectmgr/script/org/ofbiz/project/ProjectSimpleEvents.xml#createWorkEffortContent]
> >>>>>>>>>>>>  from [request], result is [error]
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,906 (http-0.0.0.0-8443-2) [     
> >>>>>>>>>>>> RequestHandler.java:440:WARN ] Could not find response in 
> >>>>>>>>>>>> request [createTaskContent] for event return [error]
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,907 (http-0.0.0.0-8443-2) [     
> >>>>>>>>>>>> RequestHandler.java:707:INFO ] Sending redirect to: 
> >>>>>>>>>>>> [/projectmgr/control/EditTaskContents], 
> >>>>>>>>>>>> sessionId=9E4A2889D7C539492C6108E0AA5BC887.jvm1
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,914 (http-0.0.0.0-8443-2) [      
> >>>>>>>>>>>>  ServerHitBin.java:627:INFO ] Visit delegatorName=default, 
> >>>>>>>>>>>> ServerHitBin delegatorName=default
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:53,926 (http-0.0.0.0-8443-2) [     
> >>>>>>>>>>>> ControlServlet.java:324:INFO ] 
> >>>>>>>>>>>> [[[createTaskContent(Domain:localhost)] Request Done- 
> >>>>>>>>>>>> total:1.684,since last([createTaskConten...):1.684]]
> >>>>>>>>>>>>      [java] 2011-07-09 00:01:54,064 (http-0.0.0.0-8443-1) [     
> >>>>>>>>>>>> ControlServlet.java:141:INFO ] 
> >>>>>>>>>>>> [[[EditTaskContents(Domain:localhost)] Request Begun, 
> >>>>>>>>>>>> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Fri Jul 08,2011 05:40 am, Mansour Al Akeel wrote:
> >>>>>>>>>>>>> I am trying to add contents to a task. The content is a pdf 
> >>>>>>>>>>>>> document.
> >>>>>>>>>>>>> It's failing with:
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Error: No uploaded content found in context  calling service
> >>>>>>>>>>>>> createContentFromUploadedFile in createWorkEffortContent
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> I can upload png files but not PDF. I started from a fresh 
> >>>>>>>>>>>>> install
> >>>>>>>>>>>>> from trunk. On the demo site, it's possible to upload PDF files.
> >>>>>>>>>>>>> Is there any special configuration or setup I need to do to 
> >>>>>>>>>>>>> allow PDFs ?
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Here's the page I am talking about
> >>>>>>>>>>>>> https://demo-trunk.ofbiz.apache.org/projectmgr/control/EditTaskContents?workEffortId=9002
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Thank you.
> >>>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>
> >>>>
> >>>
> >>
> > 

Reply via email to