[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
www.ephesoft.com/forums • View topic - couldn't invoke 'generateConfidenceScore'

couldn't invoke 'generateConfidenceScore'

General discussion about the Ephesoft architecture at a high-level

couldn't invoke 'generateConfidenceScore'

Postby soliveira » Thu Oct 07, 2010 4:00 pm

Hello,

I had some issues with tesseractconsole but I has promptly helped by Ike, and the problem was solved.
Now I have configured the Document Assembler plugin to 'BarcodeClassification' and to 'SearchClassification' but the process always ends in error.
Ephesoft Community edition is installed on Windows Server 2008 (VirtualBox 3.2.8 OSE - Linux host) , MySQL 5.1 and Java 6u21.


SearchClassification
org.jbpm.api.JbpmException: couldn't invoke 'generateConfidenceScore' with [8] on com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl@fd4c21: For input string: "0,00"
at org.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:163)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.invokeMethod(ObjectDescriptor.java:213)
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:76)
at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
at org.jbpm.pvm.internal.model.op.ExecuteActivityMessage.execute(ExecuteActivityMessage.java:46)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:76)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:42)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ephesoft.dcma.core.DCMAException: For input string: "0,00"
at com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl.generateConfidenceScore(SearchClassificationServiceImpl.java:95)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.aspectj.AspectJAfterAdvice.invoke(AspectJAfterAdvice.java:42)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy78.generateConfidenceScore(Unknown Source)
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.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:160)
... 23 more
Caused by: java.lang.NumberFormatException: For input string: "0,00"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
at java.lang.Float.valueOf(Float.java:388)
at com.ephesoft.dcma.lucene.LuceneEngine.calculateConfidenceScore(LuceneEngine.java:483)
at com.ephesoft.dcma.lucene.LuceneEngine.updateBatchXML(LuceneEngine.java:421)
at com.ephesoft.dcma.lucene.LuceneEngine.generateConfidence(LuceneEngine.java:357)
at com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl.generateConfidenceScore(SearchClassificationServiceImpl.java:83)
... 45 more



BarcodeClassification
org.jbpm.api.JbpmException: couldn't invoke 'generateConfidenceScore' with [15] on com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl@190ae17: IOException while reading Indexno segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\Ephesoft\SharedFolders\learn-index\2: files: [write.lock, _0.cfs, _0.cfx, _0.fdt, _0.fdx, _0.tvd, _0.tvf, _0.tvx]
at org.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:163)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.invokeMethod(ObjectDescriptor.java:213)
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:76)
at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
at org.jbpm.pvm.internal.model.op.ExecuteActivityMessage.execute(ExecuteActivityMessage.java:46)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:76)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:42)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ephesoft.dcma.core.DCMAException: IOException while reading Indexno segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\Ephesoft\SharedFolders\learn-index\2: files: [write.lock, _0.cfs, _0.cfx, _0.fdt, _0.fdx, _0.tvd, _0.tvf, _0.tvx]
at com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl.generateConfidenceScore(SearchClassificationServiceImpl.java:87)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.aspectj.AspectJAfterAdvice.invoke(AspectJAfterAdvice.java:42)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy78.generateConfidenceScore(Unknown Source)
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.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:160)
... 23 more
Caused by: com.ephesoft.dcma.core.exception.DCMAApplicationException: IOException while reading Indexno segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\Ephesoft\SharedFolders\learn-index\2: files: [write.lock, _0.cfs, _0.cfx, _0.fdt, _0.fdx, _0.tvd, _0.tvf, _0.tvx]
at com.ephesoft.dcma.lucene.LuceneEngine.generateConfidence(LuceneEngine.java:280)
at com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl.generateConfidenceScore(SearchClassificationServiceImpl.java:83)
... 45 more
Caused by: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\Ephesoft\SharedFolders\learn-index\2: files: [write.lock, _0.cfs, _0.cfx, _0.fdt, _0.fdx, _0.tvd, _0.tvf, _0.tvx]
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:628)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:316)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:202)
at com.ephesoft.dcma.lucene.LuceneEngine.generateConfidence(LuceneEngine.java:274)
... 46 more
soliveira
 
Posts: 5
Joined: Thu Oct 07, 2010 3:23 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby ephesoft » Thu Oct 07, 2010 5:15 pm

Soliveria,
Thank you for your post.
Based on this part of the message
"write.lock, _0.cfs, _0.cfx, _0.fdt, _0.fdx, _0.tvd, _0.tvf, _0.tvx"
, it looks like both of your problems are related to content classification engine (Lucene). You are seeing this problem for both barcode and searchclassification (content based classification) because in community edition, all classification options are enabled by default regardless of document assembler plugin.

The short answer to this problem is to delete files that are locking the lucene indexes. Follow these steps:
    1- stop the server
    2-Delete all the files in the lucene folder (C:\Ephesoft\SharedFolders\learn-index\2) except _0.cfs, _0.cfx, segments.gen, segments_2
    3- restart the server

The long answer is as follows:
Content classification uses luecene to learn classify the documents. The idea is that you give sample documents for the documents types that you wish to classify with content classification. For example, for batch class id 2, the samples are located C:\Ephesoft\SharedFolders\LuceneSearchClassificationSample\2.
There are also sample folders for image comparison/classification in C:\Ephesoft\SharedFolders\ImageClassificationSample\2.
After giving the samples, you are supposed to go to the admin module and hit the "Learn" button. This button generates hOCR files (from tif files) for content classification and creates thumbnails for the image classification. hOCR files are than used to build lucene indexes. During this process lucene LOCK files may be created but these files should be cleaned automatically by Ephesoft. For some reason, in your case, these files are still locked so lecene is not able to classify the documents you are importing.

You can see these files in the C:\Ephesoft\SharedFolders\learn-index\2 folder.

We will create a bug report for this but if you can replicate the issue and tell us the steps, it would be a great help.

Thanks,
Ephesoft support

Please note that, in the next version, we will change the folder structure so that every batch will have a main folder for all the settings such as search classification or image classification.
Also, please note that all the folder paths in the system are configurable. Above folder names are for default community installation.

Also, searchclassification, contentclassification, lucene classification are all same things. We give samples and we train them using lucene indexing. This allows the Ephesoft system to classify and separates the documents based on lucene ranking of each page. This is how we eliminate separator sheets and save labor and trees.
ephesoft
Site Admin
 
Posts: 90
Joined: Wed Feb 10, 2010 10:27 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby ephesoft » Thu Oct 07, 2010 5:28 pm

We forgot to mentioned that BarcodeClassification setting for Document Assembler plugin requires having barcodes on the first pages of the documents. The barcode also should have a value of the document type name. For example, sample invoices tiff files are provided with the default community edition if you'd like to use this settings. Otherwise, use SearchClassification setting which is a default setting.

In these examples, we used QR barcode. You can go to sites like this: http://zxing.appspot.com/generator/
and select TEXT and type the name of the document type and place that into the tiff image. You can use datamatrix barcode too, if you'd like!

We believe in eliminating separator sheets completely so we recommend using stamps that print very small QR barcodes on the first pages of documents before they are scanned (QR barcode is very good on tiny barcodes). This way, you can elimiate the need for placing a page between documents thus reducing the manual labor and save a few trees.

P.S. In the next version, we will change the barcode text to say DocumentTypeName_FIRST_PAGE so that the page level index fields and its alternatives are consistent across classification methods: barcode, search and image classification. These page level results are stored in the batch.xml if you are interested.

Ephesoft Support.
ephesoft
Site Admin
 
Posts: 90
Joined: Wed Feb 10, 2010 10:27 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby soliveira » Sat Oct 09, 2010 3:43 pm

Hello,

I have followed all the steps described in the previous posts, but with little success.
I am using the sample documents provided with the default instalation of Ephesoft Community.

- I've created a new folder on Sample batches and named it to "SingleDoc".
- Then I've copied image 004.tif from "Sample Batches\InvoiceBatchSample" to this new folder.
- "SingleDoc" was placed in "SharedFolders\PublicUNCFolder"
- In the table "batch_instance" and a new batch appears with "batch_status" = RUNNING
- After some time the "batch_status" changes to ERROR
- The last row in "jbpm4_execution" is as follows:
'80047', 'pvm', '2', 'generate-confidence-score', 'searchClassification-1', '1', NULL, NULL, 'searchClassification.80047', 'active-root', NULL, '0', NULL, NULL, '80047', '80017', NULL, NULL
- In "jbpm4_job" this is the last row:
'80050', 'ExeAct', '6', NULL, 'error', '0', NULL, NULL, 'org.jbpm.api.JbpmException: couldn''t invoke ''generateConfidenceScore'' with [18] on com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl@693081: For input string: "56,14"
at org.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:163)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.invokeMethod(ObjectDescriptor.java:213)
at org.jbpm.jpdl.internal.activity.JavaActivity.perform(JavaActivity.java:76)
at org.jbpm.jpdl.internal.activity.JpdlAutomaticActivity.execute(JpdlAutomaticActivity.java:15)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
at org.jbpm.pvm.internal.model.op.ExecuteActivityMessage.execute(ExecuteActivityMessage.java:46)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:76)
at org.jbpm.pvm.internal.cmd.ExecuteJobCmd.execute(ExecuteJobCmd.java:42)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.jobexecutor.JobParcel.run(JobParcel.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.ephesoft.dcma.core.DCMAException: For input string: "56,14"
at com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl.generateConfidenceScore(SearchClassificationServiceImpl.java:95)
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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.aspectj.AspectJAfterAdvice.invoke(AspectJAfterAdvice.java:42)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy78.generateConfidenceScore(Unknown Source)
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.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:160)
... 23 more
Caused by: java.lang.NumberFormatException: For input string: "56,14"
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
at java.lang.Float.valueOf(Float.java:388)
at com.ephesoft.dcma.lucene.LuceneEngine.calculateConfidenceScore(LuceneEngine.java:483)
at com.ephesoft.dcma.lucene.LuceneEngine.updateBatchXML(LuceneEngine.java:421)
at com.ephesoft.dcma.lucene.LuceneEngine.generateConfidence(LuceneEngine.java:357)
at com.ephesoft.dcma.lucene.service.SearchClassificationServiceImpl.generateConfidenceScore(SearchClassificationServiceImpl.java:83)
... 45 more
', '0', '80047', '80047', NULL, NULL, NULL, NULL

Hope it helps.
soliveira
 
Posts: 5
Joined: Thu Oct 07, 2010 3:23 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby ephesoft » Sat Oct 09, 2010 3:56 pm

How many files do you have in the "C:\Ephesoft\SharedFolders\learn-index\2" folder?
You should have only 4.
If you have more than 4, that means the problem you reported above has not been fixed yet.
Let us know so we can guide you.

Ephesoft support.
ephesoft
Site Admin
 
Posts: 90
Joined: Wed Feb 10, 2010 10:27 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby soliveira » Sat Oct 09, 2010 4:35 pm

I only have 4 files

Volume in drive C has no label.
Volume Serial Number is D008-B4FB

Directory of C:\Ephesoft\SharedFolders\learn-index\2

10-10-2010 00:33 <DIR> .
10-10-2010 00:33 <DIR> ..
09-10-2010 23:13 20 segments.gen
09-10-2010 23:13 239 segments_2
09-10-2010 23:13 123.159 _0.cfs
09-10-2010 23:13 117.877 _0.cfx
4 File(s) 241.295 bytes
2 Dir(s) 8.580.698.112 bytes free
soliveira
 
Posts: 5
Joined: Thu Oct 07, 2010 3:23 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby ephesoft » Sat Oct 09, 2010 5:21 pm

Soliveria,
We just did a fresh install using community edition and processed the 0004.tif file as you described and it worked.
After comparing the learn index folder with yours, we realized that segment_2 file has a different size.
See below:

Directory of C:\Ephesoft\SharedFolders\learn-index\2

10/09/2010 04:56 PM <DIR> .
10/09/2010 04:56 PM <DIR> ..
09/11/2010 03:36 PM 20 segments.gen
09/11/2010 03:36 PM 229 segments_2
09/11/2010 03:36 PM 123,159 _0.cfs
09/11/2010 03:36 PM 117,877 _0.cfx
4 File(s) 241,285 bytes
2 Dir(s) 12,201,857,024 bytes free

This makes us believe that lucene index is somehow corrupted based on your initial post.

There are two solutions we can recommend:
1- go to the admin module, open the batch class and click on the "Learn Files" button and then save. Please verify that there is still 4 files in the learn-index folder for this batch class. If you encounter the same "lock" files, then you have discovered a bug. Make sure you can change other settings in the batch class and save the settings. If you can save the batch class, you will see that batch class version is incremented automatically.
2- Attached at the files that are installed with the community edition. Just replace them with yours.
Attachments
2.zip
learn-index
(127.09 KiB) Downloaded 328 times
ephesoft
Site Admin
 
Posts: 90
Joined: Wed Feb 10, 2010 10:27 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby soliveira » Sun Oct 10, 2010 5:31 am

Hello,

I've deleted all the files from learn-index/2, went to Batch Class Management and clicked Learn Files, changed some settings and then saved the batch class.
Only 4 files were generated in the index folder but segments_2 was 239 bytes in size.
I've repeated the same steps as before and the error continues.

Then I've stopped the server, deleted all files from the index folder and copied the files that you have attached in the previous post.
I've repeated the same steps as before and the error continues.

Finally, I went again to Batch Class Management clicked Learn Files, changed some settings and saved.
This time, the contents of learn-index/2 is as follows:

Volume in drive C has no label.
Volume Serial Number is D008-B4FB

Directory of C:\Ephesoft\SharedFolders\learn-index\2

10-10-2010 13:15 <DIR> .
10-10-2010 13:15 <DIR> ..
10-10-2010 13:15 20 segments.gen
10-10-2010 13:15 32 segments_1
10-10-2010 13:15 0 write.lock
11-09-2010 15:36 123.159 _0.cfs
11-09-2010 15:36 117.877 _0.cfx
10-10-2010 13:15 8.935 _0.fdt
10-10-2010 13:15 612 _0.fdx
10-10-2010 13:15 28 _0.fnm
10-10-2010 13:15 19.870 _0.frq
10-10-2010 13:15 232 _0.nrm
10-10-2010 13:15 37.468 _0.prx
10-10-2010 13:15 869 _0.tii
10-10-2010 13:15 64.601 _0.tis
10-10-2010 13:15 156 _0.tvd
10-10-2010 13:15 106.878 _0.tvf
10-10-2010 13:15 1.220 _0.tvx
16 File(s) 481.957 bytes
2 Dir(s) 8.156.942.336 bytes free

Hope it helps.
soliveira
 
Posts: 5
Joined: Thu Oct 07, 2010 3:23 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby ephesoft » Sun Oct 10, 2010 8:01 am

OK. It looks like there are two issues.
1- Learn files create indexes but does not delete the lock files
2- content classification fails during the run time.

Item 1 above is a bug that we will try to replicate it here and fix it. Until it is fixed, use the 4 files we sent you earlier.
Item 2, needs more investigation.

If it is not possible to re-install the Ephesoft application, we suggest you send us your log files which are located in the c:\ephesoft\Application and the file name is called dcma-all.log. log files needs to be zipped before upload.

If the file is loo big, just post the last section where you run the batch.

Also, can you check if the html (hOCR) are generated in the EphesoftSystemFolder. If the html file is empty, that means OCR is not working and without OCR, content classification cannot work.

We apologize for these problems you are having. Thank you for working with us and not giving up!
Ephesoft support.
ephesoft
Site Admin
 
Posts: 90
Joined: Wed Feb 10, 2010 10:27 pm

Re: couldn't invoke 'generateConfidenceScore'

Postby soliveira » Mon Nov 01, 2010 7:06 am

Hello!

I did a fresh install, and without changing any parametrization I tried to run the system with 2 sample batches: InvoiceBatchSample and ClassificationSample-1
I got he same error as before.
The log files are in the attachment.
Attachments
logs.zip
(3.98 KiB) Downloaded 321 times
soliveira
 
Posts: 5
Joined: Thu Oct 07, 2010 3:23 pm

Next

Return to High-Level Architecture Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron