java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics')

Spring JIRA | Harley Jordan | 5 years ago
  1. 0

    When I attempt to save an object from {{org.apache.felix}}'s versions of {{org.osgi.service.event.Event}}, the stack trace below occurs. This appears to be due to the system attempting to save the topic field in Event as {{event.topics}}. If anyone could confirm this as a bug, or tell me what I am doing wrong that would be great. I am using the following dependency versions {noformat} <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.osgi.core</artifactId> <version>1.4.0</version> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <version>1.0.0.RELEASE</version> </dependency> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.osgi.compendium</artifactId> <version>1.4.0</version> </dependency> {noformat} {noformat} org.osgi.framework.BundleException: Exception in myproject.bundle.dbtest.Activator.start() of bundle myproject.bundle.dbtest.policy-db-test. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105) at java.lang.Thread.run(Thread.java:679) Caused by: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics') at com.mongodb.DBCollection.validateKey(DBCollection.java:1213) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1181) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1184) at com.mongodb.DBCollection._checkObject(DBCollection.java:1171) at com.mongodb.DBCollection.save(DBCollection.java:718) at com.mongodb.DBCollection.save(DBCollection.java:703) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) at myproject.bundle.db.PolicyDb.updatePolicy(PolicyDb.java:32) at myproject.bundle.dbtest.Activator.start(Activator.java:21) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) ... 14 more Nested Exception: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics') at com.mongodb.DBCollection.validateKey(DBCollection.java:1213) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1181) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1184) at com.mongodb.DBCollection._checkObject(DBCollection.java:1171) at com.mongodb.DBCollection.save(DBCollection.java:718) at com.mongodb.DBCollection.save(DBCollection.java:703) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) at myproject.bundle.db.PolicyDb.updatePolicy(PolicyDb.java:32) at myproject.bundle.dbtest.Activator.start(Activator.java:21) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105) at java.lang.Thread.run(Thread.java:679) Nested Exception: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics') at com.mongodb.DBCollection.validateKey(DBCollection.java:1213) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1181) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1184) at com.mongodb.DBCollection._checkObject(DBCollection.java:1171) at com.mongodb.DBCollection.save(DBCollection.java:718) at com.mongodb.DBCollection.save(DBCollection.java:703) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) at myproject.bundle.db.PolicyDb.updatePolicy(PolicyDb.java:32) at myproject.bundle.dbtest.Activator.start(Activator.java:21) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105) at java.lang.Thread.run(Thread.java:679) {noformat}

    Spring JIRA | 5 years ago | Harley Jordan
    java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics')
  2. 0

    When I attempt to save an object from {{org.apache.felix}}'s versions of {{org.osgi.service.event.Event}}, the stack trace below occurs. This appears to be due to the system attempting to save the topic field in Event as {{event.topics}}. If anyone could confirm this as a bug, or tell me what I am doing wrong that would be great. I am using the following dependency versions {noformat} <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.osgi.core</artifactId> <version>1.4.0</version> </dependency> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <version>1.0.0.RELEASE</version> </dependency> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.osgi.compendium</artifactId> <version>1.4.0</version> </dependency> {noformat} {noformat} org.osgi.framework.BundleException: Exception in myproject.bundle.dbtest.Activator.start() of bundle myproject.bundle.dbtest.policy-db-test. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105) at java.lang.Thread.run(Thread.java:679) Caused by: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics') at com.mongodb.DBCollection.validateKey(DBCollection.java:1213) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1181) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1184) at com.mongodb.DBCollection._checkObject(DBCollection.java:1171) at com.mongodb.DBCollection.save(DBCollection.java:718) at com.mongodb.DBCollection.save(DBCollection.java:703) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) at myproject.bundle.db.PolicyDb.updatePolicy(PolicyDb.java:32) at myproject.bundle.dbtest.Activator.start(Activator.java:21) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) ... 14 more Nested Exception: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics') at com.mongodb.DBCollection.validateKey(DBCollection.java:1213) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1181) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1184) at com.mongodb.DBCollection._checkObject(DBCollection.java:1171) at com.mongodb.DBCollection.save(DBCollection.java:718) at com.mongodb.DBCollection.save(DBCollection.java:703) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) at myproject.bundle.db.PolicyDb.updatePolicy(PolicyDb.java:32) at myproject.bundle.dbtest.Activator.start(Activator.java:21) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105) at java.lang.Thread.run(Thread.java:679) Nested Exception: java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics') at com.mongodb.DBCollection.validateKey(DBCollection.java:1213) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1181) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1184) at com.mongodb.DBCollection._checkObject(DBCollection.java:1171) at com.mongodb.DBCollection.save(DBCollection.java:718) at com.mongodb.DBCollection.save(DBCollection.java:703) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) at myproject.bundle.db.PolicyDb.updatePolicy(PolicyDb.java:32) at myproject.bundle.dbtest.Activator.start(Activator.java:21) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105) at java.lang.Thread.run(Thread.java:679) {noformat}

    Spring JIRA | 5 years ago | Harley Jordan
    java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'event.topics')
  3. 0

    I have to objects: {code} class Parent { @Id private String id; private Child child; Parent (String id) { this.id=id; } void setChild(Child c) { this.child = c; } } class Child{ @Id private String id; private String someValue; Child (String id) { this.id = id; } } {code} With the following code: {code} Child c = new Child ("abc.def"); Parent p = new Parent("parent"); p.setChild(c); mongoTemplate.save(p); {code} I have the following exception: {code} java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'abc.def') at com.mongodb.DBCollection.validateKey(DBCollection.java:1203) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1171) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) at com.mongodb.DBCollection._checkObject(DBCollection.java:1161) at com.mongodb.DBCollection.save(DBCollection.java:706) at com.mongodb.DBCollection.save(DBCollection.java:691) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) {code} What's happening is that it is consider the id field in my {{Child}} object as key and tries to validate it. But clearly this is not the case when I save it as part of my {{Parent}} object. I am using {{@Id}} in {{Child}} because I want to be have to save this object by itself as well.

    Spring JIRA | 5 years ago | Ryan Liu
    java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'abc.def')
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have to objects: {code} class Parent { @Id private String id; private Child child; Parent (String id) { this.id=id; } void setChild(Child c) { this.child = c; } } class Child{ @Id private String id; private String someValue; Child (String id) { this.id = id; } } {code} With the following code: {code} Child c = new Child ("abc.def"); Parent p = new Parent("parent"); p.setChild(c); mongoTemplate.save(p); {code} I have the following exception: {code} java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'abc.def') at com.mongodb.DBCollection.validateKey(DBCollection.java:1203) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1171) at com.mongodb.DBCollection._checkKeys(DBCollection.java:1174) at com.mongodb.DBCollection._checkObject(DBCollection.java:1161) at com.mongodb.DBCollection.save(DBCollection.java:706) at com.mongodb.DBCollection.save(DBCollection.java:691) at org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790) at org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368) at org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784) at org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707) at org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703) {code} What's happening is that it is consider the id field in my {{Child}} object as key and tries to validate it. But clearly this is not the case when I save it as part of my {{Parent}} object. I am using {{@Id}} in {{Child}} because I want to be have to save this object by itself as well.

    Spring JIRA | 5 years ago | Ryan Liu
    java.lang.IllegalArgumentException: fields stored in the db can't have . in them. (Bad Key: 'abc.def')
  6. 0

    MongoDb: fields stored in the db can't start with '$'

    GitHub | 4 years ago | tiagoboldt
    java.lang.IllegalArgumentException: fields stored in the db can't start with '$' (Bad Key: '$outer')

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      fields stored in the db can't have . in them. (Bad Key: 'event.topics')

      at com.mongodb.DBCollection.validateKey()
    2. MongoDB Java Driver
      DBCollection.save
      1. com.mongodb.DBCollection.validateKey(DBCollection.java:1213)
      2. com.mongodb.DBCollection._checkKeys(DBCollection.java:1181)
      3. com.mongodb.DBCollection._checkKeys(DBCollection.java:1184)
      4. com.mongodb.DBCollection._checkObject(DBCollection.java:1171)
      5. com.mongodb.DBCollection.save(DBCollection.java:718)
      6. com.mongodb.DBCollection.save(DBCollection.java:703)
      6 frames
    3. Spring Data MongoDB - Core
      MongoTemplate.save
      1. org.springframework.data.mongodb.core.MongoTemplate$11.doInCollection(MongoTemplate.java:790)
      2. org.springframework.data.mongodb.core.MongoTemplate.execute(MongoTemplate.java:368)
      3. org.springframework.data.mongodb.core.MongoTemplate.saveDBObject(MongoTemplate.java:784)
      4. org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:720)
      5. org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:707)
      6. org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:703)
      6 frames
    4. myproject.bundle.db
      PolicyDb.updatePolicy
      1. myproject.bundle.db.PolicyDb.updatePolicy(PolicyDb.java:32)
      1 frame
    5. myproject.bundle.dbtest
      Activator.start
      1. myproject.bundle.dbtest.Activator.start(Activator.java:21)
      1 frame
    6. Eclipse OSGi
      BundleContextImpl$1.run
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
      1 frame
    7. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    8. Eclipse OSGi
      FrameworkCommandProvider._start
      1. org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
      2. org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
      3. org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
      4. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
      5. org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
      6. org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252)
      6 frames
    9. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:616)
      4 frames
    10. Eclipse OSGi
      FrameworkConsole.run
      1. org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:155)
      2. org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:156)
      3. org.eclipse.osgi.framework.internal.core.FrameworkConsole.runConsole(FrameworkConsole.java:141)
      4. org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:105)
      4 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:679)
      1 frame