jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Padovan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-609) Empty custom_nodetypes.xml after restart
Date Tue, 26 Mar 2013 15:05:15 GMT

    [ https://issues.apache.org/jira/browse/JCR-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13614090#comment-13614090

Stefano Padovan commented on JCR-609:

Another workaround: have a script that checks if custom_nodetypes.xml becomes 0-byte. When
it does, replace it with the last read non o-byte found. At the next restart issue will not
be present.

This means that sling restart is successful when xml file is not empty. Then sometimes it
becomes empty, but the system will keppe running fine until the next restart. If the file
is restored in between, issue will not be resent at next restart.

Just a tip for whoever is looking into this issue....
> Empty custom_nodetypes.xml after restart
> ----------------------------------------
>                 Key: JCR-609
>                 URL: https://issues.apache.org/jira/browse/JCR-609
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jca
>    Affects Versions: 1.1
>         Environment: oc4j 10.1.3
>            Reporter: Magnus Grimsell
> I run jackrabbit jca on oc4j 10.1.3.
> First time the server is started I execute the following code on the empty repository
> JackrabbitNodeTypeManager manager =	
>   (JackrabbitNodeTypeManager)session.getWorkspace().getNodeTypeManager();
> InputStream nodeTypes = this.getClass().getClassLoader().getResourceAsStream(res);
> manager.registerNodeTypes(nodeTypes, JackrabbitNodeTypeManager.TEXT_X_JCR_CND);
> session.save();
> This works fine. I can create nodes of custom type. However when restarting the server
I get the following error:
> Error creating a Connection Factory from class 'org.apache.jackrabbit.jca.JCAManagedConnectionFactory'.
Reason: javax.resource.ResourceException: Failed to create session: internal error: failed
to read custom node type definitions stored in custom_nodetypes.xml:
> custom_nodetypes.xml exists but is empty.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message