Menu

#60 Invalid Variable Name in try/catch processor

open
nobody
None
1
2013-02-07
2013-02-07
christian
No

org.webharvest.exception.VariableException: Invalid variable name '_error'
at org.webharvest.runtime.variables.VariableName.<init>(VariableName.java:32)
at org.webharvest.runtime.ScraperContext.setLocalVar(ScraperContext.java:109)
at org.webharvest.runtime.processors.TryProcessor$1.call(TryProcessor.java:88)
at org.webharvest.runtime.processors.TryProcessor$1.call(TryProcessor.java:1)
at org.webharvest.runtime.ScraperContext.executeWithinNewContext(ScraperContext.java:164)
at org.webharvest.runtime.processors.TryProcessor.execute(TryProcessor.java:85)
at org.webharvest.runtime.processors.AbstractProcessor.run(AbstractProcessor.java:112)
at org.webharvest.runtime.processors.RunningStatusController.run(RunningStatusController.java:60)
at org.webharvest.runtime.processors.StoppedOrExitedProcessor.run(StoppedOrExitedProcessor.java:60)
at org.webharvest.runtime.processors.ConfigProcessor.execute(ConfigProcessor.java:45)
at org.webharvest.runtime.processors.AbstractProcessor.run(AbstractProcessor.java:112)
at org.webharvest.runtime.processors.RunningStatusController.run(RunningStatusController.java:60)
at org.webharvest.runtime.processors.StoppedOrExitedProcessor.run(StoppedOrExitedProcessor.java:60)
at org.webharvest.runtime.Scraper.execute(Scraper.java:72)
at org.webharvest.runtime.ExceptionHandlingScraperWrapper.execute(ExceptionHandlingScraperWrapper.java:56)
at org.webharvest.runtime.ScrapingHarvester.execute(ScrapingHarvester.java:116)
at org.webharvest.runtime.ScrapingHarvester$$EnhancerByGuice$$c4c76af8.CGLIB$execute$0(<generated>)
at org.webharvest.runtime.ScrapingHarvester$$EnhancerByGuice$$c4c76af8$$FastClassByGuice$$d38b8d04.invoke(<generated>)
at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
at org.webharvest.ioc.ScrapingInterceptor$1.execute(ScrapingInterceptor.java:84)
at org.webharvest.ioc.ScrapingInterceptor.invoke(ScrapingInterceptor.java:105)
at org.webharvest.ioc.ScrapingInterceptor.invoke(ScrapingInterceptor.java:79)
at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
at org.webharvest.runtime.ScrapingHarvester$$EnhancerByGuice$$c4c76af8.execute(<generated>)
at org.webharvest.gui.ScraperExecutionThread.run(ScraperExecutionThread.java:61)

I have renamed the variable in TryProcessor.java
context.setLocalVar("stacktrace", CommonUtil.createVariable(e));

Discussion


Log in to post a comment.