Tapan Prajapati

Greenhorn
+ Follow
since Mar 05, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Tapan Prajapati

hii,

and whats the reason of this Exception:

is there any problem in oracle? i unable to identify it please help me..
hii ,
i am using Jdk 1.6 , Windows 7 64bit , Oracle 11gR2 s/ws
i want to Establish connection by using oracle thin driver but the problem is after loading the class "oracle.jdbc.driver.OracleDriver" the connection object is not created so , simply after 2mins it shows the Exception "socket Read time out" i want to know the location of the log file . where the oracle related or java related log files are there?
e:\JavaPrgms\JDBC>java DbTest
DbTest main(-)
class loaded
java.sql.SQLException: Socket read timed out
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at DbTest.main(DbTest.java:17)
Caused by: oracle.net.ns.NetException: Socket read timed out
at oracle.net.ns.Packet.receive(Packet.java:320)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1042)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:301)
... 7 more

e:\JavaPrgms\JDBC>

whats the reason of this exception??

Michael Dunn wrote:you change the constructor so you can pass the data when TxMgt is created
//public TxMgt() {
to

String userName
public TxMgt(String un) {
userName = un;

and in Login.java
//TxMgt tx = new TxMgt();

to
TxMgt tx = new TxMgt(jTextField1.getText());



This is for only one text field , but if in case i want to use multiple textfields of my first form into second form then? is there any other way?
12 years ago
login.java

TxMgt.java


I want to retrive the value of JTextfield1 (usern) value in my second form TxMgt how can i retrive?
12 years ago

Bear Bibeault wrote:What's this to do with JDBC?



i stored my login details in database after login complition i want to do persistent operation with database table.
Hi,
Two files Login.java and TxMgt.java

I made lo gin page and i want to use that logined user to another java file for next step,
i stored my lo gin details in hash Table so i want to retrieve that hash table value to my another java file , what is the best way for geting values.?
hi,
Here my alert.log file. i unable to understand if you then tell me how can i correct it? i attached the portion from alert file after my compilation time.



Koen Aerts wrote:Did you look in the DBMS log file and see if there's any indication as to why the connection fails?



Where will be located this file?

Wendy Gibbons wrote:Have you done any research into this issue, other than posting here, as I found a few interesting issues, involving db setup with certain oracle version, reporting this error.




Ya i tried to find out , and one more thing i want to tell you , i unable to installed my oracle 11.1.0.1 in my computer so i installed it manually, but sq l is working.. nicely as well as oracle jdbc.odbc driver are also working nicely but problem with this only when i start to use oracle thin driver ... so i got this exception any idea ? then reply me soon....

Thanks...


m using Windows Vista 32 bit Business version and installed softwares : jdk 1.6, Oracle 11.0.1.0
hii,

I am using Windows Vista 32bit o/s , installed Software Oracle 11.2.0.1
i am able to execute oracle Type 1 driver by using odbc connection

Now i want to connect my Java Application with My Oracle Database Software by Type 4 mechanism
i successfully added "OJDBC6.JAR" file in my class path
while executing code i got an SqlException : The Network Adapter could not establish connection

here is my code..



Hii,

i am using windows Vista 32 bit Business version , i installed Tomcat 6.0.35 successfully and now when i run the Tomcat server from <Tomcat_Home>\bin\Tomcat6.0.exe then it started and automatically shutdown. How to make my server in running mode ..?
12 years ago

but i cant able to get your answer i had also extended it with jApplet but how can i insert my applet into this jtabbedpane give me example or method of it soon.

14 years ago