Error Compiliing:symbol : class TextFileInput
Greetings,
I have two computers with the java compiler installed. On one, the program works perfect. On the other computer, it doent.
Here is the error message I get when I compile the program:
symbol : class TextFileInput
location: class Project1
TextFileInput dataFile = new TextFileInput(f);
^
C:\cs212\Project1.java:66: cannot find symbol
symbol : class TextFileInput
location: class Project1
TextFileInput dataFile = new TextFileInput(f);
^
2 errors
Tool completed with exit code 1
The program works fine on the other computer. I have the same compiler version installed on both computers. I tried making changes to the class path but doesnt seem to work. What should I do. Please help
Below is the code of my program:
public class Project1
* Main method.
* @param args command-line arguments - inputFile.txt needed
public static void main(String[] args)
String filename = args[0];
final int ELEMENTS = 10;
String[] namesArray = new String[ELEMENTS];
String[] speciesArray = new String[ELEMENTS];
int [] ageArray = new int [ELEMENTS];
if (args.length != 1)
System.out.println("You have entered wrong "
+ "argument information. Exiting the system");
System.exit(0);
}//end if args.length != 1
int arraySize = readFile(args[0],speciesArray, namesArray, ageArray);
displayResults(speciesArray, namesArray, ageArray, arraySize);
sort(speciesArray, namesArray, ageArray, arraySize);
displayResults(speciesArray, namesArray, ageArray, arraySize);
}// end main
* readfile method.- Read data from inputFile.txt and place
* it into Arrays
* @param f - the name of the file - inputFile.txt
* @param sp - speciesArray - Array that contains the species
* @param na - nameArray - Array that contains the animal names
* @param a - ageArray - Array that contains animal age
* @return - the size of the array to a variable called arraySize
public static int readFile(String f, String[] sp, String[] na, int[] a)
TextFileInput dataFile = new TextFileInput(f);
//final String lineBreak = System.getProperty("line.separator");
// Input the first line from the file:
String line = dataFile.readLine();
int lengthFilled = 0;
// Read the content of the file and place it in a string of arrays
while (line != null )
StringTokenizer st = new StringTokenizer(line, "|");
String species = st.nextToken();
String name = st.nextToken();
int age = Integer.parseInt(st.nextToken());
boolean validate = isValidSpecies(species);
if (validate != true)
System.out.println("The line: \""+ line + "\""+ " in the file is not valid");
System.out.println("It will not be included in the array");
line = dataFile.readLine();
else
sp[lengthFilled] = species;
na[lengthFilled] = name;
a [lengthFilled] = age;
lengthFilled++;
line = dataFile.readLine();
}//end else
}// end while loop
dataFile.close();
return lengthFilled;
}//end readFile
* isValidSpecies method. - Makes sure the species is either a CAT or DOG
* @param s - the species value of the array at xxx position
* @return - it will return true if the species name is either CAT or DOG
* - else it will return false.
public static boolean isValidSpecies(String s)
if ( (s.compareTo("DOG") == 0) || (s.compareTo("CAT") == 0))
return true;
else
return false;
}//end isValidSpecies
* sort method. - It sorts the array based on name.
* @param sp - speciesArray - Array that contains the species
* @param na - nameArray - Array that contains the animal names
* @param a - ageArray - Array that contains animal age
* @param length - the size of the partially filled array
public static void sort(String[] sp, String[] na, int[] a, int length)
//Sort the array using selection sort array.
for (int i = 0; i < length; i++)
// Find the lowest-valued element in
// the subarray from index i up to
// index length - 1
int indexLowest = i;
for (int j = i + 1; j < length; j++)
if ( na.compareTo(na[indexLowest]) <= 0 )
indexLowest = j;
// Put the lowest-valued element at
// index i, swapping if necessary:
if ( na[indexLowest].compareTo(na[i]) <= 0 )
String tempName = na[indexLowest];
String tempSpecie = sp[indexLowest];
int tempnumb = a [indexLowest];
na[indexLowest] = na[i];
sp[indexLowest] = sp[i];
a [indexLowest] = a [i];
na[i] = tempName;
sp[i] = tempSpecie;
a [i] = tempnumb;
}//end if
}//for loop
}//for loop
}//end sort method
* displayResults method. - Display the info from the arrays to a JOptionPane.
* @param sp - speciesArray - Array that contains the species
* @param na - nameArray - Array that contains the names
* @param a - ageArray - Array that contains animal age
* @param length - the size of the partially filled array
public static void displayResults(String[] sp, String[] na, int[] a, int length)
JTextArea textArea = new JTextArea();
textArea.setEditable(false);
final String lineBreak = System.getProperty("line.separator");
for (int i = 0; i < length; i++)
textArea.append(sp[i] + " " + na[i] + " " + a[i] + lineBreak);
JOptionPane.showMessageDialog(null, textArea);
}// end displayResults
}//end class Project1
How could that be, that the class TexFileinput is
missing. The installation of java, I believe version
1.5.0_04 was done at the same time on both machines.That class is one of your classes. It's not part of Java. Look for it.
Anyway, the classpath seem to be the same?
I know the path is the same on both computers, but I
dont know where to check for the class path.Type echo %classpath% at a cmd prompt.
Thanks alot for your prompt response!!!!
Similar Messages
-
Dear All,
Please help me.
I am running javac from a .bat file and i set the classpath in the bat file as follows.
echo on
:start
set classpath = "C:\Program Files\Java\jdk1.6.0\bin;"
set classpath = "C:\Program Files\Java\jdk1.6.0\jre\..\lib\tools.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0\jre\classes;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\ldapsec.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\mysql-connector-java-5.0.0-beta-bin.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\sunjce_provider.jar; C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\studio\system;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\j2ee-1.3.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jaas-1.0.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\activation.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jms-1.0.2b.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jta-spec1_0_1.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\mail.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\AbsoluteLayout.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\sql.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\rowset.jar;C:\Program Files\Java\jdk1.6.0\studio\lib\ext\jdbc20x.zip;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\servlet-2.3.jar;C:\Program Files\Java\jdk1.6.0\studio\beans\TimerBean.jar;c:\Program Files\Java\jdk1.6.0\ideset\tomcat401_base;C:\sms\com\;"
cd C:\sms
javac mainP.java
pause
i have few class files which are inherited to the main program using ' import com.Connection; '
i am getting errors like
mainP.java:482: cannot find symbol
symbol : class Connection
location: class mainP
Connection connection = new Connection(ipAddress, port);
I think it is because of some classpath error.
please advice me.......
VijuActually, you have NO CLUE what he's trying to doActually he said what he is trying to do in his posting. It's no mystery. But that's all the information that's available. If you know something that isn't posted here why not say so?
Your reply was a snide, rude, "You're stupid for doing it that way" answerMy reply was neither snide nor rude and implied none of what you impute to it. It was a proper and constructive suggestion. You are entitled to disagree with it, but that doesn't justify this immoderate outburst.
Bottom line is, you chose to be nastyBottom line is you're just making this up. You are imputing motives to me without evidence. Don't do that.
You are the type of person that makes searching forums and posting questions for assistance a near waste of time.I doubt that you'll find many regulars here that would agree with that assertion. When you have made over 16,000 posts here over ten years as I have, come back and we'll discuss it some more.
Go back to grade school and ...I suggest you try it yourself. You're not adding anything except noise to the discussion. Try curbing your temper, and while you're at it have a good look at the Code of Conduct for these forums. You're verging on personal abuse here.
And, additionally, I've used ANT in the past. Batch files are FAR AND AWAY easier to set up.In your opinion. I disagree entirely, and I have eleven years' experience with Java to back it up.
As for CLASSPATH, I haven't done anything about setting it beyond installing the JDK since about 1999, and it has a dot in it as we speak. -
Cannot resolve symbol error even with class imported
Hi
I'm trying to print out a java.version system property but keep getting a
cannot resolve symbol error
symbol: class getProperty
location: class java.lang.System
I've looked at the API and getProperty() is a method of lang.System
Can anyone throw any light?
thanks
import java.lang.System;
class PropertiesTest {
public static void main(String[] args) {
String v = new System.getProperty("java.version");
System.out.println(v);
}Thanks Jos
It compiles but I now get a runtime error
Exception in thread "main"
java.lang.NoClassDefFoundError:PropertiesTest
What do you reckon is the problem?
thanks
java -cp .;<any other directories or jars>
YourClassNameYou get a NoClassDefFoundError message because the
JVM (Java Virtual Machine) can't find your class. The
way to remedy this is to ensure that your class is
included in the classpath. The example assumes that
you are in the same directory as the class you're
trying to run.I know it's a bad habit but I've put this file (PropertiesTest.java) and the compiled class (PropertiesTest.class) both in my bin folder which contains the javac compiler -
Cannot resolve symbol : class odbc ERROR
Hi Helper
I am trying to compile a the following and I am getting the error
C:\jdk\websiter>javac MainServlet.java
MainServlet.java:86: cannot resolve symbol
symbol : class odbc
location: package jdbc
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import java.io.*;
import java.util.*;
* This is the servlet to send the user the names of all the sites present in the database
public class MainServlet extends HttpServlet implements ServletConstants
Connection m_con;
PreparedStatement m_pstmt;
ResultSet m_res;
Vector m_vecsiteName;
public void Init(ServletConfig config) throws ServletException {
super.init(config);
}// end of init()
public void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
m_vecsiteName = new Vector();
try {
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
m_con = DriverManager.getConnection("jdbc:odbc:sitewd", "", "");
How can i fix it? thanks
VTReplace the Statement
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
as
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); -
"cannot find symbol : class Scanner" error message
I have an error message that says:
"cannot find symbol : class Scanner"
I tried typing at the top of the program
import java.util.Scanner;but I still have the same error message.
What should I do ?
Thank you in advancehttp://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html
Since:
1.5
look at the javadoc, it says since 1.5 so it's not there in earlier versions.
just a guess -
Cannot resolve symbol class Scanner (Error)
For whatever reason I get the error message "cannot resolve symbol class Scanner" when trying to run this:
import java.io.*;
import java.util.*;
public class NameReversal
public static void main(String args[])
System.out.print("Enter your name: ");
Scanner Reader = new Scanner(System.in);
String first = Reader.next();
String finl = Reader.next();
int z = first.length();
int v = finl.length();
int y = z-1;
int f = y-1;
for(int i = y; i>=0; z--)
System.out.print(first.charAt(1));
System.out.print(" ");
for(int p = f; p >= 0; p--)
System.out.println(finl.charAt(p));
}The Scanner class is in the JDK version 1.5 or later. You must be using an earlier version.
-
"cannot find symbol class studentList" error
Hi I get this error
"cannot find symbol class studentList", but this class is at the same file and also it is in the same folder. so what's wrong .. and I checked the spelling it's the same.
I should create an object named myList of type studentList
and second, I call method menu() and pass it myList as actual parameter.
so I called the function menu which is should be in the main too
like this
myList.menu();
and menu method accepts as parameter an object of type studentList. and display the menu for the user to choose..
here is part my program:
public class ListTest
{ public void menu(Student L) // accepts parameter
System.out.println("");
System.out.println("Choose a number between 1 to 4");
System.out.println("1-Print Info of A Student ");
System.out.println("2-Print Info of All Students ");
System.out.println("3-Display grade of A Specific student");
System.out.println("4-Exit");
System.out.println("");
int choice = Stdin.readInteger();
while (choice != 5)
switch (choice) {
case 1:
L.PrintAStudent(int L);
break;
case 2:
L.PrintAll();
break;
case 3:
L.DisplayGPA();
break;
case 3:
System.exit(0);
break;
default:
System.out.println("wrong Number");
System.out.println("Enter a number between 1 to 4 ");
System.out.println("Enter 4 to Exit");
break;
System.out.println("");
System.out.println("Choose a number between 1 to 4");
System.out.println("1-Print Info of A Student ");
System.out.println("2-Print Info of All Students ");
System.out.println("3-Display grade of A Specific student");
System.out.println("4-Exit");
System.out.println("");
choice = Stdin.readInteger();
}// end method menu
public static void main(String args[ ])
{ studentList myList = new studentList();//myList object is created
myList.menu();
}//end main
}// end of class ListTest
you have mentioned about the class "studentList" but that class is not to be found in the code you have pasted. its instead "ListTest". And the "menu" function seems to b a part of "ListTest" class. Can you provide the structure of the classes "studentList" and "Student" so that the problem can be more clearly understood?
also you are using the variable "Stdin" in the line int choice = Stdin.readInteger(); where as you have not declared this variable.
in the "switch" statement you are calling two different functions for the same case "3" where as it should be "case 3" and "case 4" respectively.
in the "main" you are calling the "menu" function without any parameter while you actually want to pass argument of type "studentList". -
How use page Fragments(give me this error symbol : class Hyperlink )
hi master
sir
i am try to this link sample for page fragments
http://developers.sun.com/jscreator/learning/tutorials/2/pagefragments.html
every setp is right but when i use this code
Hyperlink homeLink = navigationFragmentBean.getHomeLink();
this line give me error
see error
symbol : class Hyperlink
location: class fragmentexample.Page1
Hyperlink homeLink = navigationFragmentBean.getHomeLink();
1 error
please give me idea how i remove this error
thank's
aamirhi master
sir use mysql database
I have three textfield in my page and one button.
All texttfidld are bound with datasourceprovider or bound with mysql and I use normal code in button event
getMfatableDataProvider().cursorNext();
also I drop page fragment box tool and create new fragment in my application but when I run my page and click the button first record move to next record and again I press button then page give me this error
when I run my project then in browser address show this
http://localhost:29080/mfamove/
first time when I press button record move to next record and browser show this address
http://localhost:29080/mfamove/faces/Page1.jsp;jsessionid=12a66ea53657ffffffffcb77c9939bc5aa0
second time I press button then browser show this address
http://localhost:29080/mfamove/faces/Page1.jsp
and page show this error
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: javax.faces.el.MethodNotFoundException
textField1_processValueChange: mfamove.Page1.textField1_processValueChange(javax.faces.event.ValueChangeEvent)
Possible Source of Error:
Class Name: com.sun.faces.el.MethodBindingImpl
File Name: MethodBindingImpl.java
Method Name: method
Line Number: 206
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
com.sun.faces.el.MethodBindingImpl.method(MethodBindingImpl.java:206)
com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:124)
javax.faces.component.UIInput.broadcast(UIInput.java:492)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:249)
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:343)
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
Please give me idea how I use record navigation
Thank�s
Aamir -
Cannot find symbol class error
hi there ,
i am creating a min class that links several classes and i am doing the following
public class Main{
public static void main(String[] args){
classOne a = new classOne();
classTwo b = new classTwo();
classThree c = new classThree();
// more classes with the same as above
i am saving all the classes in the same folder , and i am having this error twice with each line that i creat an instance for a class
cannot find symbol
symbol : class classOneare your classes all in the same package? do you in fact use packages?
Your best bet to get help here is by creating a Short, Self Contained, Correct (Compilable), Example or SSCCE. This is a small application that you create that is compilable and runnable, and demonstrates your error, but contains no extraneous, unnecessary code that is not associated with your problem. To see more about this and how to create this, please look at this link:
http://homepage1.nifty.com/algafield/sscce.html
Remember, this code must be compilable and runnable.
Also, if you do post your code, please use code tags so that your code will be well-formatted and readable. To do this, either highlight your code block and press the "code" button at the top above the message block or place the tag [code] at the top of your block of code and the tag [/code] at the bottom, like so:
[code]
// your code block goes here
[/code] -
Error:cannot resolve Symbol class"name"
when I have compiled Bean class named SlBean which has primary class named pk, I recevied following error message(I compiled pk class without error) :
cannot resolve symbol
symbol : class pk
location: class SlBean
public pk ejbCreate(Sorry , its not classpath problem. You have to simply import the pk class if its in any package. I am assuming you have packaged your pk class with ejb jar file.
for eg. if your class is
package abc.xyz
public class pk
then in your bean class import
import abc.xyz.pk;
--Ashwani -
ERROR: exception symbol "09732" not found in resource file
I am trying to get a client to work with workflow services. I get 'ERROR: exception symbol "09732" not found in resource file' in the output when the method queryTasks is excecuted.
Jdeveloper 10.1.3.4 and SOA Suite 10.1.3.3.0
Any ideas?
Eydun
------------------ program ---------------------
package project1;
//import com.oracle.services.bpel.task.Task;
import java.util.ArrayList;
import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
import oracle.bpel.services.workflow.query.ITaskQueryService;
import oracle.bpel.services.workflow.verification.IWorkflowContext;
import java.util.List;
import oracle.bpel.services.workflow.repos.Ordering;
import oracle.bpel.services.workflow.repos.Predicate;
import oracle.bpel.services.workflow.repos.TableConstants;
import oracle.bpel.services.workflow.task.ITaskService;
import oracle.bpel.services.workflow.task.model.Task;
public class Class1 {
public Class1() {
public void TryTask() {
try {
//Create JAVA WorflowServiceClient
IWorkflowServiceClient wfSvcClient =
WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.WSIF_CLIENT);
//Get the task query service
ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
//Login as jstein
IWorkflowContext ctx = querySvc.authenticate("jstein",
"welcome1",
null, //Use default realm
null);//Not logging in on behalf of another user
//Set up list of columns to query
List queryColumns = new ArrayList();
queryColumns.add("TASKID");
queryColumns.add("TASKNUMBER");
queryColumns.add("TITLE");
queryColumns.add("OUTCOME");
//Create a predicate to query tasks that have a null outcome
String outcome = null;
Predicate predicate = new Predicate(TableConstants.WFTASK_OUTCOME_COLUMN,
Predicate.OP_EQ,
outcome);
//Create an ordering to order tasks by task number
Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN
,true //Ascending order
,false //Nulls last
//Query a list of tasks assigned to jstein
List tasks = querySvc.queryTasks(ctx,
queryColumns,
null, //Do not query additional info
ITaskQueryService.ASSIGNMENT_FILTER_MY,
null, //No keywords
null, //predicate, //Only tasks with no outome set
ordering, //Order by ascending task number
0, //Do not page the query result
0);
//Get the task service
ITaskService taskSvc = wfSvcClient.getTaskService();
//Loop over the tasks, outputting task information, and approving tasks
for(int i = 0 ; i < tasks.size() ; i ++)
Task task = (Task)tasks.get(i);
int taskNumber = task.getSystemAttributes().getTaskNumber();
String title = task.getTitle();
String taskId = task.getSystemAttributes().getTaskId();
//Set the outcome
taskSvc.updateTaskOutcome(ctx,taskId,"APPROVED");
System.out.println("Task #"+taskNumber+" ("+title+") is APPROVED");
catch (Exception e)
//Handle any exceptions raised here...
System.out.println("Caught workflow exception: "+e.getMessage());
public static void main(String[] args) {
Class1 class1 = new Class1();
class1.TryTask();
------------------- output ---------------------
C:\java\jdk1.6.0_07\bin\javaw.exe -client -classpath C:\jdev11work\eej\mywork\Application3\Project1\classes;C:\oracle\jdev10134bpellibs\bpel\lib\bpm-infra.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel-common.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel-thirdparty.jar;C:\oracle\jdev10134bpellibs\j2ee\home\jazncore.jar;C:\oracle\jdev10134bpellibs\j2ee\home\oc4jclient.jar;C:\oracle\jdev10134bpellibs\lib\xml.jar;C:\oracle\jdev10134bpellibs\lib\xmlparserv2.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\config;C:\oracle\jdev10134bpellibs\webservices\lib\orasaaj.jar;C:\oracle\jdev10134bpellibs\webservices\lib\soap.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\lib\bpm-services.jar;C:\oracle\jdev10134bpellibs\bpel\system\services\schema;C:\oracle\jdev10134bpellibs\bpel\lib\olite40.jar;C:\oracle\jdev10134bpellibs\jdbc\lib\ojdbc14.jar;C:\oracle\jdev10134bpellibs\bpel\lib\orabpel.jar;C:\oracle\jdev10134bpellibs\wsclient_extended.jar project1.Class1
<::> WorkflowService:: TaskQueryService.authenticate(): called. user = jstein identityContext = null onBehalfOfUser = null
<::> WorkflowService:: VerificationService.authenticateUser: attempting for user = jstein identityContext = null
<ISConfiguration::load> Found Configuration=Configuration: realmName=jazn.com properties:{} has 1 providers:
<ISConfiguration::load> Provider: service=Identity providerType=JAZN providerName=XML Provider properties:{usersPropertiesFile=users-properties.xml}
<ISConfiguration::load>
<ISConfiguration::validate> Validate configuration=Configuration: realmName=jazn.com properties:{} has 1 providers:
<ISConfiguration::validate> Provider: service=Identity providerType=JAZN providerName=XML Provider properties:{usersPropertiesFile=users-properties.xml}
<ISConfiguration::validate>
<ISConfiguration::save> Save IdentityService configuration file into /C:/oracle/jdev10134bpellibs/bpel/system/services/config/is_config.xml
<ServiceFactory::getService> Provider type is JAZN
<ServiceFactory::getService> JAZN's ProviderType=XML
<XMLIdentityService::init> Load provider initialization begin
<AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<BPMUserImpl::<init>> Constacted user=cdickens
<XMLProvider::addUserToCache> User cdickens is loaded ....
<BPMUserImpl::<init>> Constacted user=wfaulk
<XMLAuthenticationService::init> Load provider initialization complete
<XMLAuthorizationService::init> Load provider initialization begin
<AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<BPMUserImpl::<init>> Constacted user=cdickens
<XMLProvider::addUserToCache> User cdickens is loaded ....
<BPMUserImpl::<init>> Constacted user=wfaulk
<XMLProvider::addUserToCache> User wfaulk is loaded ....
<BPMUserImpl::<init>> Constacted user=sfitzger
<XMLProvider::addUserToCache> User sfitzger is loaded ....
<BPMUserImpl::<init>> Constacted user=jstein
<XMLProvider::addUserToCache> User jstein is loaded ....
<BPMUserImpl::<init>> Constacted user=istone
<XMLProvider::addUserToCache> User istone is loaded ....
<BPMUserImpl::<init>> Constacted user=jcooper
<XMLProvider::addUserToCache> User jcooper is loaded ....
<BPMUserImpl::<init>> Constacted user=mtwain
<XMLProvider::addUserToCache> User mtwain is loaded ....
<BPMUserImpl::<init>> Constacted user=jlondon
<XMLProvider::addUserToCache> User jlondon is loaded ....
<BPMUserImpl::<init>> Constacted user=ltolstoy
<XMLProvider::addUserToCache> User ltolstoy is loaded ....
<BPMUserImpl::<init>> Constacted user=fkafka
<XMLProvider::addUserToCache> User fkafka is loaded ....
<BPMUserImpl::<init>> Constacted user=szweig
<XMLProvider::addUserToCache> User szweig is loaded ....
<BPMUserImpl::<init>> Constacted user=mmitch
<XMLProvider::addUserToCache> User mmitch is loaded ....
<BPMUserImpl::<init>> Constacted user=jausten
<XMLProvider::addUserToCache> User jausten is loaded ....
<BPMUserImpl::<init>> Constacted user=achrist
<XMLProvider::addUserToCache> User achrist is loaded ....
<BPMUserImpl::<init>> Constacted user=rsteven
<XMLProvider::addUserToCache> User rsteven is loaded ....
<BPMUserImpl::<init>> Constacted user=cdoyle
<XMLProvider::addUserToCache> User cdoyle is loaded ....
<BPMUserImpl::<init>> Constacted user=wshake
<XMLProvider::addUserToCache> User wshake is loaded ....
<BPMUserImpl::<init>> Constacted user=guest
<XMLProvider::addUserToCache> User guest is loaded ....
<BPMUserImpl::<init>> Constacted user=bpeladmin
<XMLProvider::addUserToCache> User bpeladmin is loaded ....
<BPMUserImpl::<init>> Constacted user=default
<XMLProvider::addUserToCache> User default is loaded ....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
<XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role Supervisor is loaded .....
<XMLProvider::addRoleToCache> Role California is loaded .....
<XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
<XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<XMLAuthorizationService::init> Load provider initialization complete
<XMLAuthenticationService::authenticateUser> XMLAuthenticationService::authenticateUser():: begin
<BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: begin
<BPMServiceJAZNBase::getRealm> Realm=[Realm: jazn.com]
<BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: end
<XMLAuthenticationService::authenticateUser> XMLAuthenticationService:: call authenticate
<XMLAuthenticationService::authenticateUser> XMLAuthenticationService:: user is authenticated!
<XMLAuthenticationService::authenticateUser> XMLAuthenticationService::authenticateUser():: end
<ServiceFactory::getService> Provider type is JAZN
<ServiceFactory::getService> JAZN's ProviderType=XML
<XMLIdentityService::init> Load provider initialization begin
<AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<BPMUserImpl::<init>> Constacted user=cdickens
<XMLProvider::addUserToCache> User cdickens is loaded ....
<BPMUserImpl::<init>> Constacted user=wfaulk
<XMLProvider::addUserToCache> User wfaulk is loaded ....
<BPMUserImpl::<init>> Constacted user=sfitzger
<XMLProvider::addUserToCache> User sfitzger is loaded ....
<BPMUserImpl::<init>> Constacted user=jstein
<XMLProvider::addUserToCache> User jstein is loaded ....
<BPMUserImpl::<init>> Constacted user=istone
<XMLProvider::addUserToCache> User istone is loaded ....
<BPMUserImpl::<init>> Constacted user=jcooper
<XMLProvider::addUserToCache> User jcooper is loaded ....
<BPMUserImpl::<init>> Constacted user=mtwain
<XMLProvider::addUserToCache> User mtwain is loaded ....
<BPMUserImpl::<init>> Constacted user=jlondon
<XMLProvider::addUserToCache> User jlondon is loaded ....
<BPMUserImpl::<init>> Constacted user=ltolstoy
<XMLProvider::addUserToCache> User ltolstoy is loaded ....
<BPMUserImpl::<init>> Constacted user=fkafka
<XMLProvider::addUserToCache> User fkafka is loaded ....
<BPMUserImpl::<init>> Constacted user=szweig
<XMLProvider::addUserToCache> User szweig is loaded ....
<BPMUserImpl::<init>> Constacted user=mmitch
<XMLProvider::addUserToCache> User mmitch is loaded ....
<BPMUserImpl::<init>> Constacted user=jausten
<XMLProvider::addUserToCache> User jausten is loaded ....
<BPMUserImpl::<init>> Constacted user=achrist
<XMLProvider::addUserToCache> User achrist is loaded ....
<BPMUserImpl::<init>> Constacted user=rsteven
<XMLProvider::addUserToCache> User rsteven is loaded ....
<BPMUserImpl::<init>> Constacted user=cdoyle
<XMLProvider::addUserToCache> User cdoyle is loaded ....
<BPMUserImpl::<init>> Constacted user=wshake
<XMLProvider::addUserToCache> User wshake is loaded ....
<BPMUserImpl::<init>> Constacted user=guest
<XMLProvider::addUserToCache> User guest is loaded ....
<BPMUserImpl::<init>> Constacted user=bpeladmin
<XMLProvider::addUserToCache> User bpeladmin is loaded ....
<BPMUserImpl::<init>> Constacted user=default
<XMLProvider::addUserToCache> User default is loaded ....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
<XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role Supervisor is loaded .....
<XMLProvider::addRoleToCache> Role California is loaded .....
<XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
<XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<XMLIdentityService::init> Load provider initialization complete
<XMLAuthenticationService::init> Load provider initialization begin
<AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<BPMUserImpl::<init>> Constacted user=cdickens
<XMLProvider::addUserToCache> User cdickens is loaded ....
<BPMUserImpl::<init>> Constacted user=wfaulk
<XMLProvider::addUserToCache> User wfaulk is loaded ....
<BPMUserImpl::<init>> Constacted user=sfitzger
<XMLProvider::addUserToCache> User sfitzger is loaded ....
<BPMUserImpl::<init>> Constacted user=jstein
<XMLProvider::addUserToCache> User jstein is loaded ....
<BPMUserImpl::<init>> Constacted user=istone
<XMLProvider::addUserToCache> User istone is loaded ....
<BPMUserImpl::<init>> Constacted user=jcooper
<XMLProvider::addUserToCache> User jcooper is loaded ....
<BPMUserImpl::<init>> Constacted user=mtwain
<XMLProvider::addUserToCache> User mtwain is loaded ....
<BPMUserImpl::<init>> Constacted user=jlondon
<XMLProvider::addUserToCache> User jlondon is loaded ....
<BPMUserImpl::<init>> Constacted user=ltolstoy
<XMLProvider::addUserToCache> User ltolstoy is loaded ....
<BPMUserImpl::<init>> Constacted user=fkafka
<XMLProvider::addUserToCache> User fkafka is loaded ....
<BPMUserImpl::<init>> Constacted user=szweig
<XMLProvider::addUserToCache> User szweig is loaded ....
<BPMUserImpl::<init>> Constacted user=mmitch
<XMLProvider::addUserToCache> User mmitch is loaded ....
<BPMUserImpl::<init>> Constacted user=jausten
<XMLProvider::addUserToCache> User jausten is loaded ....
<BPMUserImpl::<init>> Constacted user=achrist
<XMLProvider::addUserToCache> User achrist is loaded ....
<BPMUserImpl::<init>> Constacted user=rsteven
<XMLProvider::addUserToCache> User rsteven is loaded ....
<BPMUserImpl::<init>> Constacted user=cdoyle
<XMLProvider::addUserToCache> User cdoyle is loaded ....
<BPMUserImpl::<init>> Constacted user=wshake
<XMLProvider::addUserToCache> User wshake is loaded ....
<BPMUserImpl::<init>> Constacted user=guest
<XMLProvider::addUserToCache> User guest is loaded ....
<BPMUserImpl::<init>> Constacted user=bpeladmin
<XMLProvider::addUserToCache> User bpeladmin is loaded ....
<BPMUserImpl::<init>> Constacted user=default
<XMLProvider::addUserToCache> User default is loaded ....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
<XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role Supervisor is loaded .....
<XMLProvider::addRoleToCache> Role California is loaded .....
<XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
<XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<XMLAuthenticationService::init> Load provider initialization complete
<XMLAuthorizationService::init> Load provider initialization begin
<AbstractXMLProvider::loadUsers> XMLProvider::load() Load users from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<BPMUserImpl::<init>> Constacted user=cdickens
<XMLProvider::addUserToCache> User cdickens is loaded ....
<BPMUserImpl::<init>> Constacted user=wfaulk
<XMLProvider::addUserToCache> User wfaulk is loaded ....
<BPMUserImpl::<init>> Constacted user=sfitzger
<XMLProvider::addUserToCache> User sfitzger is loaded ....
<BPMUserImpl::<init>> Constacted user=jstein
<XMLProvider::addUserToCache> User jstein is loaded ....
<BPMUserImpl::<init>> Constacted user=istone
<XMLProvider::addUserToCache> User istone is loaded ....
<BPMUserImpl::<init>> Constacted user=jcooper
<XMLProvider::addUserToCache> User jcooper is loaded ....
<BPMUserImpl::<init>> Constacted user=mtwain
<XMLProvider::addUserToCache> User mtwain is loaded ....
<BPMUserImpl::<init>> Constacted user=jlondon
<XMLProvider::addUserToCache> User jlondon is loaded ....
<BPMUserImpl::<init>> Constacted user=ltolstoy
<XMLProvider::addUserToCache> User ltolstoy is loaded ....
<BPMUserImpl::<init>> Constacted user=fkafka
<XMLProvider::addUserToCache> User fkafka is loaded ....
<BPMUserImpl::<init>> Constacted user=szweig
<XMLProvider::addUserToCache> User szweig is loaded ....
<BPMUserImpl::<init>> Constacted user=mmitch
<XMLProvider::addUserToCache> User mmitch is loaded ....
<BPMUserImpl::<init>> Constacted user=jausten
<XMLProvider::addUserToCache> User jausten is loaded ....
<BPMUserImpl::<init>> Constacted user=achrist
<XMLProvider::addUserToCache> User achrist is loaded ....
<BPMUserImpl::<init>> Constacted user=rsteven
<XMLProvider::addUserToCache> User rsteven is loaded ....
<BPMUserImpl::<init>> Constacted user=cdoyle
<XMLProvider::addUserToCache> User cdoyle is loaded ....
<BPMUserImpl::<init>> Constacted user=wshake
<XMLProvider::addUserToCache> User wshake is loaded ....
<BPMUserImpl::<init>> Constacted user=guest
<XMLProvider::addUserToCache> User guest is loaded ....
<BPMUserImpl::<init>> Constacted user=bpeladmin
<XMLProvider::addUserToCache> User bpeladmin is loaded ....
<BPMUserImpl::<init>> Constacted user=default
<XMLProvider::addUserToCache> User default is loaded ....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadRoles> XMLProvider::load() Load roles from source:users-properties.xml
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role BPMAnalyst is loaded .....
<XMLProvider::addRoleToCache> Role BPMWorkflowAdmin is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users begins
<XMLProvider::addRoleToCache> Role LoanAgentGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role LoanAnalyticGroup is loaded .....
<XMLProvider::addRoleToCache> Role Supervisor is loaded .....
<XMLProvider::addRoleToCache> Role California is loaded .....
<XMLProvider::addRoleToCache> Role WesternRegion is loaded .....
<XMLProvider::addRoleToCache> Role EasternRegion is loaded .....
<AbstractXMLProvider::loadPrincipals> AbstractXMLProvider::load() Loading users ends
<XMLAuthorizationService::init> Load provider initialization complete
<BPMAuthorizationServiceImpl::lookupUser> BPMAuthorizationServiceImpl::lookupUser():: begin, userName=jstein
<BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: begin
<BPMServiceJAZNBase::getRealm> Realm=[Realm: jazn.com]
<BPMServiceJAZNBase::getRealm> BPMAuthenticationServiceImpl::getRealm():: end
<BPMUserImpl::<init>> User=jstein was created
<BPMAuthorizationServiceImpl::lookupUser> User is found, user=RealmUser: jstein
<BPMIdentityImpl::getActions> BPMIdentityImpl::getActions()
<BPMIdentityImpl::getAllGrantedRealmRoles> Identity has the following granted realmRoles=[RealmRole: BPMWorkflowReassign, RealmRole: BPMWorkflowSuspend, RealmRole: BPMAnalyst]
<RoleProperties::load> Resource oracle/tip/pc/services/identity/role.properties is loaded, s_properties={BPMWorkflowSuspend=SUSPEND,RESUME, BPMWorkflowAdmin=ADMIN, BPMWorkflowReassign=REASSIGN, BPMPublic=VIEW_WORK_LIST,ACQUIRE,WITHDRAW,ESCALATE,ERROR,PUSH_BACK,RENEW,RELEASE,REQUEST_INFO,SUBMIT_INFO,CUSTOM,VIEW_TASK_HISTORY,VIEW_SUB_TASKS,UPDATE,ADHOC_ROUTE,OUTCOME_UPDATE_ROUTE, BPMSystemAdmin=, BPMWorkflowViewHistory=VIEW_TASK_HISTORY,VIEW_PROCESS_HISTORY, BPMAnalyst=VIEW_REPORTS}
<BPMIdentityImpl::getActions> Identity has the following roles:[BPMWorkflowReassign, BPMWorkflowSuspend, BPMAnalyst]
<BPMIdentityImpl::getActions> Role: BPMWorkflowReassign
<BPMIdentityImpl::getActions> Actions: [OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE, REASSIGN]
<BPMIdentityImpl::getActions> Role: BPMWorkflowSuspend
<BPMIdentityImpl::getActions> Actions: [RESUME, OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, SUSPEND, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE]
<BPMIdentityImpl::getActions> Role: BPMAnalyst
<BPMIdentityImpl::getActions> Actions: [OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, ACQUIRE, ADHOC_ROUTE, RENEW, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, ERROR, VIEW_WORK_LIST, RELEASE, ESCALATE, VIEW_REPORTS]
<BPMIdentityImpl::getActions> Identity has the following actions:[RESUME, OUTCOME_UPDATE_ROUTE, REQUEST_INFO, CUSTOM, VIEW_SUB_TASKS, WITHDRAW, PUSH_BACK, SUSPEND, ACQUIRE, RENEW, ADHOC_ROUTE, UPDATE, SUBMIT_INFO, VIEW_TASK_HISTORY, VIEW_WORK_LIST, ERROR, ESCALATE, RELEASE, REASSIGN, VIEW_REPORTS]
<BPMPrincipalImpl::getAttribute> Attribute=languagePreference is not set. Populate principal=jstein
<::> WorkflowService:: VerificationService.authenticateUser: successful for user = jstein identityContext = null
<::> WorkflowService:: TaskQueryService.authenticate(): completed. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ==
<::> VerificationService.createWorkflowContext: Request NOT authenticated by WS-Security framework
<BPMAuthorizationServiceImpl::lookupUser> BPMAuthorizationServiceImpl::lookupUser():: begin, userName=jstein
<BPMUserImpl::<init>> User=jstein was created
<BPMAuthorizationServiceImpl::lookupUser> User is found, user=RealmUser: jstein
<BPMPrincipalImpl::getAttribute> Attribute=languagePreference is not set. Populate principal=jstein
<::> WorkflowService:: TaskQueryService.queryTasks(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein displayColumns = TASKID, TASKNUMBER, TITLE, OUTCOME optionalInformation = assignmentFilter = My keywords = null predicate = null ordering = wfn.taskNumber ASC startRow = 0 endRow = 0
<::> WorkflowService:: TaskQueryService.getCombinedPredicate(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein assignmentFilter = My keywords = null predicate = null
<::> WorkflowService:: TaskQueryService.getAssignmentFilterPredicate(): called. token = c9pHcmBFtc4DWR0OLJvz8rFEzdme6Pp2TZRWe5OrGZEHVSHodTb5cYfhEt/ZgboPeVZZzz9FipCUi4EMWqyqKIXfQxTW8YdqoisIJyA4TUhFa2SyU0fNHjDEy9sm/JSYqqFy/nvYWsjO2nPXdsbbnpLuHUwoM2IZ+D/mTaN6pgcIPS+iyKbVgV3wBqFiqGHbuasTyn7SE6ZBnw3Xr5QOHQ== ctxUser = jstein assignmentFilter = My
<::> WorkflowService:: TaskQueryService.getAssignmentFilterPredicate(): completed. assignmentFilterPred = ((wfn.taskId=wfa.taskId AND wfa.isGroup =? AND ( wfa.assignee IN (?))) OR ( ( wfn.originalAssigneeUser IN (?)) AND wfn.taskId=wfa.taskId) AND wfn.isGroup =?) AND ( wfn.identityContext IS NULL )
<::> WorkflowService:: TaskQueryService.getCombinedPredicate(): completed. combinedPredicate = ((wfn.taskId=wfa.taskId AND wfa.isGroup =? AND ( wfa.assignee IN (?))) OR ( ( wfn.originalAssigneeUser IN (?)) AND wfn.taskId=wfa.taskId) AND wfn.isGroup =?) AND ( wfn.identityContext IS NULL )
ERROR: exception symbol "09732" not found in resource file.
<::> ORABPEL-09732
<::>
<::>
<::> at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:231)
<::> at oracle.bpel.services.workflow.repos.PersistencyDriver.getInstance(PersistencyDriver.java:152)
<::> at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:213)
<::> at oracle.bpel.services.workflow.query.impl.TaskQueryServiceWSIF.queryTasks(TaskQueryServiceWSIF.java:172)
<::> at oracle.bpel.services.workflow.query.client.TaskQueryServiceWSIFClient.queryTasks(TaskQueryServiceWSIFClient.java:66)
<::> at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.queryTasks(AbstractDOMTaskQueryServiceClient.java:180)
<::> at project1.Class1.TryTask(Class1.java:55)
<::> at project1.Class1.main(Class1.java:91)
<::> Caused by: java.lang.NullPointerException
<::> at oracle.bpel.services.workflow.repos.PersistencyDriver.getDatasourceName(PersistencyDriver.java:177)
<::> at oracle.bpel.services.workflow.repos.PersistencyDriver.initNonTransactionDataSource(PersistencyDriver.java:198)
<::> at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:224)
<::> ... 7 more
<2008-10-14 23:59:00,952> <ERROR> <oracle.bpel.services> <::>
java.lang.NullPointerException
at oracle.bpel.services.workflow.repos.PersistencyDriver.getDatasourceName(PersistencyDriver.java:177)
at oracle.bpel.services.workflow.repos.PersistencyDriver.initNonTransactionDataSource(PersistencyDriver.java:198)
at oracle.bpel.services.workflow.repos.PersistencyDriver.getNonTransactionService(PersistencyDriver.java:224)
at oracle.bpel.services.workflow.repos.PersistencyDriver.getInstance(PersistencyDriver.java:152)
at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:213)
at oracle.bpel.services.workflow.query.impl.TaskQueryServiceWSIF.queryTasks(TaskQueryServiceWSIF.java:172)
at oracle.bpel.services.workflow.query.client.TaskQueryServiceWSIFClient.queryTasks(TaskQueryServiceWSIFClient.java:66)
at oracle.bpel.services.workflow.query.client.AbstractDOMTaskQueryServiceClient.queryTasks(AbstractDOMTaskQueryServiceClient.java:180)
at project1.Class1.TryTask(Class1.java:55)
at project1.Class1.main(Class1.java:91)
Caught workflow exception:
Process exited with exit code 0.Although the versions 10.1.3.4 and 10.1.3.3 are close and should be able to use 10.1.3.4 JDev for most 10.1.3.3 development, the human tasks is the one exception. 10.1.3.3 had a few bugs fixed therefore the jar file used in JDev 10.1.3.4 may not be compatible with 10.1.3.3.
I would either use JDev 10.1.3.3 or upgrade SOA Suite to 10.1.3.4
cheers
James -
hi,
i just want to conform that .....
if u r importing a class from same package then u have to write a import for that Class or not.
As in my case i tried both import and no import statement for class1 to import it in class2, but it gives compiler error in both the cases as-----------cannot resolve symbol
symbol : class User
location: class org.apache.struts.example.Dbservlet
public void addUser(User user)
^
plz help to solve this......
AmitaIf your directory structure is something like this:
D:\java\org\apache\struts\example
And in this directory you have the classes Dbservlet.java
and User.java, with the following package statement in both the java class files:
package org.apache.struts.example;
you will not get any error if you compile from the D:\java directory like this:
D:\java>javac org\apache\struts\example\DBServlet.java -
Newbie question: cannot find symbol symbol: class STRING
I've just decided to teach myself some java, and on my first try something's going wrong and I don't know what it is.
I'm currently doing this tutorial: http://java.sun.com/docs/books/tutorial/uiswing/learn/example1.html
and everything is good until I try to compile it and I get this error in the cmd
HelloWorldSwing.java:30: cannot find symbol
cannot find symbol
symbol: class STRING
everything has been written verbatim from the tutorial, including "import javax.swing.*;"
What's wrong with it and how do I fix it?Hi,
I saw the coding that You had given a link in your post. Change the following
public static void main(String[] args) {bye for now
sat -
PLEASE HELP: cannot resolve symbol class
it's showing me the error on the following lines 7 and 9
it says cannot resolve symbol class Name and cannot resolve symbol class Phone
I also have a package name addressBook and it contains two files Entry.java and Address.java
Here is the code:
import java.io.*;
import addressBook.*;
public class AddressDr
public static void main(String[] args)throws IOException
Name name;
Address address;
Phone phone;
Entry entry;
String first, last, middle, street, city, state, zip;
int areaCode, number;
BufferedReader in;
in=new BufferedReader(new InputStreamReader(System.in));
PrintWriter outFile;
outFile=new PrintWriter(new FileWriter("Entries"));
System.out.println("Quit entered fot the first name ends the " + "application.");
System.out.print("Enter first name: ");
first=in.readLine();
while (first.compareTo("Quit") !=0)
System.out.print("Enter last name: ");
last=in.readLine();
System.out.print("Enter middle name: ");
middle=in.readLine();
name=new Name(first, last, middle);
System.out.print("Enter street address: ");
street=in.readLine();
System.out.print("Enter city: ");
city=in.readLine();
System.out.print("Enter state: ");
state=in.readLine();
System.out.print("Enter ZIP code: ");
zip=in.readLine();
address=new Address(street, city, state, zip);
System.out.print("Enter areaCode: ");
areaCode = Integer.parseInt(in.readLine());
System.out.print("Enter number: ");
number=Integer.parseInt(in.readLine());
phone=new Phone(areaCode, number);
entry= new Entry(name, address, phone);
entry.writeToFile(outFile);
System.out.print("Enter first name: ");
first=in.readLine();
outFile.close();
}OK. Here is how I did it.
I have AddressDr which is Address driver.
I have two files Address and Entry which in package addressBook.
AddressDr:
import java.io.*;
import addressBook.*;
public class AddressDr
public static void main(String[] args)throws IOException
Name name;
Address address;
Phone phone;
Entry entry;
String first, last, middle, street, city, state, zip;
int areaCode, number;
BufferedReader in;
in=new BufferedReader(new InputStreamReader(System.in));
PrintWriter outFile;
outFile=new PrintWriter(new FileWriter("Entries"));
System.out.println("Quit entered fot the first name ends the " + "application.");
System.out.print("Enter first name: ");
first=in.readLine();
while (first.compareTo("Quit") !=0)
System.out.print("Enter last name: ");
last=in.readLine();
System.out.print("Enter middle name: ");
middle=in.readLine();
name=new Name(first, last, middle);
System.out.print("Enter street address: ");
street=in.readLine();
System.out.print("Enter city: ");
city=in.readLine();
System.out.print("Enter state: ");
state=in.readLine();
System.out.print("Enter ZIP code: ");
zip=in.readLine();
address=new Address(street, city, state, zip);
System.out.print("Enter areaCode: ");
areaCode = Integer.parseInt(in.readLine());
System.out.print("Enter number: ");
number=Integer.parseInt(in.readLine());
phone=new Phone(areaCode, number);
entry= new Entry(name, address, phone);
entry.writeToFile(outFile);
System.out.print("Enter first name: ");
first=in.readLine();
outFile.close();
Entry:
package addressBook;
import java.io.*;
public class Entry
Name name;
Address address;
Phone phone;
public Entry(Name newName, Address newAddress, Phone phoneNumber)
name = newName;
address = newAddress;
phone = phoneNumber;
public Name knowName()
return name;
public Address knowAddress()
return address;
public Phone knowPhone()
return phone;
public void writeToFile(PrintWriter outFile)
outFile.println(name.knowFirstName());
outFile.println(name.knowLastName());
outFile.println(name.knowMiddleName());
oufFile.println(address.knowStreet());
outFile.println(address.knowState());
outFile.println(address.knowCity());
outFile.println(address.knowZip());
outFile.println(phone.knowAreaCode());
outFile.println(phone.knowDigits());
Address:
package addressBook;
public class Address
String street;
String city;
String state;
String zipCode;
public Address(String newStreet, String newCity, String newState, String zip)
street=newStreet;
city=newCity;
state=newState;
zipCode=zip;
public String knowStreet()
return street;
public String knowCity()
return city;
public String knowState()
return state;
public String knowZip()
return zipCode;
} -
Recieving cannot resolve symbol symbol : class Serializable
I'm receiving the error:
cannot resolve symbol symbol : class Serializable
The class is as follows:
//package cscie160.hw5;
import java.io.Serializable
* @author Eddie Brodie
* @version %I%, %G%
public class AccountInfo implements Serializable
public int _accountNumber;
public int _pin;
public AccountInfo(int accountNumber, int pin)
_accountNumber = accountNumber;
_pin = pin;
I've tried importing java.*
I've also checked my classpath.
Any ideas?Try taking the import statement out of the comment block; that might help
Maybe you are looking for
-
Call report selection screen in module pool program with tab strip control
Hi, Could anyone explain in detail to call report selection screen in module pool program with tab strip control. Thanks Mano
-
I can't update my podcasts! (error 39)
Hi, I can't update any of my podcasts after I downloaded ituned 7.1 (the newest one) and it says that an unknown error has occured (error 39 . Please can you help me! thanks, chocular1
-
VA01 - Returns Referencing Billing Document - Consider all previous Returns
I have a requirements that if there is and invoice for quantity 20 and the customer has returned 10 and then another 5 (therefore, leaving only 5 of the original 20 left to return), I need to populate the quantity on the next return with the 5 remain
-
Hi everybody! Let's share the experience of using the Gaming PC !
hi everybody ,I'm spear. Luckily,I spent all the money from Scratch tickets jackpot to buy Gaming AIO AG240.:cool: Now I want to share my using AG240 experience to you in this forum. First, you can't be debatable AG240 is really great in game perfor
-
Problem in debuging jasper reports and ADF
Hi I am using JDeveloper 11.1.2.2.0. Inside I created Fusion Web Application ADF, and on the index page created Go button. Now I created Servlet with doGet methode and conncected it to Go button. It is working OK. Now I want to run simple jasper repo