Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug logging causing exception when mapping an entity class [moved] #328

Closed
jyemin opened this issue Apr 25, 2013 · 1 comment
Closed

Comments

@jyemin
Copy link
Contributor

jyemin commented Apr 25, 2013

This is Issue 328 moved from a Google Code project.
Added by 2011-10-10T02:19:40.000Z by baker.st...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Low

Original description

I am experiencing problems with my application when it is running in one of my test environments only.
I found the only difference is that debugging logs are enabled there.

If I remove line 112 and 113 from MappedClass.java the problem goes away.
Lines 112 and 113 are currently as follows:

if (log.isDebugEnabled())
    log.debug("MappedClass done: " + toString());

What version are you using? (Morphia/Driver/MongoDB)
Using latest code checked out from SVN.
Also fails with 0.99 and the downloadable 1.00-SNAPSHOT.

Please include a stack trace below:

FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: can't parse argument number: interface com.google.code.morphia.annotations.Id=@com.google.code.morphia.annotations.Id():
java.lang.IllegalArgumentException: can't parse argument number: interface com.google.code.morphia.annotations.Id=@com.google.code.morphia.annotations.Id()
    at java.text.MessageFormat.makeFormat(MessageFormat.java:1356)
    at java.text.MessageFormat.applyPattern(MessageFormat.java:475)
    at java.text.MessageFormat.<init>(MessageFormat.java:367)
    at java.text.MessageFormat.format(MessageFormat.java:828)
    at org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:233)
    at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:191)
    at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:267)
    at java.util.logging.Logger.log(Logger.java:498)
    at java.util.logging.Logger.doLog(Logger.java:520)
    at java.util.logging.Logger.logp(Logger.java:689)
    at com.google.code.morphia.logging.jdk.JDKLogger.log(JDKLogger.java:107)
    at com.google.code.morphia.logging.jdk.JDKLogger.debug(JDKLogger.java:38)
    at com.google.code.morphia.mapping.MappedClass.<init>(MappedClass.java:113)
    at com.google.code.morphia.mapping.Mapper.addMappedClass(Mapper.java:141)
    at com.google.code.morphia.Morphia.map(Morphia.java:55)
    at com.google.code.morphia.Morphia$map.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at com.bakersoftware.providerIntegrator.domain.DbFactoryBean.getObject(DbFactoryBean.groovy:22)
@evanchooly
Copy link
Member

answer provided on googlecode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants