[JBoss JIRA] Created: (DNA-591) NullPointerException in JcrNodeDefinition.ensureRequiredPrimaryTypesLoaded()
by Barry LaFond (JIRA)
NullPointerException in JcrNodeDefinition.ensureRequiredPrimaryTypesLoaded()
-----------------------------------------------------------------------------
Key: DNA-591
URL: https://jira.jboss.org/jira/browse/DNA-591
Project: DNA
Issue Type: Bug
Affects Versions: 0.7
Reporter: Barry LaFond
Attachments: test_cnd.cnd
Using the attached CND file, the repository set-up fails with an NPE when attempting to resolve node types. (ala config.repository(xxxxxx).addNodeTypes('test_cnd.cnd')
java.lang.NullPointerException
at org.jboss.dna.jcr.JcrNodeDefinition.ensureRequiredPrimaryTypesLoaded(JcrNodeDefinition.java:113)
at org.jboss.dna.jcr.JcrNodeDefinition.getRequiredPrimaryTypes(JcrNodeDefinition.java:161)
at org.jboss.dna.jcr.RepositoryNodeTypeManager.validate(RepositoryNodeTypeManager.java:1938)
at org.jboss.dna.jcr.RepositoryNodeTypeManager.validate(RepositoryNodeTypeManager.java:1861)
at org.jboss.dna.jcr.RepositoryNodeTypeManager.registerNodeTypes(RepositoryNodeTypeManager.java:1513)
at org.jboss.dna.jcr.JcrEngine.doCreateJcrRepository(JcrEngine.java:246)
at org.jboss.dna.jcr.JcrEngine.getRepository(JcrEngine.java:161)
My original DDL seqencer cnd is much more complex, but by paring it down to the following, the error still occured.
//------------------------------------------------------------------------------
// N A M E S P A C E S
//------------------------------------------------------------------------------
<jcr='http://www.jcp.org/jcr/1.0'>
<nt='http://www.jcp.org/jcr/nt/1.0'>
<mix='http://www.jcp.org/jcr/mix/1.0'>
<ddl='http://jboss.org/dna/ddl/1.0'>
[ddl:statement] mixin abstract
- ddl:expression (string) mandatory
+ * (ddl:ddlProblem) = ddl:ddlProblem multiple
[ddl:schemaDefinition] > ddl:statement mixin
- ddl:defaultCharacterSetName (STRING)
+ * (ddl:ddlStatement) = ddl:ddlStatement multiple
[ddl:ddlProblem] mixin
- ddl:problemLevel (LONG) mandatory
- ddl:message (STRING) mandatory
The [ddl:schemaDefinition] mixin is the ONLY mixin that both extends a mixin and allows children of the same mixin type (i.e. [ddl:statement]) however the NPE is occuring when attempting to find the primary node type for [ddl:ddlProblem]
Note that the NPE does not occur when the [ddl:schemaDefinition] type is removed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years
[JBoss JIRA] Created: (DNA-627) Improve Support for Node Type Inheritance
by Brian Carothers (JIRA)
Improve Support for Node Type Inheritance
-----------------------------------------
Key: DNA-627
URL: https://jira.jboss.org/jira/browse/DNA-627
Project: DNA
Issue Type: Bug
Components: JCR
Affects Versions: 0.6
Reporter: Brian Carothers
Priority: Minor
Fix For: 1.0
DNA is currently fairly conservative in when it allows node type inheritance. As just one example, the following definitions are not allowed (because type A and B both declare a child node with the same name:
[nodeA]
+ child (nt:unstructured)
[nodeB]
+ child (nt:unstructured)
[nodeC] > nodeA, nodeB
Opening this defect as a placeholder for discussion/patches around whether the inheritance rules should be relaxed and how.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years
[JBoss JIRA] Created: (DNA-618) SVN connector integration tests are failing with '404 Not Found'
by Randall Hauch (JIRA)
SVN connector integration tests are failing with '404 Not Found'
----------------------------------------------------------------
Key: DNA-618
URL: https://jira.jboss.org/jira/browse/DNA-618
Project: DNA
Issue Type: Bug
Components: Connectors
Affects Versions: 0.7
Reporter: Randall Hauch
Priority: Blocker
Fix For: 0.7
This failure happened during one of the nightly integration tests. Note the '!' character in the path - is that right??
org.jboss.dna.graph.connector.RepositorySourceException: org.tmatesoft.svn.core.SVNException: svn: '/repos/dna/!svn/bc/1517/trunk/ddl_sequencer/pom.xml' path not found: 404 Not Found (http://anonsvn.jboss.org)
at org.jboss.dna.graph.search.SearchEngineIndexer.checkRequestForErrors(SearchEngineIndexer.java:380)
at org.jboss.dna.graph.search.SearchEngineIndexer.indexSubgraph(SearchEngineIndexer.java:265)
at org.jboss.dna.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:227)
at org.jboss.dna.graph.search.SearchEngineIndexer.index(SearchEngineIndexer.java:135)
at org.jboss.dna.jcr.RepositoryQueryManager$SelfContained.reindexContent(RepositoryQueryManager.java:334)
at org.jboss.dna.jcr.RepositoryQueryManager$SelfContained.<init>(RepositoryQueryManager.java:292)
at org.jboss.dna.jcr.JcrRepository.<init>(JcrRepository.java:593)
at org.jboss.dna.jcr.JcrEngine.doCreateJcrRepository(JcrEngine.java:257)
at org.jboss.dna.jcr.JcrEngine.getRepository(JcrEngine.java:175)
at org.jboss.dna.test.integration.svn.SvnAndJcrIntegrationTest.beforeEach(SvnAndJcrIntegrationTest.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: org.tmatesoft.svn.core.SVNException: svn: '/repos/dna/!svn/bc/1517/trunk/ddl_sequencer/pom.xml' path not found: 404 Not Found (http://anonsvn.jboss.org)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51)
at org.tmatesoft.svn.core.internal.io.dav.DAVUtil.getResourceProperties(DAVUtil.java:71)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getFile(DAVRepository.java:275)
at org.jboss.dna.connector.svn.SVNRepositoryRequestProcessor.getData(SVNRepositoryRequestProcessor.java:1351)
at org.jboss.dna.connector.svn.SVNRepositoryRequestProcessor.readNode(SVNRepositoryRequestProcessor.java:285)
at org.jboss.dna.connector.svn.SVNRepositoryRequestProcessor.process(SVNRepositoryRequestProcessor.java:308)
at org.jboss.dna.graph.request.processor.RequestProcessor.process(RequestProcessor.java:608)
at org.jboss.dna.graph.request.processor.RequestProcessor.process(RequestProcessor.java:241)
at org.jboss.dna.graph.request.processor.RequestProcessor.process(RequestProcessor.java:314)
at org.jboss.dna.graph.request.processor.RequestProcessor.process(RequestProcessor.java:223)
at org.jboss.dna.connector.svn.SVNRepositoryConnection.execute(SVNRepositoryConnection.java:174)
at org.jboss.dna.graph.connector.RepositoryConnectionPool$ConnectionWrapper.execute(RepositoryConnectionPool.java:996)
at org.jboss.dna.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:193)
at org.jboss.dna.graph.request.CompositeRequestChannel$2.call(CompositeRequestChannel.java:189)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years
[JBoss JIRA] Created: (DNA-610) Allow JPA Connector to be generic (not require hibernate)
by John Ament (JIRA)
Allow JPA Connector to be generic (not require hibernate)
---------------------------------------------------------
Key: DNA-610
URL: https://jira.jboss.org/jira/browse/DNA-610
Project: DNA
Issue Type: Feature Request
Components: Connectors
Affects Versions: 0.6
Reporter: John Ament
Priority: Minor
Allowing the use of any JPA provider (not just hibernate) would make it easier to use the JPA connector on other app servers - e.g. glassfish, weblogic, etc. There is no direct dependency on hibernate's features in the jpa connector, other than using their Ejb3Configurator. It looks like the config settings could be done in such a way that the persistence.xml could be provided by the bundling application. Design of it should probably be discussed a bit more thoroughly, and hopefully come up with a way that it can be automatically bootstrapped by the container, instead of the way configuration is done now.
I'm willing to provide the implementation of this if you'd like.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years