You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Andrew Perepelytsya (JIRA)" <ji...@apache.org> on 2008/01/31 18:15:07 UTC

[jira] Created: (ABDERA-98) NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath

NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath
-------------------------------------------------------------------------------------------

                 Key: ABDERA-98
                 URL: https://issues.apache.org/jira/browse/ABDERA-98
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.4.0
            Reporter: Andrew Perepelytsya


ClientResponse.getDocument() causes NPE at runtime then.

Caused by: java.lang.NullPointerException
        at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:80)
        at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:68)
        at org.mule.galaxy.bootstrap.AbderaBootstrap.bootstrap(AbderaBootstrap.java:51)
        ... 5 more

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


[jira] Commented: (ABDERA-98) NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564420#action_12564420 ] 

James M Snell commented on ABDERA-98:
-------------------------------------

Fix checked into trunk.  The getDocument method will now check to see if the parser is null and will throw an InvalidArgumentException if it is

> NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath
> -------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-98
>                 URL: https://issues.apache.org/jira/browse/ABDERA-98
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Andrew Perepelytsya
>             Fix For: 0.4.0
>
>
> ClientResponse.getDocument() causes NPE at runtime then.
> Caused by: java.lang.NullPointerException
>         at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:80)
>         at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:68)
>         at org.mule.galaxy.bootstrap.AbderaBootstrap.bootstrap(AbderaBootstrap.java:51)
>         ... 5 more

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


[jira] Resolved: (ABDERA-98) NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath

Posted by "James M Snell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ABDERA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James M Snell resolved ABDERA-98.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4.0

Hmm... while this could be handled more elegantly, abdera-parser is a requirement for this to run unless it has been replaced by another parser implementation. So this is technically not a bug

> NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath
> -------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-98
>                 URL: https://issues.apache.org/jira/browse/ABDERA-98
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Andrew Perepelytsya
>             Fix For: 0.4.0
>
>
> ClientResponse.getDocument() causes NPE at runtime then.
> Caused by: java.lang.NullPointerException
>         at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:80)
>         at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:68)
>         at org.mule.galaxy.bootstrap.AbderaBootstrap.bootstrap(AbderaBootstrap.java:51)
>         ... 5 more

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


[jira] Commented: (ABDERA-98) NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath

Posted by "Andrew Perepelytsya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ABDERA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564419#action_12564419 ] 

Andrew Perepelytsya commented on ABDERA-98:
-------------------------------------------

James, this IS a bug, but a usability one. If no default parser detected, a meaningful exception or message must be provided. There's absolutely no hint as to where NPE came from.

> NullPointerException in AbstractClientResponse if abdera-parser jar is not in the classpath
> -------------------------------------------------------------------------------------------
>
>                 Key: ABDERA-98
>                 URL: https://issues.apache.org/jira/browse/ABDERA-98
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Andrew Perepelytsya
>             Fix For: 0.4.0
>
>
> ClientResponse.getDocument() causes NPE at runtime then.
> Caused by: java.lang.NullPointerException
>         at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:80)
>         at org.apache.abdera.protocol.client.AbstractClientResponse.getDocument(AbstractClientResponse.java:68)
>         at org.mule.galaxy.bootstrap.AbderaBootstrap.bootstrap(AbderaBootstrap.java:51)
>         ... 5 more

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