<?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 irregular error with RepositoryService in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/irregular-error-with-repositoryservice/m-p/164035#M117799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have Alfresco (2.9, but was the same with 2.1) instances running on tomcats on 4 machines as well as 1 virtual machine (xen). Operating systems are Windows XP and debian linux. My application is also running in the tomcats and connects to Alfresco. So I make connections from machine A to B, B to A, A to A, … a lot possibilities. Believe it or not: the following error depends on the connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;java.lang.NullPointerException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.axis.AxisFault.makeFault(AxisFault.java:101)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.axis.client.AxisClient.invoke(AxisClient.java:216)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.axis.client.Call.invokeEngine(Call.java:2784)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.axis.client.Call.invoke(Call.java:2767)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.axis.client.Call.invoke(Call.java:2443)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.axis.client.Call.invoke(Call.java:2366)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.apache.axis.client.Call.invoke(Call.java:1812)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub.get(RepositoryServiceSoapBindingStub.java:1078)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;de.mycompany.RepositoryBrowser.listDirectory(RepositoryBrowser.java:37)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;de.mycompany.webclient.List.doGet(List.java:50)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:690)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;The last line within my application's realm is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Node[] selfs = null;&lt;BR /&gt;selfs = repositoryService.get(new Predicate(refs, Filesystem.STORE, null));&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;EM&gt;refs&lt;/EM&gt;&lt;SPAN&gt; contains 1 valid (!) reference, &lt;/SPAN&gt;&lt;EM&gt;Filesystem.STORE&lt;/EM&gt;&lt;SPAN&gt; the standard store. Just performing that call over and over again by browsing through the repository, not changing the latter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my personal computer (WinXP) connecting to any machine e.g. that error occurs if I don't send any request to Alfresco for &lt;/SPAN&gt;&lt;STRONG&gt;20 secs&lt;/STRONG&gt;&lt;SPAN&gt;. However, after the error occurred there may be a big time span until the next request which than works fine again without re-login or similar (until I wait 20 secs again…). For other connections no error occurs at all. For others every now and then. It seems it works better if the two applications don't reside on &lt;/SPAN&gt;&lt;STRONG&gt;one physical machine&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints on what I could have done wrong, how to search/get more precise information is much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;—-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another interesting scenario: Alfresco on machine X, my application on the virtual machine on X -&amp;gt; every other request gives that error, 100% regular. Klick, error, refresh, works, refresh/klick, error, refresh, works…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 14:02:12 GMT</pubDate>
    <dc:creator>tim-erwin</dc:creator>
    <dc:date>2008-04-21T14:02:12Z</dc:date>
    <item>
      <title>irregular error with RepositoryService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/irregular-error-with-repositoryservice/m-p/164035#M117799</link>
      <description>Hi,I have Alfresco (2.9, but was the same with 2.1) instances running on tomcats on 4 machines as well as 1 virtual machine (xen). Operating systems are Windows XP and debian linux. My application is also running in the tomcats and connects to Alfresco. So I make connections from machine A to B, B t</description>
      <pubDate>Mon, 21 Apr 2008 14:02:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/irregular-error-with-repositoryservice/m-p/164035#M117799</guid>
      <dc:creator>tim-erwin</dc:creator>
      <dc:date>2008-04-21T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: irregular error with RepositoryService</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/irregular-error-with-repositoryservice/m-p/164036#M117800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oooooookeyyyy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;got it. After months…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As my setup is x users (with x sessions) connect to 1 application which connects (with 1 session) to alfresco, I couldn't use the standard way of session handling as in AuthenticationUtils. I really wonder how a ThreadLocal variable for authenticationDetails can help at all. Since it is stored "in a thread" of a pool of which the threads are assigned to users rather randomly it's not for sure the respective user is getting it back, is it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, we don't have the authenticationDetails available which causes the &lt;/SPAN&gt;&lt;STRONG&gt;CookieHandler&lt;/STRONG&gt;&lt;SPAN&gt; to fail. Thus, I just removed it from the &lt;/SPAN&gt;&lt;EM&gt;WS_SECURITY_INFO&lt;/EM&gt;&lt;SPAN&gt;. Now, everything works fine. Is that an issue regarding session management? Or is it really just one session I have between my application an alfresco?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought such a setup (server talks to server) is a rather common setup. However, it seems the API is not really prepared for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 08:43:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/irregular-error-with-repositoryservice/m-p/164036#M117800</guid>
      <dc:creator>tim-erwin</dc:creator>
      <dc:date>2008-04-22T08:43:38Z</dc:date>
    </item>
  </channel>
</rss>

