muddu
New Member
Can some one please tell me the reason why JVM is crashing.
I am trying to store a pdf file in to Progress10.1E blob table using java. I have no compilation errors, but when I run the program JVM crashes.
An excerpt of the error is as such
Also, for referral here is the code I am using to store pdf.
Is it a dll error? Do I need to replace dll file progress has supplied? How should I fix this?
Please suggest any code changes if needed?
I am trying to store a pdf file in to Progress10.1E blob table using java. I have no compilation errors, but when I run the program JVM crashes.
An excerpt of the error is as such
Code:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0aec3453, pid=7728, tid=7184
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_16-b02 mixed mode)
# Problematic frame:
# C [PROCLI92.dll+0x33453]
Code:
public class insertImage {
public static void main(String[] args) {
System.out.println("Insert Image File!");
String driverName = "com.progress.sql.jdbc.JdbcProgressDriver";
String url = "jdbc:JdbcProgress:T:localhost:16310:devblobs";
String userName = "webproxy";
String password = "yxorpbew";
Connection conn = null;
try{
Class.forName(driverName);
conn = DriverManager.getConnection(url,userName,password);
String INSERT_PDF = "insert into pub.zzblob_det(zzblob_id, zzblob_filename, zzblob_blob, zzblob_domain) values (?, ?, ?, ?)";
File file = new File("C:\\DepositeVirusForm.pdf");
FileInputStream fis = null;
int fileLength = (int) file.length();
InputStream is = (InputStream) new FileInputStream(file);
PreparedStatement pre = conn.prepareStatement(INSERT_PDF);
System.out.println("Insert Image !");
pre.setString(1,"pkkkk1");
pre.setString(2,"Virus");
pre.setBinaryStream(3, is,fileLength);
pre.setString(4, "ATCC");
pre.executeUpdate();
System.out.println("Inserting Successfully!");
pre.close();
conn.close();
}catch (Exception e){
e.printStackTrace();
}
}
}
Is it a dll error? Do I need to replace dll file progress has supplied? How should I fix this?
Please suggest any code changes if needed?