Products for USB Sensing and Control
It is currently Fri May 24, 2013 11:06 am

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Jun 14, 2012 9:30 am 
Offline
Fresh meat

Joined: Thu Jun 14, 2012 9:14 am
Posts: 3
Hello
I'm Laurent from Toulouse

We ordered a new 1052 stand alone temperature sensor.
We had compiled a java software (1.6) to draw a temperature curve and used it nicely with the 1051 version of the sensor.
It doesn't work anymore.

We tried to recompile (with java7) the simple example available in your website (C:\temp\JavaJNI\Simple Examples\TemperatureExample.java).
(Note that the sensor is well detected (and gives a too low temperature for this season !) after installing the phidgets driver and running )

I got a crash:

C:\temp\JavaJNI_2.1.8.20120612\JavaJNI\Simple Examples>java -cp phidget21.jar;.
TemperatureExample
Phidget21 - Version 2.1.8 - Built Jun 12 2012 15:08:57
waiting for TemperatureSensor attachment...
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (os_windows.cpp:475), pid=812, tid=876
Serial: 81639
trigger: 0.1
Outputting events. Input to stop.
# fatal error: DuplicateHandle failed

#
# JRE version: 7.0_05-b05
# Java VM: Java HotSpot(TM) Client VM (23.1-b03 mixed mode, sharing windows-x86
)
# Failed to write core dump. Minidumps are not enabled by default on client vers
ions of Windows
#
# An error report file with more information is saved as:
# C:\temp\JavaJNI_2.1.8.20120612\JavaJNI\Simple Examples\hs_err_pid812.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#


any idea ?

Cheers.


Top
 Profile Send private message  
 
PostPosted: Thu Jun 14, 2012 9:44 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2351
Location: Canada
I haven't seen this error. Can you make sure to install the latest libraries - and also to download the latest phidget21.jar Java library.

Does the sensor work ok if you open it from the control panel?

-Patrick


Top
 Profile Send private message  
 
PostPosted: Fri Jun 15, 2012 2:34 am 
Offline
Fresh meat

Joined: Thu Jun 14, 2012 9:14 am
Posts: 3
Hello Patrick.

yes I installed all that fresh in the PC (Windows XP) from your website:
jdk 7
Phidgest 21 Installer
Your java code sample

Yes the T° sensors (1051, the old with big usb connector and the new with small usb connector) work both on the "Phidgets Control Panel"

Then:
- doing make to compile the java classes
- launch the sample for temperature sensor:
java -cp phidget21.jar:. TemperatureExample

then the krash (I did it again this morning just to be sure):



C:\temp\JavaJNI\Simple Examples>java -cp phidget21.jar;. TemperatureExample
Phidget21 - Version 2.1.8 - Built Jun 12 2012 15:08:57
waiting for TemperatureSensor attachment...
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (os_windows.cpp:475), pid=1552, tid=3876
# fatal error: DuplicateHandle failed

#
Serial: 81639
trigger: 0.1
Outputting events. Input to stop.# JRE version: 7.0_05-b05
# Java VM: Java HotSpot(TM) Client VM (23.1-b03 mixed mode, sharing windows-x86
)
# Failed to write core dump. Minidumps are not enabled by default on client vers
ions of Windows
#
# An error report file with more information is saved as:
# C:\temp\JavaJNI\Simple Examples\hs_err_pid1552.log

#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#

C:\temp\JavaJNI\Simple Examples>


Top
 Profile Send private message  
 
PostPosted: Fri Jun 15, 2012 12:57 pm 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2351
Location: Canada
Hi,

This is a bug that was introduced in the last library release - 2.1.8.20120612.

I'm releasing a fix now, it should be live in about an hour.

-Patrick


Top
 Profile Send private message  
 
PostPosted: Mon Jun 18, 2012 7:25 am 
Offline
Fresh meat

Joined: Thu Jun 14, 2012 9:14 am
Posts: 3
Hello Patrick
Yes, now the simple example: TemperatureExample.java works fine !
I can continue.
Thanks a lot.
Cheers
Laurent Brunel


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group