[jira] Closed: (POOL-147) Thread stuck in GenericObjectPool borrowObject()

2009-11-20 Thread Phil Steitz (JIRA)

 [ 
https://issues.apache.org/jira/browse/POOL-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phil Steitz closed POOL-147.



> Thread stuck in GenericObjectPool borrowObject()
> 
>
> Key: POOL-147
> URL: https://issues.apache.org/jira/browse/POOL-147
> Project: Commons Pool
>  Issue Type: Bug
>Affects Versions: 1.5.1
>Reporter: Giambattista Bloisi
>Priority: Minor
> Fix For: 1.5.2
>
> Attachments: 01-borrowObject.patch
>
>
> In my application I found a thread stuck at 
> GenericObjectPool.borrowObject(GenericObjectPool.java:1099) even though 
> resources were availbale (in my case connections for DBCP).
> After an analysis of the code I think I spotted what could have caused this 
> behavior.  GenericObjectPool.java:1099 line corresponds to an indefinite wait 
> to a "latch" object. This wait should be awaken when new resources are made 
> available to the pool. The problem is likely that borrowObject enters in wait 
> without performing "latch.getPair()" check in a critical section.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Closed: (POOL-152) GenericObjectPool hangs forever in borrowObject when newly created object is not validated

2009-11-20 Thread Phil Steitz (JIRA)

 [ 
https://issues.apache.org/jira/browse/POOL-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Phil Steitz closed POOL-152.



> GenericObjectPool hangs forever in borrowObject when newly created object is 
> not validated
> --
>
> Key: POOL-152
> URL: https://issues.apache.org/jira/browse/POOL-152
> Project: Commons Pool
>  Issue Type: Bug
>Affects Versions: 1.5.2, 1.5.3
>Reporter: Bushov Alexander
> Fix For: 1.5.4
>
> Attachments: borrowObject.patch, Test.java
>
>
> If your set GenericObjectPool parameters such as: maxActive = 1 and 
> whenExhaustedAction to block, testOnBorrow to true, call borrowObject that 
> fails in validation of newly created object then second call of borrowObject 
> will stuck.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (SCXML-113) Log not initialized in 2 of 4 AbstractStateMachine constructors.

2009-11-20 Thread Eric Gulatee (JIRA)
Log not initialized in 2 of 4 AbstractStateMachine constructors.


 Key: SCXML-113
 URL: https://issues.apache.org/jira/browse/SCXML-113
 Project: Commons SCXML
  Issue Type: Bug
Affects Versions: 0.9
Reporter: Eric Gulatee
Priority: Blocker


"Log" in AbstractStateMachine is NOT initialized if using either of these two 
constructors.

This causes a NPE if a failure occurs while initializing the state machine.

 /**
 * Convenience constructor.
 *
 * @param stateMachine The parsed SCXML instance that
 * describes the "lifecycle" of the
 * instances of this class.
 *
 * @since 0.7
 */
public AbstractStateMachine(final SCXML stateMachine) {
// default is JEXL
this(stateMachine, new JexlContext(), new JexlEvaluator());
}

/**
 * Primary constructor.
 *
 * @param stateMachine The parsed SCXML instance that
 * describes the "lifecycle" of the
 * instances of this class.
 * @param rootCtx The root context for this instance.
 * @param evaluator The expression evaluator for this instance.
 *
 * @see Context
 * @see Evaluator
 *
 * @since 0.7
 */
public AbstractStateMachine(final SCXML stateMachine,
final Context rootCtx, final Evaluator evaluator) {
initialize(stateMachine, rootCtx, evaluator);
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (SANSELAN-21) Fetching GPS Latitude Ref gets Interoperability Index instead of Reference

2009-11-20 Thread FG (JIRA)

[ 
https://issues.apache.org/jira/browse/SANSELAN-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780536#action_12780536
 ] 

FG commented on SANSELAN-21:


confirmed, using geo1.jpg:
IrfanView correctly extracts the GeoTags:
GPS Version ID: 2.2.0.0
GPS Latitude Ref: N
GPS Latitude: 47 49 2.29
GPS Longitude Ref: E
GPS Longitude: 11, 36, 40.114

while Sanselan produces the following output
GPS Version ID: Not Found.
GPS Latitude Ref: 'R98' <- should be N?
GPS Latitude: 48, 49, 48, 48<- should be 47 49 2.29?
GPS Longitude Ref: 'E'
GPS Longitude: 11, 36, 40114/1000 (40,114)

static void getLocation(File file) throws IOException, ImageReadException {
 IImageMetadata metadata = Sanselan.getMetadata(file);
 if (metadata instanceof JpegImageMetadata) {
 JpegImageMetadata jpegMetadata = (JpegImageMetadata) metadata;
 for (TagInfo ti : GPSTagConstants.ALL_GPS_TAGS) {
 TiffField field = jpegMetadata.findEXIFValue(ti);
 if (field != null) {
 System.out.println(ti.name + ": " + 
field.getValueDescription());
 }
 }
 }
 }

> Fetching GPS Latitude Ref gets Interoperability Index instead of Reference
> --
>
> Key: SANSELAN-21
> URL: https://issues.apache.org/jira/browse/SANSELAN-21
> Project: Commons Sanselan
>  Issue Type: Bug
>Affects Versions: 0.94-incubator
> Environment: Windows XP SP3, java version "1.5.0_17"
> apache-sanselan-incubating-0.97-bin.zip
>Reporter: Christian Junk
>Priority: Minor
> Attachments: geo1.jpg, R0013102.jpg
>
>
> When testing  the following example
> https://svn.apache.org/repos/asf/incubator/sanselan/trunk/src/test/java/org/apache/sanselan/sampleUsage/MetadataExample.java
> with apache-sanselan-incubating-0.97 it always stops working throwing a 
> ClassCastException. It seems, that the line 
> TiffField gpsLatitudeRefField = jpegMetadata
>   
> .findEXIFValue(TiffConstants.GPS_TAG_GPS_LATITUDE_REF);
> returns the Interoperability Index (R98) instead of the GPS Latitude Ref.
> XResolution: 72
> Date Time: '2008:07:23 18:19:58'
> Date Time Original: '2008:07:23 10:05:21'
> Create Date: '2008:07:23 10:05:21'
> ISO: 64
> Shutter Speed Value: Not Found.
> Aperture Value: 6
> Brightness Value: 81/10 (8,1)
> GPS Latitude Ref: 'R98'  
> < !!!
> GPS Latitude: 48, 49, 48, 48
> GPS Longitude Ref: 'E'
> GPS Longitude: 6, 38, 2061/100 (20,61)
> GPS Description: [GPS. Latitude: 49 degrees, 45 minutes, 34,18 seconds N, 
> Longitude: 6 degrees, 38 minutes, 20,61 seconds E]
>   
> Exception in thread "main" java.lang.ClassCastException: [B
> at com.alta4.phasr.MetadataExample.metadataExample(MetadataExample.java:113)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (SANSELAN-21) Fetching GPS Latitude Ref gets Interoperability Index instead of Reference

2009-11-20 Thread FG (JIRA)

 [ 
https://issues.apache.org/jira/browse/SANSELAN-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

FG updated SANSELAN-21:
---

Attachment: geo1.jpg

file to demonstrate geotag error

> Fetching GPS Latitude Ref gets Interoperability Index instead of Reference
> --
>
> Key: SANSELAN-21
> URL: https://issues.apache.org/jira/browse/SANSELAN-21
> Project: Commons Sanselan
>  Issue Type: Bug
>Affects Versions: 0.94-incubator
> Environment: Windows XP SP3, java version "1.5.0_17"
> apache-sanselan-incubating-0.97-bin.zip
>Reporter: Christian Junk
>Priority: Minor
> Attachments: geo1.jpg, R0013102.jpg
>
>
> When testing  the following example
> https://svn.apache.org/repos/asf/incubator/sanselan/trunk/src/test/java/org/apache/sanselan/sampleUsage/MetadataExample.java
> with apache-sanselan-incubating-0.97 it always stops working throwing a 
> ClassCastException. It seems, that the line 
> TiffField gpsLatitudeRefField = jpegMetadata
>   
> .findEXIFValue(TiffConstants.GPS_TAG_GPS_LATITUDE_REF);
> returns the Interoperability Index (R98) instead of the GPS Latitude Ref.
> XResolution: 72
> Date Time: '2008:07:23 18:19:58'
> Date Time Original: '2008:07:23 10:05:21'
> Create Date: '2008:07:23 10:05:21'
> ISO: 64
> Shutter Speed Value: Not Found.
> Aperture Value: 6
> Brightness Value: 81/10 (8,1)
> GPS Latitude Ref: 'R98'  
> < !!!
> GPS Latitude: 48, 49, 48, 48
> GPS Longitude Ref: 'E'
> GPS Longitude: 6, 38, 2061/100 (20,61)
> GPS Description: [GPS. Latitude: 49 degrees, 45 minutes, 34,18 seconds N, 
> Longitude: 6 degrees, 38 minutes, 20,61 seconds E]
>   
> Exception in thread "main" java.lang.ClassCastException: [B
> at com.alta4.phasr.MetadataExample.metadataExample(MetadataExample.java:113)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.