Accessing Tamino

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Accessing Tamino

Post by mob »

Hello,

I have coded some simple XQuery Tamino extenstion classes (for Saxonica) which work when I run stand alone. When I try to integrate with Oxygen (run my query from within oxygen) I am getting strange exception (com.softwareag.tamino.db.api.invocation.http.THTTPCommunicationException) although I set up the necessary jars)
I actually put all jars (except saxon8.jar and log4j.jar) I used in the standalone test to oxygen/lib folder.

Has anyone some suggestion how to do this integration ?

(I am using Mac OS X 10.4.6, JVM 1.5, Oxygen 7.2, Tamino API 4.2.xxx)

thanks in advance,
Balazs
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Is com.softwareag.tamino.db.api.invocation.http.THTTPCommunicationException contained in one of the jars copied in [oXygen7.2-install-folder]/lib ? Did you restart <oXygen/> after copying the jar files ?

Copying them in [oXygen7.2-install-folder]/lib and restarting is one way of configuring XQuery or XSLT extensions in <oXygen/> but there is an easier way: configure them directly in the transformation scenario using the Extensions button of the Edit scenario dialog. This way you don't have to restart the application and you can change the actual files on disk between two transformations which use the extensions, because they are loaded and used only for the current transformation.

Regards,
Sorin
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Post by mob »

Hello,
Yes, the Exception class is in the jar I put in the lib folder. The reason I used the lib folder is that during xquery debugging the extension jars I added were lost after each restart of oxygen.

regards,
Balazs
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Post by mob »

I also did restart oxygen.
Balazs
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Post by mob »

This is the last/innermost part of the exception:
com.softwareag.tamino.db.api.invocation.http.THTTPCommunicationException( message: HTTP communication failure. ResponseCode: 0, messageText: null, tag: JavaTaminoAPI_4_2_0_60, java: 1.5.0_06, os: Mac OS X 10.4.6 ):

at com.softwareag.tamino.db.api.invocation.http.THTTPInvocation.getInputStream(Unknown Source)
at com.softwareag.tamino.db.api.invocation.http.THTTPInvocation.doGetInvoke(Unknown Source)
at com.softwareag.tamino.db.api.invocation.http.THTTPInvocation.doInvokeReal(Unknown Source)
at com.softwareag.tamino.db.api.invocation.http.THTTPInvocation.doInvoke(Unknown Source)
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,
mob wrote:The reason I used the lib folder is that during xquery debugging the extension jars I added were lost after each restart of oxygen.
You should apply the same transformation in the Debugger perspective as in the main Editor perspective, that is you should start the Debugger using the "Debug Scenario" action. This way the extensions are stored in the scenario and preserved when the application is restarted. Usually you add the extensions directly in the Debugger perspective for a one time test when you don't run a scenario.

What is the error message of the HTTP exception ? Does the connection have to go through a proxy server ? In this case is the proxy configured correctly in Options -> Preferences -> HTTP/FTP/Proxy Configuration ? Can you run a simple XQuery against the Tamino server without the extensions which you coded ?

Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

mob wrote:com.softwareag.tamino.db.api.invocation.http.THTTPCommunicationException( message: HTTP communication failure. ResponseCode: 0, messageText: null
I think you will have to provide a more detailed reason for the exception. A null message text is not helpful. What does the 0 response code mean ?

Regards,
Sorin
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Post by mob »

Thanks for the suggestion on extension settings.

On Tamino: I do not understand your suggestion: I am not aware of any Tamino connection capability in oxygen. Is there ?

My scenario is the following:

I have scripted some generic XQuery code (not Tamino XQuery)
I am accessing my Java classes using Saxonica extension capabilities
The constructor of my class gets called alright, (I have put logging messages) it recieves the correct connection parameters and attempts to call: this.i_TConnection = TConnectionFactory.getInstance()
.newConnection(this.i_DatabaseURL, this.i_UserID,
this.i_Password);

At this point I receive the exception I have posted. This same code executes fine if I directly call it via java command line embedding the construction in a test class.

regards,
Balazs
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Post by mob »

Sorr: this is Tamino internals. I have no means of getting more on this. My hope was that someone inside Oxygen has already done some experiments with Tamino - as I have seen there is some support of other XML database servers like eXist.

regards,
Balazs
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Post by mob »

The thread on Http may lead somewhere. I have seen there are some settings available in Oxygen. Could there be any interference between Tamino classes wanting to do some Http invocations and Oxygen classes/settings ?

My environment is quite simple: no proxies, no specialties.

regards,
Balazs
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

mob wrote:I do not understand your suggestion: I am not aware of any Tamino connection capability in oxygen. Is there ?
There is no special configuration for the Tamino server. I was talking about HTTP connections in general.
mob wrote:I have seen there are some settings available in Oxygen. Could there be any interference between Tamino classes wanting to do some Http invocations and Oxygen classes/settings ?
The HTTP communication between <oXygen/> and Tamino server should go without errors as long as you use the correct URL and Tamino conforms to the HTTP protocol. Please contact us to support at oxygenxml dot com to help you check that by enabling logging of the HTTP traffic from <oXygen/>.

Before that you should see this thread on the Tamino forum and check that the URL for connecting to Tamino is correct by trying the same URL in a Web browser but adding _diagnose=ping to your URL as instructed on the Tamino forum.

Regards,
Sorin
mob
Posts: 8
Joined: Wed Jun 21, 2006 11:19 am

Post by mob »

Hello Sorin,

I did try the pinging as suggested by the Tamino forum you pointed me to. This was the result:
<ino:response>
<ino:request>
<ino:diagnose ino:request-type="ping"/>
</ino:request>
<ino:message>
<ino:messageline ino:subject="Server">is alive</ino:messageline>
</ino:message>
</ino:response>

I have copy/pasted the URL from my XQuery to the browser url and put the ?_diagnose=ping at the end of the url and got this fine message.

As I wrote in my initial mail - the same XQuery scipt when invoked from outside Oxygen (a java test class calling Saxonica) my query works fine - so that suggests to me the problem might be some incompatible class references, missing jars, or some configuration problem. The most likely was classpath but I guess I did succeed to copy the 4 jars from my eclipse lib folder to oxygen. I tried both methods (oxygen lib folder and configuration of extension classes) but each case I got back the server not available exception. That is where I am now.

regards,
Balazs
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,
sorin wrote:The HTTP communication between <oXygen/> and Tamino server should go without errors as long as you use the correct URL and Tamino conforms to the HTTP protocol. Please contact us to support at oxygenxml dot com to help you check that by enabling logging of the HTTP traffic from <oXygen/>.
Please contact us at support at oxygenxml dot com.

Regards,
Sorin
Post Reply