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.

Several strange things on jConnect

6 posts in JDBC Connect (product renamed to JConnect) Last posting was on 1997-05-16 21:15:36.0Z
Dongming Zhang Posted on 1997-04-03 19:26:13.0Z
Message-ID: <33440455.6569@welchgate.welch.jhu.edu>
Date: Thu, 03 Apr 1997 14:26:13 -0500
From: Dongming Zhang <zhang@welchgate.welch.jhu.edu>
Organization: Welch, JHU
X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.4 sun4m)
MIME-Version: 1.0
CC: jdbc.sql.SQLException:, Ajdbc.sql.SQLExceplance@sybase.com, zhang@welchgate.welch.jhu.edu
Subject: Several strange things on jConnect
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 31
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:1079
Article PK: 252831

I have tried several things this morning:

(1) on WIndow NT:

installed jdk 1.1.1 which is successful;
but couldn't uncompress jConnect which was just downloaded:

java -classpath .:%JAVA_HOME\lib\classes.zip jConnect

error: unable to initialize threads: cannot find class
java/lang/Thread

I checked all paths : CLASSPATH, system PATH, every thing seemed
normal.

Could Lance Help??

(2) on UNIX Sparc-5 2.4 Solaris:

JDK1.1.1 was successful! jConnect was successful!
running Validation was successful!

WHen I was running Netscape trying to run sample applet, hited "go"
the error:

jdbc.sql.SQLException: An IO exception was caught from a lower layer and
re-thrown.: java.io.IOException: Invalid argument Restart connection.

Could Lance Help?

(3) Then I turned to my Mac-Netscape, everything was fine: could
connect and retrieve the data;

then I truned to NT-Netscape, it didn't work either (even no window
shown up, I checked preference and it was java-enabled)


Did Sybase developer test it only on Mac-netscape?

Lance, Please help!

Dongming Zhang
Sybase Administrator
Johns Hopkins University


Lance Andersen Posted on 1997-04-04 15:35:13.0Z
Message-ID: <33451FB1.3FE8@sybase.com>
Date: Fri, 04 Apr 1997 10:35:13 -0500
From: Lance Andersen <lancea@sybase.com>
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Dongming Zhang <zhang@welchgate.welch.jhu.edu>
Subject: Re: Several strange things on jConnect
References: <33440455.6569@welchgate.welch.jhu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 77
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:1076
Article PK: 252828

Hi,

-The instructions on the web site are incorrect for NT/win95. The
command should be:

java -classpath .;%JAVA_HOME/lib/classes.zip jConnect


I have tested this on both NT and win95


-What version of the jdk are you using on solaris?

Please make sure that you have the cascade webserver up
and running prior to invoking the sample.

Also, I assume that you are using $JDBC_HOME/sample/gateway.html

and not $JDBC_HOME/applet/Isql.html.


- Netscape is *very* fussy in regards to CLASSPATH. I would
suggest not having this set prior to invoking netscape especially
on unix. I haven't noticed the same problems on NT or win95
though


-0-install client will work fine from any browser on any platform
that supports jdk102.


To use 0-install:

- Add $JDBC_HOME/classes as an alias directory within
your webserver configuration (this is any webserver)
- Place your applets in $JDBC_HOME/classes and set your
codebase in your applet tag to the alias you set up in
the prior step.
- If your SQL Server or SQL Anywhere is on a different
system than your webserver, then you will also need to
boot the cascade webserver and use the proxy property
for your applets.


-Lance

Dongming Zhang wrote:
>
> I have tried several things this morning:
>
> (1) on WIndow NT:
>
> installed jdk 1.1.1 which is successful;
> but couldn't uncompress jConnect which was just downloaded:
>
> java -classpath .:%JAVA_HOME\lib\classes.zip jConnect
>
> error: unable to initialize threads: cannot find class
> java/lang/Thread
>
> I checked all paths : CLASSPATH, system PATH, every thing seemed
> normal.
>
> Could Lance Help??
>
> (2) on UNIX Sparc-5 2.4 Solaris:
>
> JDK1.1.1 was successful! jConnect was successful!
> running Validation was successful!
>
> WHen I was running Netscape trying to run sample applet, hited "go"
> the error:
>
> jdbc.sql.SQLException: An IO exception was caught from a lower layer and
> re-thrown.: java.io.IOException: Invalid argument Restart connection.
>
> Could Lance Help?
>
> (3) Then I turned to my Mac-Netscape, everything was fine: could
> connect and retrieve the data;
>
> then I truned to NT-Netscape, it didn't work either (even no window
> shown up, I checked preference and it was java-enabled)
>
>
> Did Sybase developer test it only on Mac-netscape?
>
> Lance, Please help!
>
> Dongming Zhang
> Sybase Administrator
> Johns Hopkins University

--
===============================================================================
Lance J. Andersen Email: lancea@sybase.com
Sybase Technical Support Phone:(617) 564-6336
77 South Bedford Street Fax: (617) 564-6148
Burlington, MA 01803

The Dark Knight Returns!!! Let's Go Penguins!!!
===============================================================================


Dongming Zhang Posted on 1997-04-04 16:25:34.0Z
Message-ID: <33452B7E.486F@welchgate.welch.jhu.edu>
Date: Fri, 04 Apr 1997 11:25:34 -0500
From: Dongming Zhang <zhang@welchgate.welch.jhu.edu>
Organization: Welch, JHU
X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.4 sun4m)
MIME-Version: 1.0
Subject: Re: Several strange things on jConnect
References: <33440455.6569@welchgate.welch.jhu.edu> <33451FB1.3FE8@sybase.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 43
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:1074
Article PK: 252825

Thanks for the reply, Lance. The problem is still there after trying
your way. See my comments.

Lance Andersen wrote:
>
> Hi,
>
> -The instructions on the web site are incorrect for NT/win95. The
> command should be:
>
> java -classpath .;%JAVA_HOME/lib/classes.zip jConnect
>
> I have tested this on both NT and win95

----------> Stiil the same error message:

unable to initialize thread: can't find class java\lang\thread

My environment setup:

JAVA_HOME c:\jdk1.1.1\ CLASSPATH c:\jdk1.1.1\lib\classes.zip

I was running this command in c: directory.
>
> -What version of the jdk are you using on solaris?
>

-----------> jdk1.1.1

> Please make sure that you have the cascade webserver up
> and running prior to invoking the sample.
>

-----------> What do you mean cascade webserver? I started
this web server by running httpd.sh provided by sybase (port 8001)
And I think it is up running (otherwise, I couldn't connect to
the server: mymachine:8001, am I right?)

> Also, I assume that you are using $JDBC_HOME/sample/gateway.html
>
> and not $JDBC_HOME/applet/Isql.html.
>
------------> Yes.

> - Netscape is *very* fussy in regards to CLASSPATH. I would
> suggest not having this set prior to invoking netscape especially
> on unix. I haven't noticed the same problems on NT or win95
> though
>

-------> are you suggesting that I take off the $CLASSPATH, invoke
the netscape, then add $CLASSPATH?

Also the applet appearred on my UNIX screen was very fuzzy, I couldn't
see the contents in the fields, all the frame, fields are there through.

--Dongming Zhang
Johns Hopkins


Lance Andersen Posted on 1997-04-04 20:18:14.0Z
Message-ID: <33456206.424@sybase.com>
Date: Fri, 04 Apr 1997 15:18:14 -0500
From: Lance Andersen <lancea@sybase.com>
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Dongming Zhang <zhang@welchgate.welch.jhu.edu>
Subject: Re: Several strange things on jConnect
References: <33440455.6569@welchgate.welch.jhu.edu> <33451FB1.3FE8@sybase.com> <33452B7E.486F@welchgate.welch.jhu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.jdbcconnect
Lines: 50
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:1070
Article PK: 252822

ok, let me try and type this *one* more time as I cannot type :-(

set your %JAVA_HOME% (or use this in your command line):

JAVA_HOME c:\jdk1.1.1\

Type :

java -classpath .;%JAVA_HOME%\lib\classes.zip jConnect


*not*
java -classpath .;%JAVA_HOME%/lib/classes.zip jConnect

as I typed messed up my slashes. Sorry about that...

The above command works fine as I just downloaded and tested
with jdk1.1.1 on nt4.0

> -----------> What do you mean cascade webserver? I started
> this web server by running httpd.sh provided by sybase (port 8001)
> And I think it is up running (otherwise, I couldn't connect to
> the server: mymachine:8001, am I right?)
>

yes that is the right web server

> > Also, I assume that you are using $JDBC_HOME/sample/gateway.html
> >
> > and not $JDBC_HOME/applet/Isql.html.
> >
> ------------> Yes.
>
> > - Netscape is *very* fussy in regards to CLASSPATH. I would
> > suggest not having this set prior to invoking netscape especially
> > on unix. I haven't noticed the same problems on NT or win95
> > though
> >
>
> -------> are you suggesting that I take off the $CLASSPATH, invoke
> the netscape, then add $CLASSPATH?
>

You do not need CLASPATH set with netscape to use jConnect when
using 0-install client.

> Also the applet appearred on my UNIX screen was very fuzzy, I couldn't
> see the contents in the fields, all the frame, fields are there through.

change the height in the gateway.html to 600

>
> --Dongming Zhang
> Johns Hopkins

--
===============================================================================
Lance J. Andersen Email: lancea@sybase.com
Sybase Technical Support Phone:(617) 564-6336
77 South Bedford Street Fax: (617) 564-6148
Burlington, MA 01803

The Dark Knight Returns!!! Let's Go Penguins!!!
===============================================================================


Mike Agne Posted on 1997-05-16 21:15:36.0Z
Message-ID: <337CCE77.7C448252@magnolia.maricopa.gov>
Date: Fri, 16 May 1997 14:15:36 -0700
From: Mike Agne <magne@magnolia.maricopa.gov>
X-Mailer: Mozilla 4.0b4 [en] (Win95; I)
MIME-Version: 1.0
Subject: Re: Several strange things on jConnect
X-Priority: 3 (Normal)
References: <33440455.6569@welchgate.welch.jhu.edu> <33451FB1.3FE8@sybase.com> <33452B7E.486F@welchgate.welch.jhu.edu> <33456206.424@sybase.com>
Content-Type: text/plain; charset=iso-8859-1
Newsgroups: sybase.public.jdbcconnect
Lines: 59
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:826
Article PK: 252576


Lance Andersen wrote:

> ok, let me try and type this *one* more time as I cannot type :-(
>
> set your %JAVA_HOME% (or use this in your command line):
>
> JAVA_HOME c:\jdk1.1.1\
>
> Type :
>
> java -classpath .;%JAVA_HOME%\lib\classes.zip jConnect
>
> *not*
> java -classpath .;%JAVA_HOME%/lib/classes.zip jConnect
>
> as I typed messed up my slashes. Sorry about that...
>
> The above command works fine as I just downloaded and tested
> with jdk1.1.1 on nt4.0
>
> > -----------> What do you mean cascade webserver? I started
> > this web server by running httpd.sh provided by sybase (port 8001)
> > And I think it is up running (otherwise, I couldn't connect to
> > the server: mymachine:8001, am I right?)
> >
> yes that is the right web server
>
> > > Also, I assume that you are using $JDBC_HOME/sample/gateway.html
> > >
> > > and not $JDBC_HOME/applet/Isql.html.
> > >
> > ------------> Yes.
> >
> > > - Netscape is *very* fussy in regards to CLASSPATH. I would
> > > suggest not having this set prior to invoking netscape
> especially
> > > on unix. I haven't noticed the same problems on NT or win95
> > > though
> > >
> >
> > -------> are you suggesting that I take off the $CLASSPATH, invoke
> > the netscape, then add $CLASSPATH?
> >
>
> You do not need CLASPATH set with netscape to use jConnect when
> using 0-install client.
>
> > Also the applet appearred on my UNIX screen was very fuzzy, I
> couldn't
> > see the contents in the fields, all the frame, fields are there
> through.
>
> change the height in the gateway.html to 600
>
> >
> > --Dongming Zhang
> > Johns Hopkins
>
> --
> ==
> ============================================================================
>
> Lance J. Andersen Email: lancea@sybase.com
> Sybase Technical Support Phone:(617) 564-6336
> 77 South Bedford Street Fax: (617) 564-6148
> Burlington, MA 01803
>
> The Dark Knight Returns!!! Let's Go Penguins!!!
> ============================================================
> ==================

Thank you. The most important difference on your command line to load
jConnect is the semicolon instead of the colon. Once I saw that all of
my problems were solved.
Thanks Again
Mike


Siva Chandrasekharan Posted on 1997-04-03 22:37:42.0Z
From: "Siva Chandrasekharan" <skumar@sybase.com>
Subject: Re: Several strange things on jConnect
References: <33440455.6569@welchgate.welch.jhu.edu>
Message-ID: <01bc4089$3c2cd6c0$2579d682@mono>
X-Newsreader: Microsoft Internet News 4.70.1155
Newsgroups: sybase.public.jdbcconnect
Date: Thu, 03 Apr 1997 17:37:42 -0500
Lines: 7
Path: forums-1-dub!forums-master.sybase.com!forums.powersoft.com
Xref: forums-1-dub sybase.public.jdbcconnect:1077
Article PK: 252829

Dongming,

>
> java -classpath .:%JAVA_HOME\lib\classes.zip jConnect
>

Try doing just java jConnect. It worked for me. The reason I think when you
execute with the classpath it cannot locate the normal JAVA classes like
java.lang.*


Siva