Hi!
I'm reviewing the contributions from Malte (thanks again!) and want to
merge them with my code but I'm unable to make it work. The error is always
here [1] and causes this backtrace:
> dms.createTopic(new TopicModel(FFN_COMMUNITY_TYPE, communityModel));
SEVERE: Handling PLUGIN_ACTIVATED event from "de.deepamehta.webbrowser" for
plugin "Freifunk API Data" failed
java.lang.RuntimeException: Activation of plugin "Freifunk API Data" failed
at de.deepamehta.core.impl.PluginImpl.activate(PluginImpl.java:483)
at
de.deepamehta.core.impl.PluginManager.activatePlugin(PluginManager.java:64)
at
de.deepamehta.core.impl.PluginImpl.checkRequirementsForActivation(PluginImpl.java:449)
at
de.deepamehta.core.impl.PluginImpl.handleEvent(PluginImpl.java:882)
at
org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:87)
at
org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks$1.run(SyncDeliverTasks.java:238)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Creating topic failed (topic (id=-1,
uri="", typeUri="net.freifunk.community", value="",
composite={net.freifunk.community.api_mtime=topic (id=-1, uri="null",
typeUri="net.freifunk.community.api_mtime", value="2014-09-12
18:01:01.980570", composite={}), net.freifunk.community.name=topic (id=-1,
uri="null", typeUri="net.freifunk.community.name", value="Freifunk Mainz
e.V.", composite={}), dm4.webbrowser.url=topic (id=-1, uri="null",
typeUri="dm4.webbrowser.url", value="http://www.freifunk-mainz.de",
composite={})}))
at
de.deepamehta.core.impl.EmbeddedService.createTopic(EmbeddedService.java:155)
at
net.freifunk.api.dm4.ImportPlugin.processSummarizedAPIDirectory(ImportPlugin.java:130)
at net.freifunk.api.dm4.ImportPlugin.init(ImportPlugin.java:64)
at
de.deepamehta.core.impl.PluginImpl.initializePlugin(PluginImpl.java:592)
at de.deepamehta.core.impl.PluginImpl.activate(PluginImpl.java:471)
... 7 more
Caused by: org.neo4j.graphdb.NotInTransactionException
at
org.neo4j.kernel.impl.persistence.PersistenceManager.getResource(PersistenceManager.java:252)
at
org.neo4j.kernel.impl.persistence.PersistenceManager.nodeCreate(PersistenceManager.java:155)
at
org.neo4j.kernel.impl.core.NodeManager.createNode(NodeManager.java:195)
at
org.neo4j.kernel.InternalAbstractGraphDatabase.createNode(InternalAbstractGraphDatabase.java:850)
at
de.deepamehta.storage.neo4j.Neo4jStorage.storeTopic(Neo4jStorage.java:159)
at
de.deepamehta.core.impl.StorageDecorator.storeTopic(StorageDecorator.java:99)
at
de.deepamehta.core.impl.EmbeddedService.topicFactory(EmbeddedService.java:674)
at de.deepamehta.core.imp
I can't find any obvious problems with the code and also tests with
different and empty TopicModels fail.
I'm using the current git-Version[2] - So it's better to use the stable
(4.3) Version? Or did I overlook something?
Thanks!
regards
Martin
1:
https://github.com/freifunk/query.api.freifunk.net/blob/master/dm4-freifunk-api/src/main/java/net/freifunk/api/dm4/ImportPlugin.java#L126
2:
https://github.com/freifunk/query.api.freifunk.net/blob/master/dm4-freifunk-api/pom.xml
--
devel mailing list
[email protected]
http://lists.deepamehta.de/mailman/listinfo/devel-lists.deepamehta.de