On Aug 1, 2008, at 3:23 AM, David Smith wrote:

Hi.

It's a bug in Jackrabbit fixed in the latest version. The current workaround is to temporarily increase the per thread stack (-Xss) in the JVM, returning it to normal after the import. Hopefully the fix will either be backported into versions of Jackrabbit Magnolia uses or Magnolia will move to a fixed version.

Yup, it's been fixed for 1.5 [1], which afaik hasn't been released yet, so this won't happen before the next major Magnolia release. In the meantime, we're hoping they'll backport the fix to the 1.4 branch and release 1.4.6 soon.

Cheers,

-g

[1] https://issues.apache.org/jira/browse/JCR-1644


--David

joshua portway wrote:
An update -
I set a breakpoint and trapped the exception.
This seems to be happening because there is a very, very deep structure of NameSpaceContext objects - these objects have a "parent" pointing to another NameSpaceContext object, and nothing at all in their "prefixToUri" or "UriToPrefix" hashmaps. As far as I can tell the parent objects are all different (it's not a circular link) - but I've only followed it about 20 levels in - I don't know deep the rabbit hole goes, maybe there's a circular link further down.
The name it seems to be trying to resolve is "jcr:primaryType".
The last bit of magnolia code I can see on the stack is

ImportXmlRootFilter.startElement:141
SkipNodePropertyFilter.startElement:148
XMLFilterImpl.startElement:527
VersionFilter.startElement:120

Josh



On 1 Aug 2008, at 01:45, joshua portway wrote:

Hi I'm getting a stack overflow when importing the website repository into 2.6.1 from 3.5.8

[#|2008-08-01T02:21:11.017+0200|INFO|sun-appserver9.1| javax.enterprise.system.stream.out| _ThreadID=22;_ThreadName=httpSSLWorkerThread-8081-2;|ERROR info.magnolia.cms.servlets.MVCServletHandlerImpl MVCServletHandlerImpl.java(execute:126) 01.08.2008 02:21:11 can't call command: importxml
java.lang.StackOverflowError
   at java.util.HashMap.get(HashMap.java:343)
at org .apache .jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java: 93) at org .apache .jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java: 97) at org .apache .jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java: 97) at org .apache .jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java: 97) at org .apache .jackrabbit.core.xml.NamespaceContext.getURI(NamespaceContext.java: 97)

etc.
I'm afraid for some reason the log doesn't contain the top of the stack so I can't see what bit of magnolia we're in at the time.

I tried deleting the node that it was currently working on from the xml file, but I still get the same issue (with the node deleted it crashes on the next node).

Any ideas ?



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to