Re: [basedb-devel] Problem with multiple parameter values in PluginConfigurationImporter

2008-04-02 Thread Nicklas Nordborg
I think this is a bug in the importer. I have created at ticket for this 
and will fix it in the 2.6.2 release. Can you upload the exported file 
that fails so we have something to test with?

Use base/base as login/password. The ticket can be found here: 
http://base.thep.lu.se/ticket/970

/Nicklas

Adam Ameur wrote:
 Hi,
 
 I'm using BASE2.4.6 and the PluginConfigurationExporter/Importer 
 normally works fine for me, but the PCImporter fails to read 
 configurations when parameters have multiple values. In such cases, the 
 PCExporter seems to work fine and the parameter info in the xml file 
 looks as in the example below (N parameter values in this example). 
 
 parameter
   nameparamName/name
   labelparamLabel/label
   descriptionparamDesc/description
   classjava.lang.String/class
   valueparamValue1/value
   valueparamValue2/value
   ...
   valueparamValueN/value
 /parameter
 
 But the PCImporter fails and the stack trace looks somemthing like this:
 
 net.sf.basedb.core.BaseException: Found N values in parameter 
 'paramName'. Only 1 is allowed.
 at 
 net.sf.basedb.plugins.PluginConfigurationImporter.doImport(PluginConfigurationImporter.java:340)
 at 
 net.sf.basedb.plugins.PluginConfigurationImporter.run(PluginConfigurationImporter.java:226)
 at 
 net.sf.basedb.core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:89)
 at 
 net.sf.basedb.core.InternalJobQueue$JobRunner.run(InternalJobQueue.java:421)
 at java.lang.Thread.run(Thread.java:613)
 Caused by: net.sf.basedb.core.InvalidDataException: Found N values in 
 parameter 'paramName'. Only 1 is allowed.
 at net.sf.basedb.core.ParameterType.validate(ParameterType.java:248)
 at 
 net.sf.basedb.core.PluginConfiguration.setParameterValuesInternal(PluginConfiguration.java:462)
 at 
 net.sf.basedb.core.PluginConfiguration.setParameterValues(PluginConfiguration.java:430)
 at 
 net.sf.basedb.plugins.PluginConfigurationImporter.setPluginConf(PluginConfigurationImporter.java:460)
 at 
 net.sf.basedb.plugins.PluginConfigurationImporter.doImport(PluginConfigurationImporter.java:334)
 ... 4 more
 
 I think the problem could be that the parameter value multiplicity is 
 not set properly. I don't know if this has been solved in later base 
 versions, but I couldn't find any tickets about it. The fact that the 
 PCExporter works suggests to me that the problem is not in the plugin 
 configuration itself. What do you think about it?
 
 /Adam
 
 
 
 
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 
 
 
 
 ___
 basedb-devel mailing list
 basedb-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/basedb-devel


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel


Re: [basedb-devel] Problem with multiple parameter values in PluginConfigurationImporter

2008-04-02 Thread Adam Ameur
Hi Nicklas,

I have now uploaded an example configuration file. I hope you can use  
it for testing even if you don't have the corresponding plugin  
installed.

/Adam


On Apr 2, 2008, at 12:44 PM, Nicklas Nordborg wrote:

 I think this is a bug in the importer. I have created at ticket for  
 this
 and will fix it in the 2.6.2 release. Can you upload the exported file
 that fails so we have something to test with?

 Use base/base as login/password. The ticket can be found here:
 http://base.thep.lu.se/ticket/970

 /Nicklas

 Adam Ameur wrote:
 Hi,

 I'm using BASE2.4.6 and the PluginConfigurationExporter/Importer
 normally works fine for me, but the PCImporter fails to read
 configurations when parameters have multiple values. In such cases,  
 the
 PCExporter seems to work fine and the parameter info in the xml file
 looks as in the example below (N parameter values in this example).

 parameter
  nameparamName/name
  labelparamLabel/label
  descriptionparamDesc/description
  classjava.lang.String/class
  valueparamValue1/value
  valueparamValue2/value
  ...
  valueparamValueN/value
 /parameter

 But the PCImporter fails and the stack trace looks somemthing like  
 this:

 net.sf.basedb.core.BaseException: Found N values in parameter
 'paramName'. Only 1 is allowed.
 at
 net 
 .sf 
 .basedb 
 .plugins 
 .PluginConfigurationImporter 
 .doImport(PluginConfigurationImporter.java:340)
 at
 net 
 .sf 
 .basedb 
 .plugins 
 .PluginConfigurationImporter.run(PluginConfigurationImporter.java: 
 226)
 at
 net 
 .sf 
 .basedb 
 .core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:89)
 at
 net.sf.basedb.core.InternalJobQueue 
 $JobRunner.run(InternalJobQueue.java:421)
 at java.lang.Thread.run(Thread.java:613)
 Caused by: net.sf.basedb.core.InvalidDataException: Found N values in
 parameter 'paramName'. Only 1 is allowed.
 at net.sf.basedb.core.ParameterType.validate(ParameterType.java:248)
 at
 net 
 .sf 
 .basedb 
 .core 
 .PluginConfiguration 
 .setParameterValuesInternal(PluginConfiguration.java:462)
 at
 net 
 .sf 
 .basedb 
 .core 
 .PluginConfiguration.setParameterValues(PluginConfiguration.java:430)
 at
 net 
 .sf 
 .basedb 
 .plugins 
 .PluginConfigurationImporter 
 .setPluginConf(PluginConfigurationImporter.java:460)
 at
 net 
 .sf 
 .basedb 
 .plugins 
 .PluginConfigurationImporter 
 .doImport(PluginConfigurationImporter.java:334)
 ... 4 more

 I think the problem could be that the parameter value multiplicity is
 not set properly. I don't know if this has been solved in later base
 versions, but I couldn't find any tickets about it. The fact that the
 PCExporter works suggests to me that the problem is not in the plugin
 configuration itself. What do you think about it?

 /Adam




 

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace


 

 ___
 basedb-devel mailing list
 basedb-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/basedb-devel


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 ___
 basedb-devel mailing list
 basedb-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/basedb-devel


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel