IOApp – NegativeArraySizeException
- This topic has 1 reply, 2 voices, and was last updated 12 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You cannot reply to this topic.
Home › Forums › MultiConnect OCG › IOApp – NegativeArraySizeException
When running the IOApp on the OCG-E card as root, the
make = device.upload();
line works fine and returns the make, model, serial number, etc.
When the program is run under a different account on the OCG-E card the following stack dump is produced:
`java.lang.reflect.InvocationTargetException
at java.lang.reflect.VMMethod.invoke (Native Method)
at java.lang.reflect.Method.invoke(Method.java:327)
at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.lang.NegativeArraySizeException
at com.multitech.device.Device.getInfoText(Device.java:202)
at com.multitech.device.Device.upload(Device.java:75)
at mypkg.IOApp.main(IOApp.java:51)
at java.lang.reflect.VMMethod.invoke(Native Method)
… 2 more
Line 51 of the program is the call to device.upload()
This appears to be a privilege/resource problem. What privileges or resources are needed for a non-root account to run the program?
For those having a problem similar to this one, we have a document that provides information related to accessing OCG resources using the MultiConnect SDK from user permissions other than root. If you need that document, then please create a new case at Multi-Tech’s Product Support Portal and request the MultiConnect SDK Resource Permissions document.