Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Null Protocol Returned in AIX

3 posts in JDBC Connect (product renamed to JConnect) Last posting was on 1997-09-15 17:05:12.0Z
Dan Timmons Posted on 1997-09-06 20:53:14.0Z
Message-ID: <3411C2BA.55A2@erols.com>
Date: Sat, 06 Sep 1997 16:53:14 -0400
From: Dan Timmons <dnjtimmo@erols.com>
Reply-To: dnjtimmo@erols.com
X-Mailer: Mozilla 3.01C-KIT (Win95; I)
MIME-Version: 1.0
Subject: Null Protocol Returned in AIX
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 86
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:308
Article PK: 252060

When I run the sample applications (Ping, Validate...), I get an
java.lang.NullPointerException. With all of the debugging stuff turned
on, I get the messages below. The sample applet works just fine.

I am running on AIX 4.1.5, Java 1.1.2, Sybase Sql Server 11.0.2. The
Sql Server is on the same host that I am running the application. Any
suggestions?


Environment variables

=====================================================================
JAVA_HOME=/usr/local/J1.1.2
JDBC_HOME=/usr/local/jConn30

CLASSPATH=.:/usr/local/jConn30/devclasses:/usr/local/J1.1.2/lib/classe
s.zip

Error Messages

====================================================================
com.sybase.jdbc.SybDriver(Thread[main,5,main]): Driver()
com.sybase.jdbc.SybDriver@5fc
com.sybase.jdbc.SybDriver(Thread[main,5,main]): Driver()
com.sybase.jdbc.SybDriver@3ac
com.sybase.jdbc.SybDriver(Thread[main,5,main]):
Connect(jdbc:sybase:Tds:172.16.13.13:1026/master in
com.sybase.jdbc.SybDriver@5fc
com.sybase.jdbc.SybDriver(Thread[main,5,main]): loaded key class OK
Sybase jConnect (TM) for JDBC (TM) 3.0 Development and Unsupported
Version
It is an unsupported product and is not intended for deployment.
It
does not include free technical support. You can purchase
technical
support on an annual or pay-per-issue basis. Discussion Newsgroup
is
available on www.sybase.com. For
additional information on services or run-time license, please
check
Sybase website or call 1-800-8-SYBASE or +1-510-922-3500 outside of
the USA and Canada.

Copyright 1997 Sybase, Inc.
All Rights Reserved
com.sybase.jdbc.SybDriver(Thread[main,5,main]): installed _sybKey:
com.sybase.jdbc.SybDriverKey@668
com.sybase.jdbc.SybDriver(Thread[main,5,main]): parsing connect
url:
jdbc:sybase:Tds:172.16.13.13:1026/master
(Thread[main,5,main]):
ProtocolManager.getProtocol("com.sybase.tds.Tds")
(Thread[main,5,main]): ProtocolManager.getProtocol -- loading
com.sybase.tds.Tds
(Thread[main,5,main]): Assertion failed: Null protocol returned
java.lang.RuntimeException: (Thread[main,5,main]): Assertion
failed:
Null protocol returned
at com.sybase.utils.Debug.assert(Debug.java:268)
at

com.sybase.jdbc.ProtocolManager.getProtocol(ProtocolManager.java:108)
at com.sybase.jdbc.SybDriver.parseUrl(SybDriver.java:360)
at com.sybase.jdbc.SybDriver.connect(SybDriver.java:127)
at
java.sql.DriverManager.getConnection(DriverManager.java:91)
at Ping.main(Ping.java:26)
Unexpected exception: java.lang.RuntimeException:
(Thread[main,5,main]): Assertion failed: Null protocol returned
java.lang.RuntimeException: (Thread[main,5,main]): Assertion
failed:
Null protocol returned
at com.sybase.utils.Debug.assert(Debug.java:268)
at

com.sybase.jdbc.ProtocolManager.getProtocol(ProtocolManager.java:108)
at com.sybase.jdbc.SybDriver.parseUrl(SybDriver.java:360)
at com.sybase.jdbc.SybDriver.connect(SybDriver.java:127)
at
java.sql.DriverManager.getConnection(DriverManager.java:91)
at Ping.main(Ping.java:26)


Chi Wang Posted on 1997-09-11 09:37:14.0Z
Message-ID: <3417BBCA.4280@lotus.com>
Date: Thu, 11 Sep 1997 09:37:14 +0000
From: Chi Wang <chi_wang@lotus.com>
Reply-To: chi_wang@lotus.com
Organization: Lotus
X-Mailer: Mozilla 3.0Gold (WinNT; I)
MIME-Version: 1.0
Subject: Re: Null Protocol Returned in AIX
References: <3411C2BA.55A2@erols.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 101
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:298
Article PK: 252050


Dan Timmons wrote:
>
> When I run the sample applications (Ping, Validate...), I get an
> java.lang.NullPointerException. With all of the debugging stuff turned
> on, I get the messages below. The sample applet works just fine.
>
> I am running on AIX 4.1.5, Java 1.1.2, Sybase Sql Server 11.0.2. The
> Sql Server is on the same host that I am running the application. Any
> suggestions?
>
> Environment variables
>
> =====================================================================
> JAVA_HOME=/usr/local/J1.1.2
> JDBC_HOME=/usr/local/jConn30
>
> CLASSPATH=.:/usr/local/jConn30/devclasses:/usr/local/J1.1.2/lib/classe
> s.zip
>
> Error Messages
>
> ====================================================================
> com.sybase.jdbc.SybDriver(Thread[main,5,main]): Driver()
> com.sybase.jdbc.SybDriver@5fc
> com.sybase.jdbc.SybDriver(Thread[main,5,main]): Driver()
> com.sybase.jdbc.SybDriver@3ac
> com.sybase.jdbc.SybDriver(Thread[main,5,main]):
> Connect(jdbc:sybase:Tds:172.16.13.13:1026/master in
> com.sybase.jdbc.SybDriver@5fc
> com.sybase.jdbc.SybDriver(Thread[main,5,main]): loaded key class OK
> Sybase jConnect (TM) for JDBC (TM) 3.0 Development and Unsupported
> Version
> It is an unsupported product and is not intended for deployment.
> It
> does not include free technical support. You can purchase
> technical
> support on an annual or pay-per-issue basis. Discussion Newsgroup
> is
> available on www.sybase.com. For
> additional information on services or run-time license, please
> check
> Sybase website or call 1-800-8-SYBASE or +1-510-922-3500 outside of
> the USA and Canada.
>
> Copyright 1997 Sybase, Inc.
> All Rights Reserved
> com.sybase.jdbc.SybDriver(Thread[main,5,main]): installed _sybKey:
> com.sybase.jdbc.SybDriverKey@668
> com.sybase.jdbc.SybDriver(Thread[main,5,main]): parsing connect
> url:
> jdbc:sybase:Tds:172.16.13.13:1026/master
> (Thread[main,5,main]):
> ProtocolManager.getProtocol("com.sybase.tds.Tds")
> (Thread[main,5,main]): ProtocolManager.getProtocol -- loading
> com.sybase.tds.Tds
> (Thread[main,5,main]): Assertion failed: Null protocol returned
> java.lang.RuntimeException: (Thread[main,5,main]): Assertion
> failed:
> Null protocol returned
> at com.sybase.utils.Debug.assert(Debug.java:268)
> at
>
> com.sybase.jdbc.ProtocolManager.getProtocol(ProtocolManager.java:108)
> at com.sybase.jdbc.SybDriver.parseUrl(SybDriver.java:360)
> at com.sybase.jdbc.SybDriver.connect(SybDriver.java:127)
> at
> java.sql.DriverManager.getConnection(DriverManager.java:91)
> at Ping.main(Ping.java:26)
> Unexpected exception: java.lang.RuntimeException:
> (Thread[main,5,main]): Assertion failed: Null protocol returned
> java.lang.RuntimeException: (Thread[main,5,main]): Assertion
> failed:
> Null protocol returned
> at com.sybase.utils.Debug.assert(Debug.java:268)
> at
>
> com.sybase.jdbc.ProtocolManager.getProtocol(ProtocolManager.java:108)
> at com.sybase.jdbc.SybDriver.parseUrl(SybDriver.java:360)
> at com.sybase.jdbc.SybDriver.connect(SybDriver.java:127)
> at
> java.sql.DriverManager.getConnection(DriverManager.java:91)
> at Ping.main(Ping.java:26)

I got the same error, although I had to modify the way the
'com.sybase.jdbc.Sybdriver' is loaded in Ping.java to get this 'far.' -
the original Ping.java (version 2.1) would always return 'no suitable
driver' message under AIX 4.1.4/JDK1.1.2. Anybody in Sybase have any
ideas? There is a good FAQ in Weblogic's tech support site about
loading JDBC drivers under AIX and MS IE browser VM.
http://www.weblogic.com/techsupport/faq.html#aix112


David Clegg Posted on 1997-09-15 17:05:12.0Z
Message-ID: <341D6AC8.2680593F@sybase.com>
Date: Mon, 15 Sep 1997 10:05:12 -0700
From: David Clegg <davec@sybase.com>
X-Mailer: Mozilla 3.01 (X11; I; Linux 1.2.13 i586)
MIME-Version: 1.0
To: chi_wang@lotus.com, dnjtimmo@erols.com
Subject: Re: Null Protocol Returned in AIX
References: <3411C2BA.55A2@erols.com> <3417BBCA.4280@lotus.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 122
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:278
Article PK: 252030

The jConnect driver is designed to be a multi-protocol jdbc driver,
thus it has to dynamically load the TDS protocol driver when it
boots up. The static class initialization bug in AIX's JDK and
in InternetExplorer 4.x is apparently the same bug which was
present in some of the JDK1.0.2 VM's.

The 1.0.2 compatible version of jConnect2.0 had a workaround for this
bug, but I didn't put the workaround into the 1.1 version of the
driver -- at the time there were no 1.1 VM's which had this bug...

The latest versions of both jConnect2.2 and jConnect3.0 Beta
available from www.sybase.com fix this problem.

dave

Chi Wang wrote:
>
> Dan Timmons wrote:
> >
> > When I run the sample applications (Ping, Validate...), I get an
> > java.lang.NullPointerException. With all of the debugging stuff turned
> > on, I get the messages below. The sample applet works just fine.
> >
> > I am running on AIX 4.1.5, Java 1.1.2, Sybase Sql Server 11.0.2. The
> > Sql Server is on the same host that I am running the application. Any
> > suggestions?
> >
> > Environment variables
> >
> > =====================================================================
> > JAVA_HOME=/usr/local/J1.1.2
> > JDBC_HOME=/usr/local/jConn30
> >
> > CLASSPATH=.:/usr/local/jConn30/devclasses:/usr/local/J1.1.2/lib/classe
> > s.zip
> >
> > Error Messages
> >
> > ====================================================================
> > com.sybase.jdbc.SybDriver(Thread[main,5,main]): Driver()
> > com.sybase.jdbc.SybDriver@5fc
> > com.sybase.jdbc.SybDriver(Thread[main,5,main]): Driver()
> > com.sybase.jdbc.SybDriver@3ac
> > com.sybase.jdbc.SybDriver(Thread[main,5,main]):
> > Connect(jdbc:sybase:Tds:172.16.13.13:1026/master in
> > com.sybase.jdbc.SybDriver@5fc
> > com.sybase.jdbc.SybDriver(Thread[main,5,main]): loaded key class OK
> > Sybase jConnect (TM) for JDBC (TM) 3.0 Development and Unsupported
> > Version
> > It is an unsupported product and is not intended for deployment.
> > It
> > does not include free technical support. You can purchase
> > technical
> > support on an annual or pay-per-issue basis. Discussion Newsgroup
> > is
> > available on www.sybase.com. For
> > additional information on services or run-time license, please
> > check
> > Sybase website or call 1-800-8-SYBASE or +1-510-922-3500 outside of
> > the USA and Canada.
> >
> > Copyright 1997 Sybase, Inc.
> > All Rights Reserved
> > com.sybase.jdbc.SybDriver(Thread[main,5,main]): installed _sybKey:
> > com.sybase.jdbc.SybDriverKey@668
> > com.sybase.jdbc.SybDriver(Thread[main,5,main]): parsing connect
> > url:
> > jdbc:sybase:Tds:172.16.13.13:1026/master
> > (Thread[main,5,main]):
> > ProtocolManager.getProtocol("com.sybase.tds.Tds")
> > (Thread[main,5,main]): ProtocolManager.getProtocol -- loading
> > com.sybase.tds.Tds
> > (Thread[main,5,main]): Assertion failed: Null protocol returned
> > java.lang.RuntimeException: (Thread[main,5,main]): Assertion
> > failed:
> > Null protocol returned
> > at com.sybase.utils.Debug.assert(Debug.java:268)
> > at
> >
> > com.sybase.jdbc.ProtocolManager.getProtocol(ProtocolManager.java:108)
> > at com.sybase.jdbc.SybDriver.parseUrl(SybDriver.java:360)
> > at com.sybase.jdbc.SybDriver.connect(SybDriver.java:127)
> > at
> > java.sql.DriverManager.getConnection(DriverManager.java:91)
> > at Ping.main(Ping.java:26)
> > Unexpected exception: java.lang.RuntimeException:
> > (Thread[main,5,main]): Assertion failed: Null protocol returned
> > java.lang.RuntimeException: (Thread[main,5,main]): Assertion
> > failed:
> > Null protocol returned
> > at com.sybase.utils.Debug.assert(Debug.java:268)
> > at
> >
> > com.sybase.jdbc.ProtocolManager.getProtocol(ProtocolManager.java:108)
> > at com.sybase.jdbc.SybDriver.parseUrl(SybDriver.java:360)
> > at com.sybase.jdbc.SybDriver.connect(SybDriver.java:127)
> > at
> > java.sql.DriverManager.getConnection(DriverManager.java:91)
> > at Ping.main(Ping.java:26)
>
> I got the same error, although I had to modify the way the
> 'com.sybase.jdbc.Sybdriver' is loaded in Ping.java to get this 'far.' -
> the original Ping.java (version 2.1) would always return 'no suitable
> driver' message under AIX 4.1.4/JDK1.1.2. Anybody in Sybase have any
> ideas? There is a good FAQ in Weblogic's tech support site about
> loading JDBC drivers under AIX and MS IE browser VM.
> http://www.weblogic.com/techsupport/faq.html#aix112