Unix Technical Forum

Exception: com.informix.asf.IfxASFException

This is a discussion on Exception: com.informix.asf.IfxASFException within the Informix forums, part of the Database Server Software category; --> Hi, I'm newbie with informix and I have to develop a java application that will have to connect to ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 07:28 AM
Leo
 
Posts: n/a
Default Exception: com.informix.asf.IfxASFException

Hi,
I'm newbie with informix and I have to develop a java application that
will have to connect to Informix.
It will be running with Informix 5 SE ( with Informix NET ) on AIX
4.3.3

Ihave set the environement variable
INFORMIXDIR,INFORMIXSERVER,SQLEXEC...
I'v launched $INFORMIXDIR/lib/sqlexecd -l logfile

When I try to connect to Informix with the following url
I've a problem with the url
"jdbc:informix-sqli://myhost:1533/testDB:INFORMIXSERVER=myserver;user=rdtest;passwor d=test"
I have the following error
MESSAGE:com.informix.asf.IfxASFException
java.sql.SQLException: com.informix.asf.IfxASFException
at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliCon nect.java:950)
at java.lang.reflect.Constructor.newInstance(Native Method)
at com.informix.jdbc.IfxDriver.connect(IfxDriver.java :243)
at java.sql.DriverManager.getConnection(DriverManager .java:543)
at java.sql.DriverManager.getConnection(DriverManager .java:216)
at DBConnection.main(DBConnection.java:102)
In the log file, I have : ^A\^A< myhost M-^@A


When I use the url "jdbc:informix-sqli://myhost:1533/testDB:INFORMIXSERVER=myserver;USEV5SERVER=1;user= rdtest;password=test"
Exception in thread "main" java.lang.ClassCastException:
java.lang.NoSuchMethodError
at com.informix.jdbc.IfxDriver.connect(IfxDriver.java :247)
at java.sql.DriverManager.getConnection(DriverManager .java:543)
at java.sql.DriverManager.getConnection(DriverManager .java:216)
at DBConnection.main(DBConnection.java:102)
In the log file, I have :sqlexec myhost rdtest -p

Any idea?
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 07:30 AM
superboer
 
Posts: n/a
Default Re: Exception: com.informix.asf.IfxASFException

ahum sorry about my prev responce; did not see that this is V5.

if V5 and the daemon is started using sqlexecd
and there is no sqlhost file then the service will be
sqlexec, INFORMIXSERVER=<yourhostname>

so try
jdbc:informix-sqli://myhost:1533/testDB:INFORMIXSERVER=myhost;UESV5SERVER=1;user=rd test;password=test
am not sure about this-----------^^^^^^

it would be nice to see what the error# is so try and catch it...

e.getErrorCode()
e.getMessage()


Superboer.


francis.leonard@logonsi.fr (Leo) wrote in message news:<321e3c40.0501210257.5d3e5ffa@posting.google. com>...
> When I use the url "jdbc:informix-sqli://myhost:1533/testDB:INFORMIXSERVER=myserver;UESV5SERVER=1;user= rdtest;password=test"
> Exception in thread "main" java.lang.ClassCastException:
> java.lang.NoSuchMethodError
> at com.informix.jdbc.IfxDriver.connect(IfxDriver.java :247)
> at java.sql.DriverManager.getConnection(DriverManager .java:543)
> at java.sql.DriverManager.getConnection(DriverManager .java:216)
> at DBConnection.main(DBConnection.java:102)
> In the log file, I have :sqlexec myhost rdtest -p
>
> Any idea?
> Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:50 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com