Forum Discussion
FICO
14 years agoCommunity Manager
Connecting to a repository using API
Connecting to a repository using API The following works fine on a Database repository without BVS
Hashtable<String, String> ht = getConnectionTable();
NdJdbcRepositoryConnect...
FICO
14 years agoCommunity Manager
Was there a response for this or a solution? I have the same problem with Advisor 7.0
I can connect to a non-versioned DB repository, but not with a BVS versioned one.
The code looks like this. The parameters have been edited to remove any sensite content, but the ones I use can connect to a BVS repository in the DB in the IDE and from the RMA with no problem.
NdJdbcRepositoryConnection jdbcConnection = new NdJdbcRepositoryConnection();
jdbcConnection.setJdbcAccessor("com.blazesoft.repository.jdbc.NdDefaultJdbcRepositoryAccessor"); jdbcConnection.setJdbcDriver("com.ibm.db2.jcc.DB2Driver"); jdbcConnection.setJdbcTable("DBSCHEMA.DBTABLE"); jdbcConnection.setJdbcUrl("jdbc:db2://HOST (http://blaze.i.lithium.com/i/smilies/16x16_smiley-tongue.gif)ORT/DB2SUBSYSTEM"); jdbcConnection.setName("BVS DB2"); jdbcConnection.setPassword("USERNAME"); jdbcConnection.setRepositoryName("BlazeVersionedRepository"); jdbcConnection.setUser("PASSWORD"); connectionMgr = NdRomFactory.newRepositoryConnectionManager(jdbcConnection); connectionMgr.connect();When attempting, the following error comes out:
Exception in thread "main"
com.blazesoft.template.repository.NdRomConnectionException: Connecting to repository 'BlazeVersionedRepository' failed.
com.blazesoft.template.repository.NdRomConnectionException
: Could not get ROM configuration from repository 'BlazeVersionedRepository'.
at com.blazesoft.template.repository.NdRomFactory.WjIYoKV(:692)
at com.blazesoft.template.repository.NdRomFactory.newRepositoryConnectionManager(:819)
at com.blazesoft.template.repository.NdRomFactory.newRepositoryConnectionManager(:836)
at com.blazesoft.template.repository.NdRomFactory.newRepositoryConnectionManager(:848)
at ca.gc.customs.repository.util.blaze.RepositoryConnection.connectToRepository(
RepositoryConnection.java:83)
at ca.gc.customs.repository.util.blaze.RepositoryConnection.main(
RepositoryConnection.java:43)
Related Content
Related Content
How can I use ODH for solving a MIP model using Xpress Python API?
Hi everyone, I want to play a bit with ODH for Xpress Solver. I did run ODH from the command line but now I want to integrate it in the whole pipeline of a Python program. What should I import? What...2 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread31Views0likes2Comments