View Full Version : X-Broker 7.1 SP1
I have X-Broker installed on Solaris and configured with an Oracle 10g Console DB. CentraSite GE 7.1 SP1 is running on another solaris machine and my X-Broker instance is set up as a Target on CSGE.
I see the following when I access x-broker from the browser
http://<host>:8888
- (http://vdeib06vz.bda.sbx1.prime.irs.gov:8888/#) <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- (http://vdeib06vz.bda.sbx1.prime.irs.gov:8888/#) <soapenv:Body>
- (http://vdeib06vz.bda.sbx1.prime.irs.gov:8888/#) <soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Contract does not exist. Please check the contract name.</faultstring>
<faultactor>http://infravio.com/broker-servicemix</faultactor>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
What do I need to do?
Also, I see the following error in the logs:-
INFO - ResourceHotDeploymentListener.handleNotification(53) | Hot deploying resources [1] Wed Jun 25 11:34:23 EDT 2008
WARN - BasicResourcePool$AcquireTask.run(1222) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@5ba50e -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30).
WARN - SettingsFactory.buildSettings(103) | Could not obtain connection metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!
Please let me know if you have seen this before.
Thanks,
Nivedita.
I just saw the same issue with my X-Broker today. Were you able to resolve this issue?
sumitkhapli
08-07-2008, 12:13
Hey,
Strangely I got exact same error today..
With all in vain efforts, i deleted the contract and target. Restarted Censtrasite GE and then created target with super admin. And then run-time policy with contract and it ran through.
Can't say anything now but may be a bug.. will keep you updated if we get anything.
Regards,
Sumit
We have been able to resolve this issue. Our initial installation of XBroker used the default HyperSonic database. We determined that the HyperSonic database needs to be started up before XBroker and CentraSite. Also, its needs to run in the foreground rather than as a background service. As long as we followed those steps we were able to deploy the contracts successfully to XBroker.
Currenly we have moved away from using the HyperSonic database and instead have XBroker using an Oracle instance. This also solves the issue.
dansjuan
08-26-2008, 19:23
Hello forum,
I am having a problem similar to that reported in this thread; I have not however discovered how to solve it.
I have X-Broker 7.1 running on one windows machine, and CentraSite GE running on another.
I figured out (using the X-Broker 7.1 Installation Guide) how to have X-Broker connect to CentraSite GE; however, I too get connection errors and stack traces when I start X-Broker. I've provided the stack trace below.
The thread mentions something about two alternatives:
1) running HSQL in a different way (?) - not in-process
2) configuring (I guess) CentraSiteGE to run with another DB.
Can someone tell me how to do either one of these?
When I try the URL:
http://localhost:8888
I too get the mysterious SOAP fault:
- (http://xbrokerds:8888/#) <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- (http://xbrokerds:8888/#) <soapenv:Body>
- (http://xbrokerds:8888/#) <soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Contract does not exist. Please check the contract name.</faultstring>
<faultactor>http://infravio.com/broker-servicemix</faultactor>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Here's my stack trace:
WARN - BasicResourcePool$AcquireTask.run(1222) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@ef2e7c -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30).
WARN - SettingsFactory.buildSettings(103) | Could not obtain connection metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConne
ction(C3P0PooledConnectionPool.java:236)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedData
Source.java:94)
at org.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0Con
nectionProvider.java:35)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
72)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881
)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1174)
at com.infravio.console.provider.util.HibernateUtil.<init>(HibernateUtil
.java:80)
at com.infravio.console.provider.util.HibernateUtil.getInstance(Hibernat
eUtil.java:85)
at com.infravio.broker.servicemix.samples.adaptorImpl.batch.ExtConsoleEv
entAdaptor.init(ExtConsoleEventAdaptor.java:147)
at com.infravio.broker.servicemix.samples.adaptorImpl.batch.ExtConsoleEv
entAdaptor.process(ExtConsoleEventAdaptor.java:155)
at com.infravio.broker.servicemix.adaptors.mbeans.ExtensionProcessor.han
dleNotification(ExtensionProcessor.java:87)
at javax.management.NotificationBroadcasterSupport.handleNotification(No
tificationBroadcasterSupport.java:221)
at javax.management.NotificationBroadcasterSupport.sendNotification(Noti
ficationBroadcasterSupport.java:184)
at javax.management.timer.Timer.sendNotification(Timer.java:1295)
at javax.management.timer.Timer.notifyAlarmClock(Timer.java:1264)
at javax.management.timer.TimerAlarmClock.run(Timer.java:1347)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:970)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:232)
... 17 more
INFO - Dialect.<init>(103) | Using dialect: org.hibernate.dialect.HSQLDialect
sumitkhapli
08-27-2008, 01:05
Hi,
For configuring CentraSiteGE to run with another DB, please go through the installation guide.
You need to change some configurations in registry.properties file.
Regards,
Sumit
raghuk816
10-17-2008, 06:51
@ Nivedita/dansjuan,
The error "contract doesnot exist" will be thrown when contract is executed and is not available in X-Broker.
This means contract is not propagated from X-Registry/CentraSite to X-Broker.
To resolve this check the following
1) Subscription endpoint of the created Target, which should be http://host:port/admin/BrokerSubscriptionService
2) reg-info.xml file of X-Broker where all the registry details have to be provided.
The other error you have posted regarding DB connection is
X-Broker is not able to connect to X-Registry/CentraSite's console DB, where X-Broker sends the events.
If the DB used by X-Registry/CentraSite is the inbuilt HSQL you have to start the console db separately. This can be done by the command product-config start-console-db
cheers,
kc