Re: NullPointerException MultiPoolConnectionInterceptor$SubjectCRIKey.equals

2009-05-21 Thread Bert_nor
Thanks David, I saw new code. Early, I wrote code from javap applied to old code. I am mistaken, this is not a compiler bug. djencks wrote: > > I'm a little confused. What code did you apply javap to? I dont > think I pushed a copy of the newly revised code to any repos so you'd > have

Re: NullPointerException MultiPoolConnectionInterceptor$SubjectCRIKey.equals

2009-05-21 Thread Bert_nor
I think this is a compiler bug. javap gives next code: ... 26: getfield#2; //Field subject:Ljavax/security/auth/Subject; 29: ifnonnull 42 32: aload_2 33: getfield#2; //Field subject:Ljavax/security/auth/Subject; 36: ifnonnull 91 39: goto87 42:

NullPointerException MultiPoolConnectionInterceptor$SubjectCRIKey.equals

2009-05-20 Thread Bert_nor
java.lang.NullPointerException at org.apache.geronimo.connector.outbound.MultiPoolConnectionInterceptor$SubjectCRIKey.equals(MultiPoolConnectionInterceptor.java:193) source: return hashcode == o.hashcode && (subject == null ? o.subject == null : subject.equals(o.subjec

Re: Error at getting datasource from connector(container-managed-security)

2007-05-02 Thread Bert_nor
Thanks for advice. djencks wrote: > > Probably this is a bug, although I'm surprised we haven't seen it > before. > > Can you please outline your scenario a bit more? > > - is this work done from a secured part of your application, so there > is a subject available? > - do you want databa

Error at getting datasource from connector(container-managed-security)

2007-04-27 Thread Bert_nor
The Subject in org.tranql.connector.CredentialExtractor.matches(...) is not null, but not contain private credential javax.resource.spi.security.PasswordCredential for extract username and password. Stack trace: <0.9.7-incubating-SNAPSHOT nonfatal general error> org.apache.openjpa.persistence.Per

Openejb: This principle is not authorized

2007-04-13 Thread Bert_nor
Standalone application login.config: dw_realm { org.apache.geronimo.security.jaas.client.JaasLoginCoordinator required host="localhost" port="4242" realm="dw_realm"; }; LoginContext context = new LoginContext("dw_realm",...); context.login(); Properties props = new Properties()

Connector(container-managed-security) in LoginModule

2007-04-10 Thread Bert_nor
Whether it is possible to use connector(container-managed-security) in the LoginModule In DWLoginModule.login(...) . DataSource ds = (DataSource) factory.getConnectionFactory(); try { conn = ds.getConnection(cbUsername, cbPassword); --> java.lang.No