<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom Web script failing with 500 error in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180625#M133755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check your webscript's .desc.xml file has the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 19:21:40 GMT</pubDate>
    <dc:creator>mikeh</dc:creator>
    <dc:date>2008-12-11T19:21:40Z</dc:date>
    <item>
      <title>Custom Web script failing with 500 error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180624#M133754</link>
      <description>I've written a custom Web script.&amp;nbsp; I have it working in a "Hello World" sense (just injecting data into the model, and spitting it back out), so I know all the files are in the right spots, the URL is mapped correctly, etc.However, as soon as I try to search the repo, like this:var stuff = search.lu</description>
      <pubDate>Thu, 11 Dec 2008 15:05:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180624#M133754</guid>
      <dc:creator>deane</dc:creator>
      <dc:date>2008-12-11T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Web script failing with 500 error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180625#M133755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check your webscript's .desc.xml file has the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 19:21:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180625#M133755</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-12-11T19:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Web script failing with 500 error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180626#M133756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that fixed it.&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 06:10:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180626#M133756</guid>
      <dc:creator>deane</dc:creator>
      <dc:date>2008-12-12T06:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Web script failing with 500 error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180627#M133757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have &amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt; in my webscripts but the 500 error is still coming .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when I looked into the log i found the exception below , and the when i debugged the alfresco source code i found that &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;line number 235 in the file org.alfresco.web.scripts.WebScriptRequestImpl.java throws nullpointerexception. and the line is given below ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;logger.debug("Converting request (mimetype: " + contentType + ") to " + reader.getDestinationClass().getName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;further explanation is given below , Pls let me know if any info u may need &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan 6, 2009 5:41:08 PM org.apache.catalina.core.StandardWrapperValve invoke&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERE: Servlet.service() for servlet apiServlet threw exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to upload a file from JAVA program which actually sends a post request to the webscript .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the same request is working fine with the browser .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Included basic authentication headers also in the request&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.io.IOException: Server returned HTTP response code: 500 for URL: &lt;/SPAN&gt;&lt;A href="http://localhost:8090/alfresco/service/" rel="nofollow noopener noreferrer"&gt;http://localhost:8090/alfresco/service/&lt;/A&gt;&lt;SPAN&gt; … 004819746c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.net.&lt;/SPAN&gt;&lt;A href="http://www.protocol.http.HttpURLConnection.getInputStream" rel="nofollow noopener noreferrer"&gt;www.protocol.http.HttpURLConnection.getInputStream&lt;/A&gt;&lt;SPAN&gt;(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.docharbor.repository.alfresco.service.webscripts.ClientHttpRequest.post(ClientHttpRequest.java:262)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.docharbor.repository.alfresco.dao.ImportDAO.processRequest(ImportDAO.java:80)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.docharbor.repository.alfresco.dao.AbstractDAORequest.process(AbstractDAORequest.java:59)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at com.docharbor.repository.alfresco.dao.ImportDAO.main(ImportDAO.java:155)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when i look in the log i found this exception …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.alfresco.web.scripts.WebScriptRequestImpl.parseContent(WebScriptRequestImpl.java:235)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.alfresco.web.scripts.servlet.WebScriptServletRequest.&amp;lt;init&amp;gt;(WebScriptServletRequest.java:90)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.alfresco.web.app.servlet.MTWebScriptAuthenticationFilter.doFilter(MTWebScriptAuthenticationFilter.java:94)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.Thread.run(Thread.java:595)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am actually evaluating alfresco performance and trying to do some basic operation for custom content .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if any other info u may require .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;raja&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2009 16:48:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-web-script-failing-with-500-error/m-p/180627#M133757</guid>
      <dc:creator>chraja</dc:creator>
      <dc:date>2009-01-07T16:48:57Z</dc:date>
    </item>
  </channel>
</rss>

