Hallo,
wir sind momentan dabei eine Delta-Generierung einzurichten. Für normale Inhaltsseiten funktioniert die Delta-Generirung wunderbar, sobald aber ein Datensatz aus einer Datenquelle geändert wird und dann das folgende Script ausgeführt wird, kommt es zu einem Fehler. Anbei das Script und der Fehler ->
Das Script sieht wie folgt aus:
------------------------------------------------------------
import de.espirit.firstspirit.access.schedule.*;
deltaGeneration = DeploymentUtil.createDeltaGeneration(context);
DeltaGeneration.ChangeSet changeSet = deltaGeneration.calculateChangeSet();
changeSet.configureGenerateTask();
context.logInfo("***** isFullGenerate: " + changeSet.isFullGenerate());
------------------------------------------------------------
Der Fehler sieht wie folgt aus ->
ERROR 17.05.2016 11:13:24.440{dNR=} (de.espirit.firstspirit.server.scheduler.ScriptTaskExecutor): error during script execution : de.espirit.firstspirit.access.script.ExecutionException: Typed variable declaration : Method Invocation deltaGeneration.calculateChangeSet : at Line: 4 : in file: inline evaluation of: ``__execute() { import de.espirit.firstspirit.access.schedule.*; deltaGeneration . . . '' : deltaGeneration .calculateChangeSet ( )
Called from method: __execute
Target exception: java.lang.IllegalArgumentException: invalid type de.espirit.firstspirit.store.access.pagestore.PageStoreRootImpl
at line 4
de.espirit.firstspirit.access.script.ExecutionException: Typed variable declaration : Method Invocation deltaGeneration.calculateChangeSet : at Line: 4 : in file: inline evaluation of: ``__execute() { import de.espirit.firstspirit.access.schedule.*; deltaGeneration . . . '' : deltaGeneration .calculateChangeSet ( )
Called from method: __execute
Target exception: java.lang.IllegalArgumentException: invalid type de.espirit.firstspirit.store.access.pagestore.PageStoreRootImpl
at line 4
at de.espirit.firstspirit.server.script.BeanshellScriptEngine$BeanshellExecutable.execute(BeanshellScriptEngine.java:109)
at de.espirit.firstspirit.common.ScriptUtil.execute(ScriptUtil.java:106)
at de.espirit.firstspirit.server.scheduler.ScriptTaskExecutor.run(ScriptTaskExecutor.java:134)
at de.espirit.firstspirit.server.scheduler.ScheduleManagerImpl$TaskCallable.executeLocal(ScheduleManagerImpl.java:2258)
at de.espirit.firstspirit.server.scheduler.ScheduleManagerImpl$TaskCallable.executeLocal(ScheduleManagerImpl.java:2241)
at de.espirit.firstspirit.server.scheduler.ScheduleManagerImpl$TaskCallable.call(ScheduleManagerImpl.java:2164)
at de.espirit.firstspirit.server.ExecutionManagerImpl$ExtendedCallable.call(ExecutionManagerImpl.java:600)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at de.espirit.common.util.BoundedExecutorService$RunnableWrapper.run(BoundedExecutorService.java:436)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at de.espirit.common.util.SuspendableThread.run(SuspendableThread.java:55)
Caused by: java.lang.IllegalArgumentException: invalid type de.espirit.firstspirit.store.access.pagestore.PageStoreRootImpl
at de.espirit.firstspirit.access.schedule.ChangeSetCalculator.getPage(ChangeSetCalculator.java:498)
at de.espirit.firstspirit.access.schedule.ChangeSetCalculator.applyDependencyRulsForEntities(ChangeSetCalculator.java:368)
at de.espirit.firstspirit.access.schedule.ChangeSetCalculator.applyDependencyRules(ChangeSetCalculator.java:323)
at de.espirit.firstspirit.access.schedule.ChangeSetCalculator.calculateChangeSet(ChangeSetCalculator.java:155)
at de.espirit.firstspirit.access.schedule.DeltaGenerationImpl.calculateChangeSet(DeltaGenerationImpl.java:148)
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:606)
at bsh.Reflect.invokeMethod(Reflect.java:166)
at bsh.Reflect.invokeObjectMethod(Reflect.java:99)
at bsh.Name.invokeMethod(Name.java:858)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHVariableDeclarator.eval(BSHVariableDeclarator.java:86)
at bsh.BSHTypedVariableDeclaration.eval(BSHTypedVariableDeclaration.java:84)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:371)
at bsh.BshMethod.invoke(BshMethod.java:267)
at bsh.BshMethod.invoke(BshMethod.java:170)
at bsh.PreparsedScript.invoke(PreparsedScript.java:66)
at de.espirit.firstspirit.server.script.BeanshellScriptEngine$BeanshellExecutable.execute(BeanshellScriptEngine.java:100)
... 14 more
Ist die Delta-Generierung für eine Contentprojektion nicht gedacht oder haben wir ggf. etwas vergessen? VIelen Dank