File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes JAVA & NT: EXCEPTION_ACCESS_VIOLATION Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JAVA & NT: EXCEPTION_ACCESS_VIOLATION " Watch "JAVA & NT: EXCEPTION_ACCESS_VIOLATION " New topic
Author

JAVA & NT: EXCEPTION_ACCESS_VIOLATION

Ed Semblantes
Greenhorn

Joined: Jun 15, 2000
Posts: 4
I am running JDK 1.3 in a Windows NT machine. I am getting an EXCEPTION_ACCESS_VIOLATION error when running my programs as a user, not when I am in Administrator mode. The error happens when I am trying to add a new JButton component to the ContentPane of a Window.
The actual error looks like this (Dr. Watson):
An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside the VM.
Program counter=0x502032cf
I know this is more of a Windows question rather than a JAVA question, but both are related here. Any suggestions on how I can get rid of these messages?
Ed.
Apu Nahasapeemapetilon
Ranch Hand

Joined: Sep 06, 2000
Posts: 51
Show me the code causing this problem and I may be able to help.
Gotta go get me a squishee....
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Originally posted by Apu Nahasapeemapetilon:
Show me the code causing this problem and I may be able to help.
Gotta go get me a squishee....

Hi
I am experiencing the same problem. I am calling C++ native method in java. and in c++ I am again calling DLL of other plugin software. Program goes into the C++ but as soon as it reaches the function call of plugin software, it gives this EXCEPTION_ACCESS_VIOLATION.
Here is my code
import java.util.*;
public class AA extends GregorianCalendar
{
public static native void printmyvalues(String[] dd);
public String getdate()
{
return String.valueOf(super.getTimeInMillis());
}

static
{
System.loadLibrary("nrg1");
}
public static void main(String args[])
{
AA mm = new AA();
// GregorianCalendar gc = new GregorianCalendar();
String orderid = mm.getdate();
orderid = orderid + "merchant" + "Neetu";
String[] dd = new String[6];
dd[0] = orderid;
dd[1] = "1234.45";
dd[2] = "Neetu";
dd[3] = "85 Royal Drive # 424";
dd[4] = "12/00";
dd[5] = "4111111111111111";
// String[] xx = new String[20];
try
{
mm.printmyvalues(dd);
}catch(Exception e){System.out.println("Caught exception ");}
/* System.out.println("This is testing");
for(int i = 0;i<xx.length;i++)>
System.out.println(i+"th String passed from the c++ program is "+xx[i]);*/
}
}

------------------
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAVA & NT: EXCEPTION_ACCESS_VIOLATION