Alex,
I am such a fool :-) Your email came in just as I was about to post that
I had the schema disabled in the pom..<knocks head>
It went a lot further now, but it's complaining that the 'c' attribute
is not declared..isn't this a core schema attribute??
Attribute c not declared in objectClasses of entry
cn=imavroukakis,ou=Player,dc=gameaccount,dc=com]; remaining name
'cn=imavroukakis'
Thanks!
Y.
Alex Karasulu wrote:
Is your gameaccount schema enabled? Just check if there's a m-disabled
attribute set to TRUE. You can just remove that attribute or set it to
false.
Alex
On Wed, Feb 11, 2009 at 10:44 AM, Yiannis Mavroukakis <
[email protected]> wrote:
Hi everyone!
I've managed to embed ApacheDS into our JBoss app server, it lanuches fine
and waits for connections. The problem I have now is that when I try to add
a user to
our context it blows up. Before it does that though, I have the following
lines in our log:
15:36:16,919 WARN [DefaultServerEntry] The attribute 'gaplayertokenid'
cannot be stored
15:36:16,919 WARN [DefaultServerEntry] The attribute 'gaplayerid' cannot
be stored
15:36:16,919 WARN [DefaultServerEntry] The attribute 'gabasecurrency'
cannot be stored
15:36:16,935 WARN [DefaultServerEntry] The attribute 'gapartnerref' cannot
be stored
15:36:16,935 WARN [DefaultServerEntry] The attribute 'gacomment' cannot be
stored
15:36:16,935 WARN [DefaultServerEntry] The attribute 'gasessionwebkey'
cannot be stored
15:36:16,935 WARN [DefaultServerEntry] The attribute 'gapartnerwebkey'
cannot be stored
15:36:16,935 WARN [DefaultServerEntry] The attribute 'gaplayerguid' cannot
be stored
And the main exception is:
javax.naming.NamingException: [LDAP: error code 54 - LOOP_DETECT: failed
for Add Request :
ClientEntry
dn: cn=imavroukakis,ou=Player,dc=gameaccount,dc=com
objectClass: top
objectClass: gaPlayer
postalCode: E12345
mail: [email protected]
sn: orvaMsikaku
ou: Player
c: GR
givenname: aoIsinn
o: gameaccount
gaPlayerTokenId: AB9C2965-8A84-40B5-B14B-0E0E991A001E
l: London
gaPlayerId: 482101
userPassword: ''
postalAddress: 43 Somewhare Point, 1 Some Place
gaBaseCurrency: GBP
cn: imavroukakis
gaPartnerRef: 192489DA
st: N/A
gaComment: partner 192489DA playerId 482101
gaSessionWebKey: gameAccount
gaPartnerWebKey: gameAccount
gaPlayerGuid: 6352FC09-1EDC-4043-AD29-F0CD74055587
: objectClass w/ OID 1.3.6.1.4.1.99999.1.2.1 not registered!]; remaining
name 'cn=imavroukakis'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3022)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:774)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
at com.ga.ldap.Ldap.updatePlayer(Ldap.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy166.updatePlayer(Unknown Source)
at com.ga.ldap.LdapUpdater.processMessage(LdapUpdater.java:71)
at com.ga.ldap.LdapUpdater.consumeMessage(LdapUpdater.java:58)
at
com.ga.messaging.core.consumer.ThreadPoolConsumerImpl.consumeMessage$0(ThreadPoolConsumerImpl.java:37)
at
com.ga.messaging.core.consumer.ThreadPoolConsumerImpl.access$000(ThreadPoolConsumerImpl.java:24)
at
com.ga.messaging.core.consumer.ThreadPoolConsumerImpl$0r.run(ThreadPoolConsumerImpl.java:39)
at
uk.org.retep.util.thread.ExecutorFactory$RunnableWrapper.run(ExecutorFactory.java:203)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
However if i browse to the ldap schema is that 1.3.6.1.4.1.99999.1.2.1 is
there..
dn: m-oid=1.3.6.1.4.1.99999.1.2.1,ou=objectClasses,cn=gameaccount,ou=schema
objectClass: metaObjectClass
objectClass: metaTop
objectClass: top
m-oid: 1.3.6.1.4.1.99999.1.2.1
m-description: LDAP representation of a player
m-must: cn
m-must: gaBaseCurrency
m-must: gaPartnerRef
m-must: gaPartnerWebKey
m-must: gaPlayerGuid
m-must: gaPlayerId
m-must: gaPlayerTokenId
m-must: gaSessionWebKey
m-name: gaPlayer
m-obsolete: FALSE
m-supObjectClass: inetOrgPerson
m-typeObjectClass: STRUCTURAL
Thank you very much for your continued help :-)
Yiannis