abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elias Torres (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ABDERA-24) NPE thrown on invalid service document
Date Wed, 06 Dec 2006 19:05:28 GMT
    [ http://issues.apache.org/jira/browse/ABDERA-24?page=comments#action_12456165 ] 
            
Elias Torres commented on ABDERA-24:
------------------------------------

Exception in thread "main" java.lang.NullPointerException 
      at org.apache.abdera.parser.stax.FOMFactory.getElementWrapper(FOMFactory.java:809) 
      at org.apache.abdera.parser.stax.FOMElement.getWrapped(FOMElement.java:121) 
      at org.apache.abdera.parser.stax.FOMElement.getFirstChild(FOMElement.java:193) 
      at org.apache.abdera.parser.stax.FOMWorkspace.getTitle(FOMWorkspace.java:93) 
      at org.apache.abdera.parser.stax.FOMService.getWorkspace(FOMService.java:103) 
      at org.apache.abdera.parser.stax.FOMService.getCollection(FOMService.java:124) 
      at org.apache.abdera.examples.appclient.Main.main(Main.java:46)

> NPE thrown on invalid service document
> --------------------------------------
>
>                 Key: ABDERA-24
>                 URL: http://issues.apache.org/jira/browse/ABDERA-24
>             Project: Abdera
>          Issue Type: Bug
>            Reporter: Elias Torres
>            Priority: Minor
>
> I found an NPE being thrown when giving Abdera an invalid service document. Notice the
workspace @title instead of a child atom:title.
> <?xml version="1.0" encoding="UTF-8"?>
> <service xmlns="http://purl.org/atom/app#" xmlns:atom="http://www.w3.org/2005/Atom">
>   <workspace title="WordPress Experimental Workspace">
>     <collection href="http://lobo/wordpress/app.php/posts">
>       <accept>entry</accept>
>       <atom:title>WordPress Posts</atom:title>
>     </collection>
>     <collection href="http://lobo/wordpress/app.php/attachments">
>       <accept>image/*,audio/*,video/*</accept>
>       <atom:title>WordPress Media</atom:title>
>     </collection>
>   </workspace>
> </service>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message