0 Replies Latest reply: Jun 29, 2012 2:57 PM by Tejas B RSS

Error in ant start.human.task

Tejas B Newbie

Hi,

I am trying to set up JBPM and during the initial setup when I invoke

ant start.human.task

 

I get the following error.

 

C:\T\jbpm-installer>ant start.human.task

Buildfile: C:\T\jbpm-installer\build.xml

 

 

start.human.task:

    [javac] C:\T\jbpm-installer\build.xml:844: warning: 'includeantruntime' was

not set, defaulting to build.sysclasspath=last; set to false for repeatable buil

ds

    [javac] Compiling 1 source file to C:\T\jbpm-installer\task-service\target

    [javac] C:\T\jbpm-installer\task-service\src\org\jbpm\DemoTaskService.java:3

4: error: method eval in class TaskService cannot be applied to given types;

    [javac]             Map<String, User> users = ( Map<String, User> ) TaskServ

ice.eval( reader, vars );

    [javac]

   ^

    [javac]   required: String,Map

    [javac]   found: Reader,Map

    [javac]   reason: actual argument Reader cannot be converted to String by me

thod invocation conversion

    [javac] C:\T\jbpm-installer\task-service\src\org\jbpm\DemoTaskService.java:4

3: error: method eval in class TaskService cannot be applied to given types;

    [javac]             Map<String, Group> groups = ( Map<String, Group> ) TaskS

ervice.eval( reader, vars );

    [javac]

      ^

    [javac]   required: String,Map

    [javac]   found: Reader,Map

    [javac]   reason: actual argument Reader cannot be converted to String by me

thod invocation conversion

    [javac] 2 errors

 

 

BUILD FAILED

 

 

 

 

 

I even tried modifying the code and converted reader to String and then stored in Map. But in this case, I get an error

 

error: non-static method eval(String,Map) cannot be referenced from a static

context

 

Please suggest a solution on this as I have been struggling on this for a while.

 

Regards,

  Tejas