We just upgraded from 7.8 to 8.5. We are using BaseX in a JBoss multi-threaded application. Something has changed with ClientSession. I have log4j at trace level and the server is started but when a call is made to the ClientSession constructor nothing happens.
static final int BASEX_SERVER_PORT = 1990; static final String BASEX_USER = "admin"; static final String BASEX_PASSWORD = "admin"; static final String BASEX_HOST = "localhost";
try {
// get server status boolean serverstarted = BaseXServer.ping(BASEX_HOST, BASEX_SERVER_PORT); // server started? if (!serverstarted) { instance.basexlog.trace("BaseXDictionary: BaseX: Start BaseX server"); // no-> create a new instance using server and client ports // BaseXServer server = new BaseXServer("-p" + BASEX_SERVER_PORT);
} else { // yes-> log the event instance.basexlog.trace("BaseXDictionary: BaseX: BaseX server already started");
}
// start initialization process instance.basexlog.debug("BaseXDictionary: BaseX: Server started");
// this call never returns or something strange is going on instance.mapperDBSession = new ClientSession(BaseXDictionary.BASEX_HOST, BaseXDictionary.BASEX_SERVER_PORT, BaseXDictionary.BASEX_USER, BaseXDictionary.BASEX_PASSWORD);
This next log4j output is never seen in the log file
instance.basexlog.trace("BaseXDictionary: BaseX: Client Session created ");
Any JBoss users?
Thanks
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
Hello Carl,
did you see the mail by Christian Grün on the 20th? You will need to update the client as well, as with the major version 8 we changed the client/server protocol.
I doubt it has anything to do with JBoss specifically.
Cheers Dirk
On 07/22/2016 12:38 PM, Bondeson, Carl wrote:
We just upgraded from 7.8 to 8.5. We are using BaseX in a JBoss multi-threaded application. Something has changed with ClientSession. I have log4j at trace level and the server is started but when a call is made to the ClientSession constructor nothing happens.
static final int BASEX_SERVER_PORT = 1990; static final String BASEX_USER = "admin"; static final String BASEX_PASSWORD = "admin"; static final String BASEX_HOST = "localhost"; try { // get server status boolean serverstarted
= BaseXServer.ping(BASEX_HOST, BASEX_SERVER_PORT);
// server started? if (!serverstarted) {
instance.basexlog.trace("BaseXDictionary: BaseX: Start BaseX server");
//
no-> create a new instance using server and client ports
//
BaseXServer server = new BaseXServer("-p" + BASEX_SERVER_PORT);
} else { //
yes-> log the event
instance.basexlog.trace("BaseXDictionary: BaseX: BaseX server already started");
} // start
initialization process
instance.basexlog.debug("BaseXDictionary: BaseX: Server started");
// this call never
returns or something strange is going on
instance.mapperDBSession = new ClientSession(BaseXDictionary.BASEX_HOST, BaseXDictionary.BASEX_SERVER_PORT,
BaseXDictionary.BASEX_USER, BaseXDictionary.BASEX_PASSWORD);
This next log4j output is never seen in the log file
instance.basexlog.trace("BaseXDictionary: BaseX: Client Session created ");
Any JBoss users?
Thanks
Carl R Bondeson
IT Analyst 3
Information Technology
Connecticut Department of Public Health
410 Capitol Ave
Hartford, CT 06134
Phone: 860-509-7434
carl.bondeson@ct.gov mailto:carl.bondeson@ct.gov
logosmall
The client works in a test suite in Eclipse. What actually changed? Why would it work in Eclipse and not in JBoss?
Thanks for the quick response.
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
From: basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] On Behalf Of Dirk Kirsten Sent: Friday, July 22, 2016 7:10 AM To: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Hello Carl,
did you see the mail by Christian Grün on the 20th? You will need to update the client as well, as with the major version 8 we changed the client/server protocol. I doubt it has anything to do with JBoss specifically.
Cheers Dirk On 07/22/2016 12:38 PM, Bondeson, Carl wrote: We just upgraded from 7.8 to 8.5. We are using BaseX in a JBoss multi-threaded application. Something has changed with ClientSession. I have log4j at trace level and the server is started but when a call is made to the ClientSession constructor nothing happens.
static final int BASEX_SERVER_PORT = 1990; static final String BASEX_USER = "admin"; static final String BASEX_PASSWORD = "admin"; static final String BASEX_HOST = "localhost";
try {
// get server status boolean serverstarted = BaseXServer.ping(BASEX_HOST, BASEX_SERVER_PORT); // server started? if (!serverstarted) { instance.basexlog.trace("BaseXDictionary: BaseX: Start BaseX server"); // no-> create a new instance using server and client ports // BaseXServer server = new BaseXServer("-p" + BASEX_SERVER_PORT);
} else { // yes-> log the event instance.basexlog.trace("BaseXDictionary: BaseX: BaseX server already started");
}
// start initialization process instance.basexlog.debug("BaseXDictionary: BaseX: Server started");
// this call never returns or something strange is going on instance.mapperDBSession = new ClientSession(BaseXDictionary.BASEX_HOST, BaseXDictionary.BASEX_SERVER_PORT, BaseXDictionary.BASEX_USER, BaseXDictionary.BASEX_PASSWORD);
This next log4j output is never seen in the log file
instance.basexlog.trace("BaseXDictionary: BaseX: Client Session created ");
Any JBoss users?
Thanks
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
Hello Carl,
are your sure you are using the same client in Eclipse as in JBoss? I don't know JBoss, but it surely has a location where to put external library files, so BaseX should be located there. Please make absolutely sure you are using the correct jar file in JBoss.
With BaseX 8 we changed the authentication schema for clients to improve security. You can see the changes by using the history function in our wiki: http://docs.basex.org/index.php?title=Server_Protocol&action=historysubm...
Cheers, Dirk
On 07/22/2016 01:30 PM, Bondeson, Carl wrote:
The client works in a test suite in Eclipse. What actually changed? Why would it work in Eclipse and not in JBoss?
Thanks for the quick response.
Carl R Bondeson
IT Analyst 3
Information Technology
Connecticut Department of Public Health
410 Capitol Ave
Hartford, CT 06134
Phone: 860-509-7434
carl.bondeson@ct.gov mailto:carl.bondeson@ct.gov
logosmall
*From:*basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] *On Behalf Of *Dirk Kirsten *Sent:* Friday, July 22, 2016 7:10 AM *To:* basex-talk@mailman.uni-konstanz.de *Subject:* Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Hello Carl,
did you see the mail by Christian Grün on the 20th? You will need to update the client as well, as with the major version 8 we changed the client/server protocol.
I doubt it has anything to do with JBoss specifically.
Cheers Dirk
On 07/22/2016 12:38 PM, Bondeson, Carl wrote:
We just upgraded from 7.8 to 8.5. We are using BaseX in a JBoss multi-threaded application. Something has changed with ClientSession. I have log4j at trace level and the server is started but when a call is made to the ClientSession constructor nothing happens. static final int BASEX_SERVER_PORT = 1990; static final String BASEX_USER = "admin"; static final String BASEX_PASSWORD = "admin"; static final String BASEX_HOST = "localhost"; try { // get server status boolean serverstarted = BaseXServer.ping(BASEX_HOST, BASEX_SERVER_PORT); // server started? if (!serverstarted) { instance.basexlog.trace("BaseXDictionary: BaseX: Start BaseX server"); // no-> create a new instance using server and client ports // BaseXServer server = new BaseXServer("-p" + BASEX_SERVER_PORT); } else { // yes-> log the event instance.basexlog.trace("BaseXDictionary: BaseX: BaseX server already started"); } // start initialization process instance.basexlog.debug("BaseXDictionary: BaseX: Server started"); // this call never returns or something strange is going on instance.mapperDBSession = new ClientSession(BaseXDictionary.BASEX_HOST, BaseXDictionary.BASEX_SERVER_PORT, BaseXDictionary.BASEX_USER, BaseXDictionary.BASEX_PASSWORD); This next log4j output is never seen in the log file instance.basexlog.trace("BaseXDictionary: BaseX: Client Session created "); Any JBoss users? Thanks Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.gov <mailto:carl.bondeson@ct.gov> logosmall
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
Yes. I have designed a python script which creates a war file including all the component jars, web-inf, etc. etc. The BaseX client/server singleton jar is created in Eclipse and then committed to a Subversion repository used during the build process. I automate as much as possible since there are so many places that mistakes can be made. My real question is how can you invoke the class constructor which never returns? I understand that the client server architecture changed from the standpoint of the digest authentication using realm and nonce. That is low level and should not affect the operation of this existing client server system which has been in production for over 2 years. I am at a loss to know where to go other than start adding log4j calls into a non-comital BaseX extract.
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
From: Dirk Kirsten [mailto:dk@basex.org] Sent: Friday, July 22, 2016 12:06 PM To: Bondeson, Carl Carl.Bondeson@ct.gov; basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Hello Carl,
are your sure you are using the same client in Eclipse as in JBoss? I don't know JBoss, but it surely has a location where to put external library files, so BaseX should be located there. Please make absolutely sure you are using the correct jar file in JBoss.
With BaseX 8 we changed the authentication schema for clients to improve security. You can see the changes by using the history function in our wiki: http://docs.basex.org/index.php?title=Server_Protocol&action=historysubm...
Cheers, Dirk
On 07/22/2016 01:30 PM, Bondeson, Carl wrote: The client works in a test suite in Eclipse. What actually changed? Why would it work in Eclipse and not in JBoss?
Thanks for the quick response.
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
From: basex-talk-bounces@mailman.uni-konstanz.demailto:basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] On Behalf Of Dirk Kirsten Sent: Friday, July 22, 2016 7:10 AM To: basex-talk@mailman.uni-konstanz.demailto:basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Hello Carl,
did you see the mail by Christian Grün on the 20th? You will need to update the client as well, as with the major version 8 we changed the client/server protocol. I doubt it has anything to do with JBoss specifically.
Cheers Dirk On 07/22/2016 12:38 PM, Bondeson, Carl wrote: We just upgraded from 7.8 to 8.5. We are using BaseX in a JBoss multi-threaded application. Something has changed with ClientSession. I have log4j at trace level and the server is started but when a call is made to the ClientSession constructor nothing happens.
static final int BASEX_SERVER_PORT = 1990; static final String BASEX_USER = "admin"; static final String BASEX_PASSWORD = "admin"; static final String BASEX_HOST = "localhost";
try {
// get server status boolean serverstarted = BaseXServer.ping(BASEX_HOST, BASEX_SERVER_PORT); // server started? if (!serverstarted) { instance.basexlog.trace("BaseXDictionary: BaseX: Start BaseX server"); // no-> create a new instance using server and client ports // BaseXServer server = new BaseXServer("-p" + BASEX_SERVER_PORT);
} else { // yes-> log the event instance.basexlog.trace("BaseXDictionary: BaseX: BaseX server already started");
}
// start initialization process instance.basexlog.debug("BaseXDictionary: BaseX: Server started");
// this call never returns or something strange is going on instance.mapperDBSession = new ClientSession(BaseXDictionary.BASEX_HOST, BaseXDictionary.BASEX_SERVER_PORT, BaseXDictionary.BASEX_USER, BaseXDictionary.BASEX_PASSWORD);
This next log4j output is never seen in the log file
instance.basexlog.trace("BaseXDictionary: BaseX: Client Session created ");
Any JBoss users?
Thanks
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
For completeness I updated JBoss to the latest patch 6.4.9 and Java the latest update 8.102. Same result! Argh!
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
From: basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] On Behalf Of Bondeson, Carl Sent: Friday, July 22, 2016 12:46 PM To: Dirk Kirsten dk@basex.org; basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Yes. I have designed a python script which creates a war file including all the component jars, web-inf, etc. etc. The BaseX client/server singleton jar is created in Eclipse and then committed to a Subversion repository used during the build process. I automate as much as possible since there are so many places that mistakes can be made. My real question is how can you invoke the class constructor which never returns? I understand that the client server architecture changed from the standpoint of the digest authentication using realm and nonce. That is low level and should not affect the operation of this existing client server system which has been in production for over 2 years. I am at a loss to know where to go other than start adding log4j calls into a non-comital BaseX extract.
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
From: Dirk Kirsten [mailto:dk@basex.org] Sent: Friday, July 22, 2016 12:06 PM To: Bondeson, Carl <Carl.Bondeson@ct.govmailto:Carl.Bondeson@ct.gov>; basex-talk@mailman.uni-konstanz.demailto:basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Hello Carl,
are your sure you are using the same client in Eclipse as in JBoss? I don't know JBoss, but it surely has a location where to put external library files, so BaseX should be located there. Please make absolutely sure you are using the correct jar file in JBoss.
With BaseX 8 we changed the authentication schema for clients to improve security. You can see the changes by using the history function in our wiki: http://docs.basex.org/index.php?title=Server_Protocol&action=historysubm...
Cheers, Dirk
On 07/22/2016 01:30 PM, Bondeson, Carl wrote: The client works in a test suite in Eclipse. What actually changed? Why would it work in Eclipse and not in JBoss?
Thanks for the quick response.
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
From: basex-talk-bounces@mailman.uni-konstanz.demailto:basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] On Behalf Of Dirk Kirsten Sent: Friday, July 22, 2016 7:10 AM To: basex-talk@mailman.uni-konstanz.demailto:basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Hello Carl,
did you see the mail by Christian Grün on the 20th? You will need to update the client as well, as with the major version 8 we changed the client/server protocol. I doubt it has anything to do with JBoss specifically.
Cheers Dirk On 07/22/2016 12:38 PM, Bondeson, Carl wrote: We just upgraded from 7.8 to 8.5. We are using BaseX in a JBoss multi-threaded application. Something has changed with ClientSession. I have log4j at trace level and the server is started but when a call is made to the ClientSession constructor nothing happens.
static final int BASEX_SERVER_PORT = 1990; static final String BASEX_USER = "admin"; static final String BASEX_PASSWORD = "admin"; static final String BASEX_HOST = "localhost";
try {
// get server status boolean serverstarted = BaseXServer.ping(BASEX_HOST, BASEX_SERVER_PORT); // server started? if (!serverstarted) { instance.basexlog.trace("BaseXDictionary: BaseX: Start BaseX server"); // no-> create a new instance using server and client ports // BaseXServer server = new BaseXServer("-p" + BASEX_SERVER_PORT);
} else { // yes-> log the event instance.basexlog.trace("BaseXDictionary: BaseX: BaseX server already started");
}
// start initialization process instance.basexlog.debug("BaseXDictionary: BaseX: Server started");
// this call never returns or something strange is going on instance.mapperDBSession = new ClientSession(BaseXDictionary.BASEX_HOST, BaseXDictionary.BASEX_SERVER_PORT, BaseXDictionary.BASEX_USER, BaseXDictionary.BASEX_PASSWORD);
This next log4j output is never seen in the log file
instance.basexlog.trace("BaseXDictionary: BaseX: Client Session created ");
Any JBoss users?
Thanks
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
I pulled a version of 8.4 from the git repo. Nice job on the pom! Added some log4j2 and what did I find??? One of the real weaknesses of the JVM. I didn't realize there were 2 copies of BaseX in this war. One was 7.6 and the other was 8.4. It is a crapshoot as to which will be loaded first. This is one of the real strengths of the .Net framework. You can have multiple assemblies (the jar analogy) with multiple dlls (the class analogy) which are versioned. You decide which you want to use and this association is guaranteed by classid/guid. I removed the old jar and everything works!
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
From: basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de] On Behalf Of Dirk Kirsten Sent: Friday, July 22, 2016 7:10 AM To: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] JBoss 6.4 and BaseX 8.4
Hello Carl,
did you see the mail by Christian Grün on the 20th? You will need to update the client as well, as with the major version 8 we changed the client/server protocol. I doubt it has anything to do with JBoss specifically.
Cheers Dirk On 07/22/2016 12:38 PM, Bondeson, Carl wrote: We just upgraded from 7.8 to 8.5. We are using BaseX in a JBoss multi-threaded application. Something has changed with ClientSession. I have log4j at trace level and the server is started but when a call is made to the ClientSession constructor nothing happens.
static final int BASEX_SERVER_PORT = 1990; static final String BASEX_USER = "admin"; static final String BASEX_PASSWORD = "admin"; static final String BASEX_HOST = "localhost";
try {
// get server status boolean serverstarted = BaseXServer.ping(BASEX_HOST, BASEX_SERVER_PORT); // server started? if (!serverstarted) { instance.basexlog.trace("BaseXDictionary: BaseX: Start BaseX server"); // no-> create a new instance using server and client ports // BaseXServer server = new BaseXServer("-p" + BASEX_SERVER_PORT);
} else { // yes-> log the event instance.basexlog.trace("BaseXDictionary: BaseX: BaseX server already started");
}
// start initialization process instance.basexlog.debug("BaseXDictionary: BaseX: Server started");
// this call never returns or something strange is going on instance.mapperDBSession = new ClientSession(BaseXDictionary.BASEX_HOST, BaseXDictionary.BASEX_SERVER_PORT, BaseXDictionary.BASEX_USER, BaseXDictionary.BASEX_PASSWORD);
This next log4j output is never seen in the log file
instance.basexlog.trace("BaseXDictionary: BaseX: Client Session created ");
Any JBoss users?
Thanks
Carl R Bondeson IT Analyst 3 Information Technology Connecticut Department of Public Health 410 Capitol Ave Hartford, CT 06134 Phone: 860-509-7434 carl.bondeson@ct.govmailto:carl.bondeson@ct.gov [logosmall]
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
basex-talk@mailman.uni-konstanz.de