caprica / picam

Unofficial Java API library for the Raspberry Pi camera.
GNU General Public License v3.0
49 stars 11 forks source link

createComponent fails #6

Closed amcelroy closed 6 years ago

amcelroy commented 6 years ago

Howdy,

I would like to use this library in a GlassFish application for a remote imaging system in our Lab. To do this, I've done the following:

When running the .war file, the code gets to Camera->createEncoder->createComponent and then Java throws an exception when PointerByReference is first called in createComponent in MmalUtils class.

The exception thrown is in the doAs method in Subject.java. It seems to be a permission issue or something, but I am running the .war file as sudo. Didn't know if you had seen this, still trying to solve and will update as things progress.

screen shot 2018-02-08 at 11 08 01 am
amcelroy commented 6 years ago

Looks to be an issue with glassfish / payara. Found this on StackOverflow:

https://stackoverflow.com/questions/47888563/run-web-application-on-glassfish-with-newer-version-of-jna-library

Closing this out as an issue, as it is not Picam.