abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remy Gendron" <r...@arrova.ca>
Subject RE: [jira] Updated: (ABDERA-160) NPE in AbstractProvider when building service doc for WorkspaceInfo with null CollectionInfo collection
Date Thu, 15 May 2008 17:13:02 GMT
Yeah, I had this also. Now, to quickly startup an Abdera based project, I
create a dummy adapter as below. You'll have to call setHref otherwise this
dummy adapter will get accidently called under circumstances I don't quite
remember. Just auto-implement all abstract methods and you're done.

public class DummyAdapter extends AbstractEntityCollectionAdapter {

    public DummyAdapter() {
        setHref("dummy");
    }
...

 
Rémy
 

 
remy.gendron@arrova.ca
 
418 809-8585
http://arrova.ca
 

-----Original Message-----
From: Christopher Elkins (JIRA) [mailto:jira@apache.org] 
Sent: May 15, 2008 13:02
To: abdera-dev@incubator.apache.org
Subject: [jira] Updated: (ABDERA-160) NPE in AbstractProvider when building
service doc for WorkspaceInfo with null CollectionInfo collection


     [
https://issues.apache.org/jira/browse/ABDERA-160?page=com.atlassian.jira.plu
gin.system.issuetabpanels:all-tabpanel ]

Christopher Elkins updated ABDERA-160:
--------------------------------------

    Attachment: AbstractProvider.java.patch

> NPE in AbstractProvider when building service doc for WorkspaceInfo with
null CollectionInfo collection
>
----------------------------------------------------------------------------
---------------------------
>
>                 Key: ABDERA-160
>                 URL: https://issues.apache.org/jira/browse/ABDERA-160
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>            Reporter: Christopher Elkins
>            Priority: Minor
>         Attachments: AbstractProvider.java.patch
>
>
> A NullPointerException occurs when AbstractProvider.getServiceDocument()
encounters a WorkspaceInfo instance for which getCollections() returns null:
> java.lang.NullPointerException
> 	at
org.apache.abdera.protocol.server.impl.AbstractProvider$1.writeTo(AbstractPr
ovider.java:303)
> 	at
org.apache.abdera.protocol.server.context.StreamWriterResponseContext.writeE
ntity(StreamWriterResponseContext.java:94)
> 	at
org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(Simp
leResponseContext.java:67)
> 	at
org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(Simp
leResponseContext.java:60)
> 	at
org.apache.abdera.protocol.server.servlet.AbderaServlet.output(AbderaServlet
.java:129)
> 	at
org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServle
t.java:90)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         ...

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



-- 
No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 269.23.16/1434 - Release Date: 15/05/2008
7:24 AM



Mime
View raw message