Ritesh Dwa

Greenhorn
+ Follow
since Sep 18, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ritesh Dwa

Hello everyone,
I came across exception which is bit unique for me, I am using applet for my application which was working fine for about a year in every browser but now I am stuck in one system which has window XP profession, JDK1.5 and IE8. Accessing applet using this system is fine but when data added to the system then following SQLException occurs:

java.sql.SQLException: ORA-01722: ugyldig tall
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java)

In other system, the application is working fine. So I am in confuse state.

As I have surf the internet about the ORA-01722 code which was "invalid number" but we are only using varchar2 in this application.

Could anyone provide the suggestion?

Thanks in advance.
4 years ago
Thank you all for your suggestion.

I have implemented the suggestion and now the application can handle the command smoothly.

Best Regards,
Ritesh
6 years ago
Dear All,
I am using jdk1.6 to develop an application which should list only particular processes running in a RHEL 5 server. I had used 'Runtime.getRuntime().exec("ps -ef|grep java")' to call linux process but does not work. It works if I use "ps -ef" as command.

Can anyone suggest me, how to run joined command of linux through application.

Thank you.


Best Regards,
Ritesh
6 years ago
Now it worked. I had searched at lot and found that if we add the below code it works;

6 years ago
hello,
I am having problem in accessing oracle procedure having associative array(TYPE) as input from java.
I am using jdk 1.6 and oracle 11g.
I have a oracle procedure to call from java as given below:

Oracle procedure:


Java code:



I had search about this on web and found that "Hashmap" would be used as associative array in Java but I don't know how to use it to call oracle procedure.

Can anyone suggest me, how to set the datatype.

Thank you in advance.
6 years ago
Thank you Jatan.

After changing the configuration, it worked.

Again thanks a lot.

6 years ago

hello,
I am using struts 2.2.1 framework with jdk 1.6 and running in tomcat 7. In my web application, I want to upload excel file and read the content of that file. I have searched many websites and even apache website as well but I could not solve my problem.

After uploading file, when I try to read the uploaded file, error occurs : java.lang.NullPointerException. I think the variable "upload" in java file, should automatically initialized after file upload. isn't it?

I think my code is good, but its not working.

upload page: upload.jsp


struts.xml


ProcessUploadAction.java


Output:
File name:null
java.lang.NullPointerException

can anyone suggest me, what is the problem?

Thank you in advance.

6 years ago