Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

jndiConnectionProvider.setConnectionPath() fails

$
0
0
Hi Forum,

I am trying to apply this post from Thomas (http://www.on-reporting.com/blog/kil...orting-slowly/), most specifically the jndiConnectionProvider part.

I declared two datasources in my prpt file Foo and Bar.

On the Global Scripting tab, I select ECMAScript and then hit templates, then within the init function apply the following code

Code:

  var jndiConnectionProvider = dataFactory.getConnectionProvider();
  var conn = dataRow.get("jndiConnection");
 
  jndiConnectionProvider.setConnectionPath(conn);

When running the preview mode in Pentaho Report Designer it works fine, when running it from within a Pentaho BI Server instance it keeps failing with the following messages in the log trace

Code:

Caused by: sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function setConnectionPath in object org.pentaho.reporting.platform.plugin.connection.PentahoJndiDatasourceConnectionProvider@6ca248f3.
I suspect that dataFactory.getConnectionProvider() is returning me something it should not (null/empty?) but I don't see what's wrong I am doing here.

Anyone has an idea ?

--
YGuenane

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>