Visit Our UNIX and Linux User Community


Connection problem with gui java program to postgreaql database using unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Connection problem with gui java program to postgreaql database using unix
# 1  
Old 03-14-2005
Connection problem with gui java program to postgreaql database using unix

Having problem in connecting my gui java program to postgreaql database. I first used setenv classpath /home/share/postgresql/java/postgresql.jarSmilieroj1, where proj1 is my folder conatining all java and class file, to set classpath. Then javac *.java. Then java proj1.Login. It gives me "java.lang.ClassNotFoundException: org.postgresql.Driver
", "java.lang.NullPointerException" and "Exception in thread 'main' java.lang.NoClassDefFoundError: Login"
so what is wrong with my command and what are the right commands?

PS: my db uses postgresql 7.4, my program involves jdk 1.4, I use x-window 6.0 to open the program, I am using ssh 3.2.9 to connect to unix server, and the os is solaris 8
# 2  
Old 03-17-2005
Well for starters Unix is case sensitive. The environment varible you should be using is CLASSPATH.

Secondly that usage is discourged by Sun in favour of invoking java as
java -classpath <insert you classpath here> MyApplication
# 3  
Old 12-15-2007
Problem while connecting from WAS Server web application to unix box

Hi

I am very new to unix . please help me

I am trying to connect one remote AIX box from my webapplication by using ssh stuff to read the files and My WAS applicaiton server is resided in another AIX box.

This time I am facing the connection issue

whenever my application is trying to connect the remote aix box the
following exception is gettting even these two boxes are up and running fine and while pinging its working fine.

The host tigger is currently unknown to the system
1309282e SystemOut O
The host key (ssh-dss) fingerprint is:01:f6:9d:fb:92:e2:5b:db:16:c6:4f:d6:cc:8b:bf:e1
1309282e SystemOut O Do you want to allow this host key? [Yes|No|Always]: java.lang.NullPointerException

And in another issue I am trying to read some files to display it on the web its connecting the box fine but no data getting back the following
this could be ftp prob i think
messages are getting and finally

com.sshtools.j2ssh.subsystem.SubsystemMessageStore Received SSH_FXP_DATA subsystem message
com.sshtools.j2ssh.subsystem.SubsystemClient Sending SSH_FXP_READ subsystem message
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.transport.TransportProtocolCommon Received SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.transport.Service Routing SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.subsystem.SubsystemMessageStore Received SSH_FXP_STATUS subsystem message
com.sshtools.j2ssh.subsystem.SubsystemClient Sending SSH_FXP_CLOSE subsystem message
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.transport.TransportProtocolCommon Sending SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.sftp.SftpSubsystemClient Waiting for response
com.sshtools.j2ssh.transport.TransportProtocolCommon Received SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.sftp.SftpMessageStore Message store has 0 messages
com.sshtools.j2ssh.transport.Service Routing SSH_MSG_CHANNEL_DATA
com.sshtools.j2ssh.subsystem.SubsystemMessageStore Received SSH_FXP_STATUS subsystem message

com.sshtools.j2ssh.sftp.SftpSubsystemClient Received response
SRVE0026E: [Servlet Error]-[NonSecureServlet]: java.lang.NullPointerException


******* this is very urgent.

Please help me in this regard what is the problem. your suggestions greatful and appreciable.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #732
Difficulty: Easy
In BASIC, GOTO jumps to a numbered or labelled line in the program.
True or False?

10 More Discussions You Might Find Interesting

1. Programming

Python gui or C++ gui or java gui?

python gui or c++ gui or java gui? and when to use etch one? (1 Reply)
Discussion started by: kaja
1 Replies

2. Shell Programming and Scripting

Oracle Database connection from UNIX

Hi I have a question regarding Oracle connection using the below code ${ORACLE_HOME}/bin/sqlplus -s $user/$pwd@$sid <<!EOF 1>> $v_log_dir/$v_job_log.out 2>> $v_log_dir/$v_job_log.err / prompt stored procedure beginning . . . exec xx_interface_pkg.pr_xx_clms_out($datayears,$keepmonths); ... (3 Replies)
Discussion started by: smilingraja
3 Replies

3. Shell Programming and Scripting

Problem while Invoke Shell Script function from Java Program

Hi, I have create a Shell Script, with one function. I want to call the script file in Java Program. It working fine. but the problem is the function in the Shell Script is not executed. Please suggest me, Regards, Nanthagopal A (2 Replies)
Discussion started by: nanthagopal
2 Replies

4. Shell Programming and Scripting

Rsync through java program - issues with remote connection failure

Hi Everybody, I am running rsync through my java application. The Java application will sync the files with remote machine. During our connection failure testing we noticed an issue running rsync through java program. The java application which is running at source side is not receiving any... (2 Replies)
Discussion started by: MVEERA
2 Replies

5. Shell Programming and Scripting

RSH connection problem while running MPI program

I'm trying to run MPI programs on 8 machines, but I get the error connect to address 127.0.0.1 port 544: Connection refused Trying krb4 rsh... connect to address 127.0.0.1 port 544: Connection refused trying normal rsh (/usr/bin/rsh) lagrid02: Connection refused When I run it with a... (8 Replies)
Discussion started by: vishwamitra
8 Replies

6. UNIX for Dummies Questions & Answers

Problem in GUI based program on Sun Solaris

Hello! I am trying to run a program which has used Xlib for its graphical user interface on Solaris through Common Desktop Environment(CDE). All I get is my three required widows open but all blank.They suppose to show some symbols, pictures ad buttons.In the command terminal the following... (1 Reply)
Discussion started by: asif92
1 Replies

7. Programming

Turn java cmdline program into GUI

I have a java command line program from a vendor without source code, but it's too much work to run on a PC window, therefore I'm think to create a GUI wrapper or web interface calling that java cmdline program. But I'm a newbie in java world - How convert a java command line program into a web... (0 Replies)
Discussion started by: tqlam
0 Replies

8. Shell Programming and Scripting

Database Connection test in unix Script

i have a unix script that gives me the sysdate from the database EDNAMID.WORLD.What i want my script to do the following 1) Establish a database connection 2) if database connection is successfull then echo the message "Connected" 3) put the o/p of the Sql query in a spool file 4) then... (3 Replies)
Discussion started by: ali560045
3 Replies

9. UNIX for Dummies Questions & Answers

using a variable from java program in unix

Hi, I need to execute a java program in a shell script.I then need to assign the value being returned by the program into a unix variable.Is there any way i can access the value in a variable in java program? As in if my java code has a variable, . . . . valueA =x.getValue() ..... can... (1 Reply)
Discussion started by: inquisitive101
1 Replies

10. Programming

compile java with GUI on unix system/putty

is it possible in the first place? if so, how should I go about it? (0 Replies)
Discussion started by: finalight
0 Replies

Featured Tech Videos