Forum LAMS for Tech-Heads - General Forum: Problem while saving a tool


 
You may request notification for Problem while saving a tool.
Search: 

1: Problem while saving a tool
08/09/10 02:28 PM
[ Reply | Forward ]
Hi everyone
I have an issue trying to save my tool while I'm editing it and pressing the save button after that.

It throws this error:

FATAL [CustomStrutsExceptionHandler] fatal System exception: [java.lang.NullPointerException] :null
java.lang.NullPointerException at org.lamsfoundation.lams.tool.service.LamsToolService.getToolBySignature(LamsToolService.java:76)

I'm using the 2.3 version branch.

I've attached an image also.

Could you please guys help me?

Posted by Felipe Peña

Attachments:
2: Re: Problem while saving a tool
In response to 1 08/10/10 02:52 AM
[ Reply | Forward ]
Hi Felipe,

I assume you're creating a new tool, right?

In this case it seems you're missing Tool signature.
Have a look at this page (http://wiki.lamsfoundation.org/display/lams/Tool+Versions+and+Signatures). It will give you a first insight on this topic.

Also you might wonna give a try to that tiny plug-in (http://wiki.lamsfoundation.org/display/lams/Tool+Builder). It could significantly simplify tool creation process.

Let me know if you have any other questions

Thanks,

Posted by Andrey Balan

3: Re: Re: Problem while saving a tool
In response to 2 08/10/10 09:56 AM
[ Reply | Forward ]
Hi Andrey

First of all, thanks for answering.

Yes, I am creating a new tool. I understand what a tool signature is and I did use the Eclipse plugin to generate a tool template. Despite of that, I'm still getting that error.

Do you know what I might be missing?

Thanks again.

Posted by Felipe Peña

4: Re: Re: Re: Problem while saving a tool
In response to 3 08/11/10 08:48 AM
[ Reply | Forward ]
Hey Felipe,

No probs at all,

I think most likely you're missing a tool record from lams_tool table.
To fix this go to ${your_tool_project}\db\sql\tool_insert.sql
make sure your tool's signature is there and it's correct.
then run tool's Ant target "deploy-tool"...
it should automatically add all tool's data (including signature) into database.


If this doesn't work here is hint #2:
have a look at the source code of the authoring page that's been rendered.
make sure &signature parameter is set correctly inside doCancel() function.


Hope it will help,

Best

Posted by Andrey Balan

5: Re: Re: Re: Re: Problem while saving a tool
In response to 4 08/11/10 09:36 AM
[ Reply | Forward ]
Hi Andrey

Thanks for the constant help! My tool_insert.sql was OK, but when I went to the source code, I became aware that a previous tool signature was still written in a jsp file. I don't how this happened, just glad the problem is resolved.

Thanks again!

Regards!

Posted by Felipe Peña

6: Re: Re: Re: Re: Re: Problem while saving a tool
In response to 5 08/12/10 04:12 AM
[ Reply | Forward ]
Hi Felipe,

The pleasure is mine.
Cool that it's been solved!

Best

Posted by Andrey Balan

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum