Re: [Dspace-tech] communities null pointer exception dspace 1.7.2

2013-08-15 Thread Tim Donohue
Hi Mark,

Actually, it looks like helix84 was accidentally looking at the wrong 
"CommunityRecentSubmissions" class. Your underlying error is coming from 
Discovery, i.e. this class

https://github.com/DSpace/DSpace/blob/dspace-1.7.2/dspace-discovery/dspace-discovery-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/discovery/CommunityRecentSubmissions.java#L75

That error seems to be saying that Apache Solr (which is used by 
Discovery) is returning a "null" result set (at least for the set of 
recent submissions for that Community).

This implies to me that something may be going on in Solr.  Either your 
DSpace is having trouble finding Solr, or else your Solr index has 
gotten corrupted.

You could try reindexing all content in Discovery, to see if that helps:

./bin/dspace update-discovery-index

(You could also add the "-b" flag to completely wipe the existing index 
and rebuild from scratch.)

If this reindex command also throws an error, it's possible your Solr 
configs, in ./config/dspace-solr-search.cfg, are messed up somehow.

Some additional info on Discovery configs is at:
https://wiki.duraspace.org/display/DSDOC17/Discovery

- Tim

On 8/14/2013 4:59 PM, helix84 wrote:
>> Caused by: java.lang.NullPointerException
>>  at 
>> org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer.handleException(AbstractDSpaceTransformer.java:109)
>
> https://github.com/DSpace/DSpace/blob/dspace-1.7.2/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/AbstractDSpaceTransformer.java#L109
>
> I'm not sure whether this tells us that SAXException couldn't be
> instantiated or that something else is null; which would be "this", i.e.
> the AbstractDSpaceTransformer class.
>
>> Caused by: java.lang.NullPointerException
>>  at 
>> org.dspace.app.xmlui.aspect.discovery.CommunityRecentSubmissions.addBody(CommunityRecentSubmissions.java:75)
>
>
> https://github.com/DSpace/DSpace/blob/dspace-1.7.2/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/CommunityRecentSubmissions.java#L75
>
> This one's strange - line 75 is in the getKey() method, but your error
> repors it's in the addBody() method. Did you modify this class?
>
>
> I'm afraid somene else will need to step in and clarify this.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
> --
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>
>
>
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>

--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] communities null pointer exception dspace 1.7.2

2013-08-14 Thread helix84
> Caused by: java.lang.NullPointerException
>   at 
> org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer.handleException(AbstractDSpaceTransformer.java:109)

https://github.com/DSpace/DSpace/blob/dspace-1.7.2/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/AbstractDSpaceTransformer.java#L109

I'm not sure whether this tells us that SAXException couldn't be
instantiated or that something else is null; which would be "this", i.e.
the AbstractDSpaceTransformer class.

> Caused by: java.lang.NullPointerException
>   at 
> org.dspace.app.xmlui.aspect.discovery.CommunityRecentSubmissions.addBody(CommunityRecentSubmissions.java:75)


https://github.com/DSpace/DSpace/blob/dspace-1.7.2/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/CommunityRecentSubmissions.java#L75

This one's strange - line 75 is in the getKey() method, but your error
repors it's in the addBody() method. Did you modify this class?


I'm afraid somene else will need to step in and clarify this.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette