You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Elias Torres (JIRA)" <ji...@apache.org> on 2006/12/06 20:05:28 UTC
[jira] Commented: (ABDERA-24) NPE thrown on invalid service
document
[ 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