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