geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Unable to obtain physical connection to DB2XA
Date Tue, 12 Feb 2008 20:57:24 GMT
I've deployed snapshots of the latest tranql db2 wrappers at

http://snapshots.repository.codehaus.org/org/tranql/tranql-connector- 
db2-local/1.2-SNAPSHOT/tranql-connector-db2- 
local-1.2-20080212.204755-1.rar
and
http://snapshots.repository.codehaus.org/org/tranql/tranql-connector- 
db2-xa/1.2-SNAPSHOT/tranql-connector-db2-xa-1.2-20080212.204755-1.rar

Could you try whichever of these is appropriate and see if it works?   
I don't have db2 available and it would be great to get the code  
tested before I release it.

thanks
david jencks

On Feb 12, 2008, at 6:20 AM, Łukasz Budnik wrote:

> I see now:
>
> http://issues.apache.org/jira/browse/GERONIMO-3440
>
> It's a bug and still is open. Fix Version is 2.1.1.
>
> so I'm waiting for the official release of new G.
>
> best regards
> Łukasz
>
> On 12/02/2008, Łukasz Budnik <lukasz.budnik@gmail.com> wrote:
>> Hi All!
>>
>> There are many IBM employees among commiters, so I hope they can help
>> with this problem ;)
>>
>> I'm migrating from G2.0.0 to G2.0.2.
>>
>> As a data source I'm using DB2 v9.
>> Data source is deployed as application-scope.
>>
>> In Geronimo 2.0.0 I was using JDBC API, in Geronimo 2.0.2 I'm  
>> using JPA.
>>
>> Everything looks good: application is deployed, application-scoped
>> pool is created, entity manager is injected:
>>
>> @PostConstruct
>> void initialize() {
>>         System.out.println("Injected? " + (em != null));
>> }
>>
>> displays:
>>
>> Injected? true
>>
>> But when running application I get:
>>
>> 13:43:36,109 ERROR [MCFConnectionInterceptor] Error occurred creating
>> ManagedConnection for
>> org.apache.geronimo.connector.outbound.ConnectionInfo@16622e1
>> javax.resource.spi.ResourceAdapterInternalException: Unable to obtain
>> physical connection to com.ibm.db2.jcc.DB2XADataSource@34a988
>>         at  
>> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnecti 
>> on(AbstractXADataSourceMCF.java:76)
>>         at org.tranql.connector.db2.XAMCF.createManagedConnection 
>> (XAMCF.java:59)
>>         at  
>> org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getCo 
>> nnection(MCFConnectionInterceptor.java:48)
>>         at  
>> org.apache.geronimo.connector.outbound.LocalXAResourceInsertionInterc 
>> eptor.getConnection(LocalXAResourceInsertionInterceptor.java:41)
>>         at  
>> org.apache.geronimo.connector.outbound.SinglePoolConnectionIntercepto 
>> r.internalGetConnection(SinglePoolConnectionInterceptor.java:67)
>>         at  
>> org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionIn 
>> terceptor.getConnection 
>> (AbstractSinglePoolConnectionInterceptor.java:78)
>>         at  
>> org.apache.geronimo.connector.outbound.TransactionEnlistingIntercepto 
>> r.getConnection(TransactionEnlistingInterceptor.java:46)
>>         at  
>> org.apache.geronimo.connector.outbound.TransactionCachingInterceptor. 
>> getConnection(TransactionCachingInterceptor.java:88)
>>         at  
>> org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.ge 
>> tConnection(ConnectionHandleInterceptor.java:43)
>>         at  
>> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection( 
>> TCCLInterceptor.java:39)
>>         at  
>> org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor. 
>> getConnection(ConnectionTrackingInterceptor.java:66)
>>         at  
>> org.apache.geronimo.connector.outbound.AbstractConnectionManager.allo 
>> cateConnection(AbstractConnectionManager.java:87)
>>         at org.tranql.connector.jdbc.DataSource.getConnection 
>> (DataSource.java:56)
>>         at  
>> org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection 
>> (DelegatingDataSource.java:106)
>>
>> ...
>> ...
>> some more lines
>> ...
>> ...
>>
>>         at  
>> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnecti 
>> on(AbstractXADataSourceMCF.java:74)
>>         ... 105 more
>>
>> 13:43:36,156 ERROR [OpenEJB] The bean instances business method
>> encountered a system exception: [ibm][db2][jcc][10257][10960] Nie
>> można otworzyć pliku .
>> <openjpa-1.0.0-r420667:568756 fatal general error>
>> org.apache.openjpa.persistence.PersistenceException:
>> [ibm][db2][jcc][10257][10960] Nie można otworzyć pliku .
>>         at  
>> org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary 
>> (DBDictionaryFactory.java:101)
>>         at  
>> org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryIns 
>> tance(JDBCConfigurationImpl.java:569)
>>         at  
>> org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration 
>> (MappingRepository.java:1221)
>>         at  
>> org.apache.openjpa.lib.conf.Configurations.configureInstance 
>> (Configurations.java:467)
>>
>>
>> It uses Polish locale, but the message: "Nie można otworzyć  
>> pliku ." says:
>> "Cannot open file ."
>>
>> Which file?
>>
>> There has to be some kind of error. But where Tranql? Geronimo?  
>> OpenJPA? ;)
>>
>> any ideas?
>>
>> best regards
>> Łukasz
>>


Mime
View raw message