Dears,
I just updated Stanbol a few hours ago (r1307905), and found a strange
error: the Refactor is failing with the
exception "IllegalArgumentException: The literal string cannot be null" [1].
After some investigation I found that the null parameter is
"recipeDescription" in method *createRecipe* of class *
rules.manager.ClerezzaRuleStore*.
The "recipeDescription" parameter is received by the caller:
*public Recipe createRecipe(UriRef recipeID, String recipeDescription)
throws AlreadyExistingRecipeException // ClerezzaRuleStore.java:~188*
The caller is "RefactorEnhancementEngine", the null parameter is passed
directly from code:
*recipe = ruleStore.createRecipe(new UriRef(recipeId), null); // *
RefactorEnhancementEngine.java:511
[1] exception:
31.03.2012 22:23:31.758 *ERROR* [CM Event Dispatcher (Fire
ConfigurationEvent:
pid=org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine)]
org.apache.stanbol.enhancer.engines.refactor
[org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine]
The activate method has thrown an exception
(java.lang.IllegalArgumentException: The literal string cannot be null)
java.lang.IllegalArgumentException: The literal string cannot be null
at
org.apache.clerezza.rdf.core.impl.PlainLiteralImpl.<init>(PlainLiteralImpl.java:35)
at
org.apache.stanbol.rules.manager.ClerezzaRuleStore.createRecipe(ClerezzaRuleStore.java:196)
at
org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.initEngine(RefactorEnhancementEngine.java:511)
at
org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine.activate(RefactorEnhancementEngine.java:209)
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.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
at
org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
at
org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
at
org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
at
org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
at
org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
at
org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
at
org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
at
org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
at
org.apache.felix.scr.impl.manager.ImmediateComponentManager.reconfigure(ImmediateComponentManager.java:427)
at
org.apache.felix.scr.impl.config.ConfiguredComponentHolder.configurationUpdated(ConfiguredComponentHolder.java:201)
at
org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.configurationEvent(ConfigurationComponentRegistry.java:277)
at
org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:1832)
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104)
at java.lang.Thread.run(Thread.java:662)
--
David Riccitelli
********************************************************************************
InsideOut10 s.r.l.
P.IVA: IT-11381771002
Fax: +39 0110708239
---
LinkedIn: http://it.linkedin.com/in/riccitelli
Twitter: ziodave
---
Layar Partner
Network<http://www.layar.com/publishing/developers/list/?page=1&country=&city=&keyword=insideout10&lpn=1>
********************************************************************************