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
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:
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
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
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
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()
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