[
https://issues.apache.org/jira/browse/DIRAPI-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15018066#comment-15018066
]
Emmanuel Lecharny commented on DIRAPI-263:
------------------------------------------
This is clearly not a problem in the API itself, but a pb in
{{org.openldap.accelerator.impl.createSession.RbacCreateSessionResponseContainer}}
which is not an Apache class.
It's easy to fix though : the {{grammar}} field is now private, one should use
the {{getGrammar()}} method instead.
This change was introduced in http://svn.apache.org/r1679571, so between
1.0.0-M31 and 1.0.0-M32, which explains why you have this issue.
Sorry for the side effect :/
> Problem RbacCreateSessionResponseContainer java.lang.IllegalAccessError:
> tried to access field with OpenLDAP Accelerator Client
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: DIRAPI-263
> URL: https://issues.apache.org/jira/browse/DIRAPI-263
> Project: Directory Client API
> Issue Type: Bug
> Affects Versions: 1.0.0-M31, 1.0.0-M32
> Reporter: Shawn McKinney
>
> Beginning with 1.0.0-M31 release we see the exception below when trying to
> call the openldap fortress accelerator client's createSession operation.
> This problem goes away when I revert to 1.0.0-M30. I have a working env up
> that can demonstrate this condition and will leave it until we get this
> resolved.
> 2015-11-20 05:47:050 WARN LdapNetworkConnection:1895 - tried to access field
> org.apache.directory.api.asn1.ber.AbstractContainer.grammar from class
> org.openldap.accelerator.impl.createSession.RbacCreateSessionResponseContainer
> java.lang.IllegalAccessError: tried to access field
> org.apache.directory.api.asn1.ber.AbstractContainer.grammar from class
> org.openldap.accelerator.impl.createSession.RbacCreateSessionResponseContainer
> at
> org.openldap.accelerator.impl.createSession.RbacCreateSessionResponseContainer.<init>(RbacCreateSessionResponseContainer.java:37)
> at
> org.openldap.accelerator.impl.createSession.RbacCreateSessionResponseDecoder.decode(RbacCreateSessionResponseDecoder.java:48)
> at
> org.openldap.accelerator.impl.createSession.RbacCreateSessionResponseDecorator.setResponseValue(RbacCreateSessionResponseDecorator.java:102)
> at
> org.apache.directory.api.ldap.codec.actions.extendedResponse.StoreExtendedResponseValue.action(StoreExtendedResponseValue.java:79)
> at
> org.apache.directory.api.ldap.codec.actions.extendedResponse.StoreExtendedResponseValue.action(StoreExtendedResponseValue.java:42)
> at
> org.apache.directory.api.asn1.ber.grammar.AbstractGrammar.executeAction(AbstractGrammar.java:136)
> at
> org.apache.directory.api.asn1.ber.Asn1Decoder.treatTLVDoneState(Asn1Decoder.java:600)
> at
> org.apache.directory.api.asn1.ber.Asn1Decoder.decode(Asn1Decoder.java:736)
> at
> org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:145)
> at
> org.apache.directory.api.ldap.codec.protocol.mina.LdapProtocolDecoder.decode(LdapProtocolDecoder.java:94)
> at
> org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:233)
> at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
> at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48)
> at
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943)
> at
> org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:109)
> at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542)
> at
> org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:535)
> at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:714)
> at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
> at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
> at
> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
> at
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
> at
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)