[ 
https://issues.apache.org/jira/browse/CMIS-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florent Guillaume resolved CMIS-98.
-----------------------------------

    Resolution: Fixed

Thanks, the problem was with types having no property definitions (not sure 
it's really legal given the mandatory ones but...).
I've used a slightly more complex patch because I wanted to be more efficient 
in loading types and making sure the property definitions were explicitly 
requested. Also recreating a new connection was incorrect.

Fixed by r901008.

> NPE in APPRepository#loadTypes()
> --------------------------------
>
>                 Key: CMIS-98
>                 URL: https://issues.apache.org/jira/browse/CMIS-98
>             Project: Chemistry
>          Issue Type: Bug
>          Components: atompub
>            Reporter: Michael Dürig
>         Attachments: CMIS-98.patch
>
>
> Connecting to http://cmis.alfresco.com/service/cmis results in a NPE in 
> APPRepository#loadTypes():
> java.lang.RuntimeException: Failed to load repository types for Main 
> Repository
>       at 
> org.apache.chemistry.atompub.client.APPRepository.loadTypes(APPRepository.java:208)
>       at 
> org.apache.chemistry.atompub.client.APPRepository.getTypes(APPRepository.java:136)
>       ... 
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.chemistry.atompub.client.APPType.loadPropertyDef(APPType.java:178)
>       at 
> org.apache.chemistry.atompub.client.APPType.getPropertyDefinitions(APPType.java:110)
>       at 
> org.apache.chemistry.impl.simple.SimpleTypeManager.addType(SimpleTypeManager.java:63)
>       at 
> org.apache.chemistry.atompub.client.TypeFeedReader.addEntry(TypeFeedReader.java:47)
>       at 
> org.apache.chemistry.atompub.client.TypeFeedReader.addEntry(TypeFeedReader.java:28)
>       at 
> org.apache.chemistry.atompub.client.stax.AbstractFeedReader.read(AbstractFeedReader.java:109)
>       at 
> org.apache.chemistry.atompub.client.stax.AbstractFeedReader.read(AbstractFeedReader.java:83)
>       at 
> org.apache.chemistry.atompub.client.APPRepository.readTypes(APPRepository.java:224)
>       at 
> org.apache.chemistry.atompub.client.APPRepository.loadTypes(APPRepository.java:201)
>       ... 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to