Thanks for the quick fix. I found another one closely related. In one of my
BASE1 plugins I had used empty string as the default value for a parameter
of type integer. Wise or not, this was allowed in BASE1. In BASE2 this gives
an exception when the empty string was tried parsed as an integer.

This is a minor thing, and I fixed my plugin so it is not using empty string
as default for a non-string parameter.  

Vegard 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:basedb-devel-
> [EMAIL PROTECTED] On Behalf Of Johan Enell
> Sent: Friday, August 03, 2007 3:58 PM
> To: BASE dev
> Subject: Re: [basedb-devel] Missing values in the parameter table in the
> plugin definition file may cause error in BASE2's Base1PluginExecuter.
> 
> I did not know about that difference. I have made the Executer aware and
> it sets options to 30 if it is empty.
> 
> /Johan
> 
> 
> 
> vegard nygaard wrote:
> > When trying to run one of my BASE1 plugins in BASE2 with the
> > Base1PluginExecuter I got this error:
> > .
> > .
> > Error message For input string: ""
> > Stack trace
> > ...at
> >
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:
> 48
> > )
> > ...at java.lang.Integer.parseInt(Integer.java:468)
> > ...at java.lang.Integer.(Integer.java:620)
> > ...at
> >
> net.sf.basedb.plugins.Base1PluginExecuter$JobParameter.getPluginParameter(
> Ba
> > se1PluginExecuter.java:1741)
> > .....
> >
> > After some searching I found the source of the error to be a missing
> value
> > in parameter table in the plugin definition file exported from BASE1.
> > My file looked something like this
> >
> > .
> > .
> > .
> > columns     position        valueType       name    commonName
options
> > defaultValue        enumOptions     removed
> > %
> > 1   h       section imputationvalue 10      parameter               0
> > 2   i       imputationvalue Imputationvalue 1                       0
> > 3   e       strict  How strict?             1
> > 1\toption1\t2\toption2      0
> >
> > The enum parameter "strict" was missing a value in the "options" column.
> All
> > my old enum parameters looked like this.  But during my debugging I
> found
> > that If I made a enum parameter today in BASE1 it will get a value of
> 30. So
> > I guess this has changed in BASE1 since I made the plugin. I could only
> find
> > this problem with the enum parameter type, but I have not used all
> different
> > types so it might be on others as well.
> > The simple fix to this "bug" is to insert 30 so the line looks like
> this:
> >
> > 3   e       strict  How strict?     30      1
> > 1\toption1\t2\toption2      0
> >
> > Alternatively BASE2 could handle an empty field an insert the proper
> value.
> >
> > Hope I saved someone some hours figuring this out.
> >
> > I still did not manage to run my plugin though. I ran in to the next
> problem
> > regarding different names of the fields in BASE1 and BASE2, but there
> was
> > another post about that.
> >
> > Best Regards
> > Vegard Nygaard
> > Software Engineer
> > Department of Tumor Biology (Montebello)
> > Rikshospitalet-Radiumhospitalet Medical Center 0310 Oslo
> > Bioinformatics user support (NMC)
> > Phone 0047 22935590
> >
> >
> >
> > ------------------------------------------------------------------------
> -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > _______________________________________________
> > basedb-devel mailing list
> > basedb-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/basedb-devel
> >
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> basedb-devel mailing list
> basedb-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/basedb-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel

Reply via email to