knowledgepixels / nanodash

A web client to browse and publish nanopublications.
GNU Affero General Public License v3.0
26 stars 2 forks source link

Internal error (for provenance template) #56

Closed sharifX closed 2 years ago

sharifX commented 2 years ago

I am trying to use the "Defining a provenance template" http://localhost:37373/publish?template=http://purl.org/np/RALFsVfA6WUi3eE97FSBgvxyMHT9ZOaC9lOwbGUtax6Gg but keep getting "Internal error". I was able to create an assertion using another template. I am attaching snippets from the console message.

ERROR - DefaultExceptionMapper     - Unexpected error occurred
org.apache.wicket.WicketRuntimeExc
[nanobench.log](https://github.com/peta-pico/nanobench/files/7441586/nanobench.log)
eption: Can't instantiate page using constructor 
[nanobench.log](https://github.com/peta-pico/nanobench/files/7441581/nanobench.log)
'public org.petapico.nanobench.PublishPage(org.apache.wicket.request.mapper.parameter.PageParameters)' 
and argument 'template=[http://purl.org/np/RALFsVfA6WUi3eE97FSBgvxyMHT9ZOaC9lOwbGUtax6Gg]'. 
An exception has been thrown during construction!
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:194)
tkuhn commented 2 years ago

I just tried it out and it worked for me. But this might depend on what exactly is filled in. Could you share a screenshot showing what you are filling in, before you get the error?

These template templates and some of the features they are using have not been very well tested so far, I have to say. So, it's not entirely unexpected that such problems pop up. But it's probably not too difficult to fix.

sharifX commented 2 years ago

It is before I get to fill out anything. I got to "Publish a new Nanopublication" page. Then click on "Defining a provenance template" and then get "internal error". Screenshot attached

Screenshot 2021-10-29 at 17 46 24

Error page:

Screenshot 2021-10-29 at 17 47 00

.

tkuhn commented 2 years ago

I cannot reproduce that. Are you using the latest version of Nanobench?

sharifX commented 2 years ago

ah yes, that was it. I downloaded the latest version.

tkuhn commented 2 years ago

Great to hear this resolved it!