You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Christopher Elkins (JIRA)" <ji...@apache.org> on 2008/05/15 18:59:55 UTC
[jira] Created: (ABDERA-160) NPE in AbstractProvider when building
service doc for WorkspaceInfo with null CollectionInfo collection
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
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(AbstractProvider.java:303)
at org.apache.abdera.protocol.server.context.StreamWriterResponseContext.writeEntity(StreamWriterResponseContext.java:94)
at org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(SimpleResponseContext.java:67)
at org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(SimpleResponseContext.java:60)
at org.apache.abdera.protocol.server.servlet.AbderaServlet.output(AbderaServlet.java:129)
at org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.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.
RE: [jira] Updated: (ABDERA-160) NPE in AbstractProvider when building service doc for WorkspaceInfo with null CollectionInfo collection
Posted by Remy Gendron <re...@arrova.ca>.
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
[jira] Updated: (ABDERA-160) NPE in AbstractProvider when building
service doc for WorkspaceInfo with null CollectionInfo collection
Posted by "Christopher Elkins (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-160?page=com.atlassian.jira.plugin.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(AbstractProvider.java:303)
> at org.apache.abdera.protocol.server.context.StreamWriterResponseContext.writeEntity(StreamWriterResponseContext.java:94)
> at org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(SimpleResponseContext.java:67)
> at org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(SimpleResponseContext.java:60)
> at org.apache.abdera.protocol.server.servlet.AbderaServlet.output(AbderaServlet.java:129)
> at org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.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.
[jira] Resolved: (ABDERA-160) NPE in AbstractProvider when building
service doc for WorkspaceInfo with null CollectionInfo collection
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James M Snell resolved ABDERA-160.
----------------------------------
Resolution: Fixed
Fix Version/s: 0.5.0
checked in
> 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
> Fix For: 0.5.0
>
> 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(AbstractProvider.java:303)
> at org.apache.abdera.protocol.server.context.StreamWriterResponseContext.writeEntity(StreamWriterResponseContext.java:94)
> at org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(SimpleResponseContext.java:67)
> at org.apache.abdera.protocol.server.context.SimpleResponseContext.writeTo(SimpleResponseContext.java:60)
> at org.apache.abdera.protocol.server.servlet.AbderaServlet.output(AbderaServlet.java:129)
> at org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.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.