Hi supun

About reading files- I can Access other tables and read data on data
servise server?
What I'm doing here is read a PDF file that stored as a Blob and extract
the phrases from it, I'm not writing anything to the files.

I can read the PDF file from database and show it on the webpage, Only
thing is can't extract the phrases from it.

here is my project folder
https://docs.google.com/open?id=0B5A0W5SUykQqbGc0Vlg5UDJSTHFiTzdIV0hGZEZnQQ

If you want to run here is the login details on Stratoes Live server
username- kas...@karsha.opensource.lk
passwd-  Haknrr4k

thanks


> Hi Supun
> I Have attached .war file.  you want the project folder?
>  database is at dataservise server.
>
>
>
> thanks
>
>
>
>> On Fri, Mar 30, 2012 at 12:02 PM, Supun Malinga <sup...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Looks like you have some file conversion there. From where these files
>>> are being read?. If it needs to access the server file system, security
>>> manager will block this.
>>> Are you running your local setup with security manager enabled?
>>>
>>> thanks,
>>>
>>>
>>> On Fri, Mar 30, 2012 at 11:50 AM, Kasun Perera <kas...@opensource.lk>wrote:
>>>
>>>> Hi Supun
>>>>
>>>> I'm getting this error on webpage now when running my web app on
>>>> StratoesLive App server, but I'm not getting this error on the local App
>>>> server. A bug? Although I have debugged on my local machine I can't find
>>>> the error.
>>>>
>>>> code- http://paste.org/47396
>>>>
>>>> type Exception report
>>>>
>>>> message
>>>>
>>>> description The server encountered an internal error () that prevented
>>>> it from fulfilling this request.
>>>>
>>>> exception
>>>>
>>>> java.lang.NullPointerException
>>>>  controler.ControlerServelet.pdfDocToSentence(ControlerServelet.java:755)
>>>>   // I have mentioned thses two lines
>>>>  controler.ControlerServelet.doPost(ControlerServelet.java:585)
>>>>              //   in
>>>>  javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>>>  sun.reflect.GeneratedMethodAccessor1724.invoke(Unknown Source)
>>>>
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>  java.lang.reflect.Method.invoke(Method.java:597)
>>>> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:273)
>>>>  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:270)
>>>> java.security.AccessController.doPrivileged(Native Method)
>>>>  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>>>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:305)
>>>>
>>>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
>>>> note The full stack trace of the root cause is available in the Apache
>>>> Tomcat/7.0.14 logs.
>>>>
>>>>
>>>>
>>>> On Thu, Mar 29, 2012 at 4:52 PM, Kasun Perera <kas...@opensource.lk>wrote:
>>>>
>>>>> Hi Supun
>>>>>
>>>>> Yes I have the external libraries in the META-INF/lib of my
>>>>> application. I have used the same .war file in locally running App server,
>>>>> There I don't have this problem
>>>>>
>>>>>  The log file is attached
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> On Thu, Mar 29, 2012 at 4:39 PM, Supun Malinga <sup...@wso2.com>wrote:
>>>>>
>>>>>> Hi Kasun,
>>>>>>
>>>>>> On Thu, Mar 29, 2012 at 4:28 PM, Kasun Perera 
>>>>>> <kas...@opensource.lk>wrote:
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> I have deployed web app on Stratos Live I can run the web app there.
>>>>>>> But When I go to a particular a jsp page that calling to external
>>>>>>> libraris(Stanforsparser.jar, PdfBox.jar) through servelet, gives me a 
>>>>>>> blank
>>>>>>> page.  I can run this webapp in my local Stratoes Application server
>>>>>>> and mentioned jsp page appears without any problem
>>>>>>>
>>>>>> Here you need to have the external libraries in the META-INF/lib
>>>>>> directory of your webapp.
>>>>>>
>>>>>>
>>>>>>>  I'm using tomcat 7.0.22 for deploy the web app locally, and .war
>>>>>>> file is uploaded to Stratos Live.
>>>>>>>
>>>>>>> I found this error log on the Stratos Live server.
>>>>>>>
>>>>>>> Server Log
>>>>>>>
>>>>>>> [WSO2 Stratos Application Server] [2012-03-28 23:40:48,627] @
>>>>>>> karsha.opensource.lk [11051] [WSO2 Stratos Application Server]ERROR
>>>>>>> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
>>>>>>> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp<http://karsha.opensource.lk/webapps/KarshaMarkUp%5D.%5Bjsp>]}
>>>>>>> - Servlet.service() for servlet jsp threw exception
>>>>>>> {org.apache.catalina.core.ContainerBase.[Tomcat].[defaulthost].[/t/
>>>>>>> karsha.opensource.lk/webapps/KarshaMarkUp].[jsp<http://karsha.opensource.lk/webapps/KarshaMarkUp%5D.%5Bjsp>
>>>>>>> ]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I found this log information is not enough to find out what is the
>>>>>>> error. Is there a way I can get full error log on Stratos live Server?
>>>>>>>
>>>>>> You can see the log for your tenant from Monitor > System Logs.
>>>>>>
>>>>>>  Or What would cause this error?
>>>>>>>
>>>>>> There could be a permission issue if your webapp tries to
>>>>>> modify/access any files in the system. Other than that it should work.
>>>>>> Please send us the logs you got from the log viewer.
>>>>>>
>>>>>> thanks,
>>>>>>
>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Supun Malinga,
>>>>>>
>>>>>> Software Engineer,
>>>>>> WSO2 Inc.
>>>>>> http://wso2.com
>>>>>> http://wso2.org
>>>>>> email - sup...@wso2.com <sup...@wso2.com>
>>>>>> mobile - 071 56 91 321
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards
>>>>>
>>>>> Kasun Perera
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Regards
>>>>
>>>> Kasun Perera
>>>>
>>>>
>>>
>>>
>>> --
>>> Supun Malinga,
>>>
>>> Software Engineer,
>>> WSO2 Inc.
>>> http://wso2.com
>>> http://wso2.org
>>> email - sup...@wso2.com <sup...@wso2.com>
>>> mobile - 071 56 91 321
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>> email - sup...@wso2.com <sup...@wso2.com>
>> mobile - 071 56 91 321
>>
>>
>
>
> --
> Regards
>
> Kasun Perera
>
>


-- 
Regards

Kasun Perera
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to