HughP / simal

Automatically exported from code.google.com/p/simal
0 stars 0 forks source link

Null project when clicking link in project browser #381

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Visited my Simal instance after a few days of inactivity. Front page fine, 
clicked project list ok, then clicked on a project:

We have encountered a problem
Null project supplied.
Root Cause: No underlying cause

...
Traceback:
----
Null project supplied.

Error reported by: class uk.ac.osswatch.simal.wicket.doap.ProjectDetailPage

uk.ac.osswatch.simal.wicket.UserReportableException: Null project supplied.
    at uk.ac.osswatch.simal.wicket.doap.ProjectDetailPage.populatePage(ProjectDetailPage.java:145)
    at uk.ac.osswatch.simal.wicket.doap.ProjectDetailPage.<init>(ProjectDetailPage.java:74)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:188)
    at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:89)
    at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:306)
    at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:321)
    at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
    at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
    at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
    at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
    at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
    at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
    at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
    at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
    at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)----

Original issue reported on code.google.com by Stevage on 7 Feb 2011 at 2:48

GoogleCodeExporter commented 9 years ago
Also in this state:
- clicking on a person in the person list causes nothing to happen (no page 
load)
- clicking on a category in the category browser causes this:
----
WicketMessage: Can't instantiate page using constructor public 
uk.ac.osswatch.simal.wicket.doap.CategoryDetailPage(org.apache.wicket.PageParame
ters) and argument simalID = "per43"

Root cause:

java.lang.NullPointerException
     at uk.ac.osswatch.simal.wicket.panel.CategorySummaryPanel.populatePage(CategorySummaryPanel.java:44)
     at uk.ac.osswatch.simal.wicket.panel.CategorySummaryPanel.<init>(CategorySummaryPanel.java:40)
     at uk.ac.osswatch.simal.wicket.doap.CategoryDetailPage.populatePage(CategoryDetailPage.java:72)
     at uk.ac.osswatch.simal.wicket.doap.CategoryDetailPage.<init>(CategoryDetailPage.java:56)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
...

Original comment by Stevage on 7 Feb 2011 at 2:49

GoogleCodeExporter commented 9 years ago
Server-side, these messages are in the log:
----
DEBUG uk.ac.osswatch.simal.service.jena.JenaProjectService - Attempting to get 
a project with the id 2d8bde70-bd48-41a7-aba1-7fcc52807da0-prj10
DEBUG uk.ac.osswatch.simal.service.jena.JenaProjectService - Get project with 
SPARQL:
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: 
<http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX simal: 
<http://oss-watch.ac.uk/ns/0.2/simal#>SELECT DISTINCT ?project WHERE { ?project 
simal:projectId "2d8bde70-bd48-41a7-aba1-7fcc52807da0-prj10" }
DEBUG uk.ac.osswatch.simal.service.jena.JenaProjectService - No project with 
that ID found
ERROR uk.ac.osswatch.simal.wicket.ErrorReportPage - Reporting an error to the 
user
----

So to confirm, refreshing the front page continues to show a list of projects, 
but clicking on any of those projects gives this error.

Original comment by Stevage on 7 Feb 2011 at 5:39

GoogleCodeExporter commented 9 years ago
Accessing person records was ok. Deleting all data and then re-importing test 
data made the problem go away.

Original comment by Stevage on 7 Feb 2011 at 5:44

GoogleCodeExporter commented 9 years ago
Thanks for the detailed info on this issue. 

I've marked this as "invalid" as I've been unable to reproduce and the problem 
has resolved itself for you. Admittedly, the method of resolution is hardly 
optimal (understatement), so if the problem reoccurs please reopen this issue 
and, importantly, don't destory the corrupt database. We will need it to debug.

Original comment by ross.gardler on 9 Feb 2011 at 9:17

GoogleCodeExporter commented 9 years ago
Ok, looks like I just ran into this again (and a new variation, where every 
field's value is listed as "New", with a link to something like 
http://localhost:8080/?wicket:interface=:72:editProjectPanel:editProjectForm:iss
ueTrackerList:addDocumentPanel:newLink::ILinkListener::

I should have asked earlier: how do I make a copy of the database? What files 
is it?

Original comment by Stevage on 21 Feb 2011 at 7:12

GoogleCodeExporter commented 9 years ago
I' m sorry this is not the same issue, please open a new issue and describe he 
new problem you are seeing.

This original report was about nothing happening when a browser link is 
clicked. In your new report you state that "every field's value is listed as 
"New"" implying that you are able to get to a projuect detail page.

Furthermore, we don't list fields as "new", there is no such feature. Are you 
logged in? In which case you will be seeing the create "new" link for each 
field - is that what you are seeing? 

Original comment by ross.gardler on 21 Feb 2011 at 1:04