AssignmentOperator ArrayInitializer error

please help me
<%@ page language="java" import="com.emb.ongopim.handler.*, com.emb.ongopim.beans.*, java.util.*" session="true"%>
<jsp:useBean id="calInfo" scope="request" class="com.emb.ongopim.handler.CalendarHandler"/>
<jsp:setProperty name="calInfo" property="*"/>
<%
          CalendarInfo ci=new CalendarInfo();
          ci.setStart_date(request.getParameter("meetingStartdate"));
          ci.setStart_time(request.getParameter("meetingStarttime"));
          ci.setMet_end_date(request.getParameter("meetingEnddate"));
          ci.setMet_end_time(request.getParameter("meetingEndtime"));
          ci.setAlert_date(request.getParameter("meetingAlertdate"));
          ci.setAlert_time(request.getParameter("meetingAlerttime"));
          ci.setMet_location(request.getParameter("meetingLocation"));
          ci.setSubject(request.getParameter("meetingSubject"));
          int errcode=ci.validateInput(MEET);
          if(errcode==100)
          calInfo.addMeeting(ci);
          else
          String errmsg=eh.getErrorMessage(errCode);
%>
this is my jsp code and after running in tomcat i am getting "AssignmentOperator ArrayInitializer" to complete ArrayInitializerAssignment.. any one help me sort out this problem
Message was edited by:
rakesh.pachava

Hi,
Post the exception message you are getting.
And please use the code button, code tags to show your code sample, it becomes easier to read the code.

Similar Messages

  • [help!] Syntax error, insert "AssignmentOperator ArrayInitializer"...

    <%
      String USERNAME = (String)session.getAttribute("USERNAME");
        String myBlogUrl;
         if (USERNAME==null){                    
                  session.setAttribute("loginStatus","Not Logged In");//status: user NOT logged in              
                  myBlogUrl = "loginFail.jsp";
           esle {
                 myBlogUrl = "blog.jsp?username="+USERNAME;
        %>
        <ul>
          <li><a href="<%=myBlogUrl%>">My Blog</a></li>
    ...(navbar.jsp)
    1. I include masthead.jsp and navbar.jsp in a few other .jsp files using:
    <%@ include file="include/navbar.jsp" %>2. USERNAME is also declared in masthead.jsp:
    String USERNAME = (String)session.getAttribute("USERNAME");
    Tomcat gives an exception message as follows:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 11 in the jsp file: /include/navbar.jsp
    Generated servlet error:
    Syntax error, insert ";" to complete Statement
    An error occurred at line: 11 in the jsp file: /include/navbar.jsp
    Generated servlet error:
    Syntax error, insert[b] "AssignmentOperator ArrayInitializer" to complete ArrayInitializerAssignement
    3. I guesses there might be the problem with String USERNAME = (String)session.getAttribute("USERNAME");, so I deleted from navbar.jsp, but the problem still exists.
    So, this means there is some syntax problem with the statements in navbar.jsp? how can I solve the problem?

    Can't see anything wrong in the code you have posted.
    Error: AssignmentOperator ArrayInitializer
    The error message would lead me to look for any arrays you are declaring in your code. Are you declaring an array? Are you trying to initialize it? Have you closed all quotes/brackets etc etc?

  • Syntax Error - AssignmentOperator ArrayInitializer

    Hi All,
    For the following statement -
    (m_querySection.isExpanded()?(m_sashWeights[0] = 15) : (m_sashWeights[0] = 20));I am getting the error - Syntax error, insert "AssignmentOperator ArrayInitializer" to complete Expression
    The return type for the method isExpanded() is boolean.
    Please suggest me where am I going wrong?
    Thanks in advance.
    Regards,
    Ashish A.

    That construct is supposed to be an expression, not a statement. Perhaps you meant(m_querySection.isExpanded()?(m_sashWeights[0] == 15) : (m_sashWeights[0] == 20));but I suspect not as you aren't assigning the result to anything. If you are really in love with that ternary operator then you could save it by doing this:m_sashWeights[0] = (m_querySection.isExpanded() ? 15 : 20);

  • "AssignmentOperator ArrayInitializer" to complete ForInit - JSP

    The following JSP page produced an error when I tried to access it thru an html form.
    I am running Tomcat as my servlet engine\ web server.
    err msg:
    Generated servlet error:
    Syntax error, insert "AssignmentOperator ArrayInitializer" to complete ForInit
    from the following code:
    <%@ page import="java.sql.*" language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <jsp:useBean id="emp" class="company.beans.EmployeeBean" scope="session">
    <jsp:setProperty name="emp" property="lastname"/>
    </jsp:useBean>
    <body>
    <%
    company.util.DBConnect dbcon = new company.util.DBConnect();  //DBConnect class for connection to mySQL
    java.util.ArrayList al = dbcon.getEmployee(emp); //retrieve ArrayList of Employees with queried lastname
    int counter = 0;
    for (counter ; counter<al.size(); counter ++){
         out.println(al[counter].getEmployeeID());
         out.println(al[counter].getFirstNmae());
         out.println(al[counter].getLastName());
         out.println(al[counter].getRole());
    %>
    </body>
    </html>I can't figure out what went wrong.

    Syntax error, insert "AssignmentOperator ArrayInitializer" to complete ForInitYou have a syntax error. You must insert an Assignment Operator or Array Initializer to complete the For loop initialization.
    A for loop definition must contain 3 parts
    for([initialization] ; [loop continuation condition] ; [increment action])
    You are using
    for( counter ; counter < al.size() ; counter ++)
    Which contains
    for( [variable reference] ; [loop continuation condition] ; [increment action])
    Can you tell how to fix the problem now?
    Well, the real fix to not use scriptlets. The code I would use would look something like this:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <jsp:useBean id="emp" class="company.beans.EmployeeBean" scope="session">
        <jsp:setProperty name="emp" property="lastname"/>
    </jsp:useBean>
    <jsp:useBean id="dbConnector" class="company.util.DBConnect(); scope="page">
        <jsp:setProperty name="dbConnector" property="employeeLastName" value="${emp}"/>
        <c:set var="employees" value="${dbConnector.employee}"/>
    </jsp:useBean>
    <body>
        <c:forEach var="employee" items="employees">
            <c:out value="${employee.employeeID}"/><br/>
            <c:out value="${employee.firstName}"/><br/>
            <c:out value="${employee.lastName}"/><br/>
            <c:out value="${employee.role}"/><br/>
        </c:forEach>
    </body>
    </html>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Errors with a readFile method

    I wrote a method that is designed to read input from a file (readPlayers) and am getting two errors that I cannot figure out. Can you suggest why I'm getting these errors? The first error is on line 17 public void readPlayers( fin, teamArray) and reads:      Syntax error on token "(", = expected
         Syntax error on token ")", ; expected
    the second error is on line 53 else (type.equals("Hockey")) and reads Syntax error, insert ";" to complete Statement
         Syntax error, insert "AssignmentOperator ArrayInitializer" to complete ArrayInitializerAssignement
    Neither of these errors seem to fit so I'm wondering if the actual errors occur earlier in the code.??? Any help would be appreciated.
    import java.io.IOException;
    import java.util.*;
    public class TeamTwo
         private String city;
         //private String [] player;
         private static String cout;
         public static void main(String [] args) throws IOException
              Scanner fin = TFI.OpenInputFile();
              Scanner kb = new Scanner (System.in);
              int menuChoice = 0;
              public void readPlayers( fin, teamArray)
                  Player newPlayer = null;
                  int games = 0;               //basketball player
                  int timesBatted = 0;     //baseball player
                  double battingAvg = 0.0;//baseball player
                  int score = 0;               //hockey player
                  Player [] teamArray = new Player [1];
                 // String cityName = fin.nextLine();
                  if(fin.hasNext())
                        city = fin.nextLine();
                  while (fin.hasNext())
                           String type = fin.nextLine();
                           String firstName = fin.nextLine();
                           String lastName = fin.nextLine();
                           int salary = fin.nextLine();
                           fin.next();//clears buffer
                           if (type.equals("Basketball"))
                               games = fin.nextInt();
                               newPlayer = new Basketball(firstName, lastName, salary);
                           else if (type.equals("Baseball"))
                               battingAvg = fin.nextDouble();
                               timesBatted = fin.nextInt();
                               newPlayer = new Baseball(firstName, lastName, salary);
                           else (type.equals("Hockey"))
                               scoring = fin.nextInt();
                               newPlayer = new Hockey(firstName, lastName, salary);
                           fin.next();//clears buffer
                           teamArray.addPlayer( newPlayer );//call the addPlayer function
                      }//end while
              }//end readPlayers function
              

    The first error is on line 17
    public void readPlayers( fin, teamArray)When declaring a method, you have to indicate the types of the parameters, e.g., public void readPlayers(Scanner fin, Player[] teamArray) {Further, you may NEVER define a method within another method.
    the second error is on line 53
    else (type.equals("Hockey"))type.equals("...") is only for testing equality. It returns a boolean value of true or false. There are two possible solutions here:
    else if (type.equals("Hockey")) //to test if variable "type" is set to the value "Hockey"
    or
    else (type="Hockey") //to force the variable "type" to represent the string "Hockey"
    Which to use depends on what you want to accomplish.

  • Invalid AssignmentOperator

    I've developed my web application using Java 5 and mySql 5 and Tomcat 5.5. Everything works well in my machine. But when I uploaded it, the result of the pages is an exception page full of this kind of errors:
    n error occurred at line: 49 in the jsp file: /index.jsp
    Generated servlet error:
    Syntax error on token "<", invalid AssignmentOperator
    An error occurred at line: 49 in the jsp file: /index.jsp
    Generated servlet error:
    Syntax error on token "=", != expected
    An error occurred at line: 49 in the jsp file: /index.jsp
    Generated servlet error:
    Syntax error on token "<", invalid AssignmentOperator
    The server's tomcat version is 5 but I don't know the exact minor version and build.
    My Tomcat is: Apache Tomcat/5.5.20
    The host tomcat is: Apache Tomcat/5.5.9
    Message was edited by:
    Ehsun

    this is whole file
    <%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@page import="java.util.ArrayList"%>
    <%@page import="ir.webwidgets.Application.Application"%>
    <%@page import="ir.webwidgets.Application.Link"%>
    <%@page import="java.util.Iterator"%>
    <%@page import="ir.webwidgets.Member.Member"%>
    <%@page import="org.nioto.browser.Browser"%>
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         <title><%=application.getInitParameter("pageTitle") %></title>
         <link rel="stylesheet" href="css/layout.css" type="text/css" />
         <link rel="stylesheet" href="css/links.css" type="text/css" />
         <link rel="stylesheet" href="css/form.css" type="text/css" />
         <link rel="stylesheet" href="css/messages.css" type="text/css" />
         <style type="text/css">
         </style>
    </head>
    <%
    request.setCharacterEncoding("UTF-8");
    response.setCharacterEncoding("UTF-8");
    Application app = Application.getInstance("");
    Member loggedInMember = (Member) session.getAttribute("loggedInMember");
    %>
    <body>
         <div class="header">
              <table class="header" cellpadding="0" cellspacing="0">
              <tr>
                   <td class="right">
                        <a href="http://www.webwidgets.ir"><img src="images/banner.gif" alt="&#1575;&#1576;&#1586;&#1575;&#1585;&#1607;&#1575;&#1740; &#1581;&#1585;&#1601;&#1607; &#1575;&#1740; &#1608;&#1576;" title="" border="0"/></a>
                   </td>
                   <td class="left">
                        <%@ include file="./jsp/header.jsp" %>               
                   </td>
              </tr>
              </table>
         </div>
         <div class="middle">
              <table class="middle" cellpadding="0" cellspacing="0">
              <tr>
                   <td class="right">
                        <div class="navigation">
                             <%
                             ArrayList<Link> links = app.getNavigationLinks(loggedInMember != null);
                             Iterator<Link> it = links.iterator();
                             while(it.hasNext()) {
                                  Link link = it.next();
                             %>
                                  <a class="navigation" href="<%=link.getHref() %>" target="<%=link.getTaget() %>" title="<%=link.getHint() %>"><%=link.getTitle() %></a>
                             <%
                             %>
                        </div>
                        <br/>
                        <%@ include file="./jsp/members.jsp" %>
                   </td>
                   <td class="center"> 
                   </td>
                   <td class="left">
                        <div class="group">
                             <div class="title">                              
                                  &#1582;&#1608;&#1588; &#1570;&#1605;&#1583;&#1740;&#1583;
                             </div>
                             <div class="content">
                                  <%
                                  if(loggedInMember != null) {
                                  %>
                                       <%@ include file="./jsp/loginstatus.jsp" %>
                                  <%
                                  } else {                                   
                                  %>
                                       <%@ include file="./jsp/loginform.jsp" %>
                                  <%
                                  %>
                             </div>
                        </div>          
                        <div class="group">
                             <div class="title">&#1575;&#1585;&#1578;&#1576;&#1575;&#1591; &#1576;&#1575; &#1605;&#1583;&#1740;&#1585;</div>
                             <div class="content">
                             <%@ include file="./jsp/contactform.jsp" %>
                             </div>
                        </div>
                   </td>
              </tr>
              </table>
         </div>
         <div class="footer">
              <%@ include file="./jsp/footer.jsp" %>
         </div>
    </body>

  • Generics error

    I'm using generics in my jsp and it compiles fine, but when I run it I get run-time compile error:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Syntax error on token "<", invalid AssignmentOperator
    Syntax error on token "=", != expectedRelevant code:
    Agent agent = (Agent) request.getAttribute("agent");
    ArrayList<License> licenses = agent.getLicenses();I'm using java 5.0 and tomcat 5.5.
    Thanks

    Actually just read a post that says its related to Tomcat. I will download the latest version and see what happens.

  • Problems with writing to file, and with ActionListener.

    I have been trying to write a Payroll Division type program as my school Computer Science Project. However, I have a few problems with it...
    import java.io.IOException;
    import java.io.FileOutputStream;
    import java.io.FileInputStream;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.util.StringTokenizer;
    import javax.swing.*;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.*;
    public class Personnel implements ActionListener  {    
             JFrame GUIFrame;
             JLabel ID, Line, OKText,AnswerField;
             JTextField IDField, LineField;
             JButton OK;
             JPanel GUIPanel;
             int trialCounter=0;
             final static int employeeNumber = 7;
             final static int maxValue = ((employeeNumber*4)-1);
            //Number of employees, which would be in real life passed by the Payroll division.   
            public static String [][] sortHelp = new String [employeeNumber+1][3];    /** Creates a new instance of Personnel */       
            public Personnel() {
              GUIFrame = new JFrame("PersonnelSoft"); //create title header.
                     GUIFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                     GUIFrame.setSize(new Dimension(100, 140));
                     GUIPanel= new JPanel(new GridLayout(2, 2));
                     addWidgets();
                     GUIFrame.getRootPane().setDefaultButton(OK);
                     GUIFrame.getContentPane().add(GUIPanel, BorderLayout.CENTER);
                     GUIFrame.pack();
                    GUIFrame.getContentPane().setVisible(true);
                    GUIFrame.setVisible(true);
            private void addWidgets() {
                  ID = new JLabel ("Please enter your employee Identification Number:", SwingConstants.LEFT);
                  IDField = new JTextField ("ID", 5);
                  Line = new JLabel ("Please enter the line of your payroll with which you have concerns:", SwingConstants.LEFT);
                  LineField = new JTextField ("###", 2);
                  OKText = new JLabel ("Click OK when you have verified the validity of your request", SwingConstants.LEFT);
                  OK = new JButton ("OK");
                  OK.setVerticalTextPosition(AbstractButton.CENTER);
                  OK.setMnemonic(KeyEvent.VK_I);
                  AnswerField = new JLabel("The Result of your Querie will go here", SwingConstants.LEFT);
                  GUIPanel.add(ID);
                  GUIPanel.add(IDField);
                  GUIPanel.add(Line);
                  GUIPanel.add(LineField);
                  GUIPanel.add(OKText);
                  GUIPanel.add(OK);
                  GUIPanel.add(AnswerField);
                  OK.addActionListener(this);
                  ID.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
                  OKText.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
                  Line.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            public static void ArrayCreate() throws IOException {   
              //creates a employeeNumber x 3 array, which will hold all data neccessary for future sorting by employee ID number.      
              int counter = 2;      
              int empCounter = 1;      
              String save;
              //avoid having to waste memory calculating this value every time the for loop begins 
              FileInputStream inFile = new FileInputStream("C:\\Documents and Settings\\Abraham\\humanresource4\\src\\humanresource4\\HR.txt"); 
              BufferedReader in = new BufferedReader(new InputStreamReader(inFile));
              String line;
                    line = in.readLine();
                    StringTokenizer st = new StringTokenizer(line);
                    save = st.nextToken();
                    sortHelp[0][0] = save;
                    sortHelp[0][2] = save;
                    while (st.hasMoreTokens()) {
                    save = st.nextToken();   
                    sortHelp[0][1] = save;
                    while (counter <= maxValue) {
                    line = in.readLine();
                    if (((counter - 1) % 4) == 0) {
                    st = new StringTokenizer(line);
                    sortHelp[empCounter][0] = st.nextToken();
                    sortHelp[empCounter][2] = sortHelp[empCounter][0];
                    while (st.hasMoreTokens()) {
                    save = st.nextToken();   
                    sortHelp[empCounter][1] = save;
                    empCounter++;
                    counter++;
                 public static String[] joinString() {
                      String[] tempStorage = new String[employeeNumber+1];
                      int counter;
                      for (counter = 0; counter <= employeeNumber; counter++) {
                           tempStorage[counter] = (sortHelp[counter][1] + sortHelp[counter][0]);
                      return (tempStorage);
                 public static String[] sortEm(String[] array, int len)
                     java.util.Arrays.sort(array);
                     return array;
                 public static void splitString(String[] splitString){
                    int counter;
                    for (counter = 0; counter <= employeeNumber; counter++){
                         sortHelp[counter][0]=splitString[counter].substring( 5 );
                         sortHelp[counter][1]=splitString[counter].substring(0,5);
                 void setLabel(String newText) {
                     AnswerField.setText(newText);
                 void writetoHR(String local) throws IOException {
                      FileOutputStream outFile = new FileOutputStream ("C:\\Documents and Settings\\Abraham\\humanresource4\\src\\humanresource4\\HR2.txt");
                       BufferedWriter out = new BufferedWriter(new OutputStreamWriter(outFile));
                       out.write(local+"the preceding employee number is not in our database, but has submitted a request. Please sort out the issue");
                       System.exit(0);
                 public void actionPerformed(ActionEvent e){
                      boolean flag=false;
                      String local=IDField.getText();
                      int i=0;
                      while((i<=employeeNumber)&&(flag==false)){
                           if (sortHelp[1]==local) {
                   flag=true;
              i++;
         trialCounter++;
         if (trialCounter>=3)
              writetoHR(local);
         if (flag==false)
              setLabel("Your ID number does not exist in our records. Verify your ID and try again.");
         else {
              switch (LineField.getText())
              case 04:
                   setLabel("Your pay is calculated by multiplying your working hours by the amount per hour. If both of these fields are satisfactory to you, please contact humanresource");
                   break;
              case 03:
                   setLabel("Hourly amount was calculated by the system, by dividing your yearly pay 26 and then 80.");
                   break;
              case 07:
                   setLabel("Overtime pay was calculated by multiplying regular hourly pay by 1.1");
                   break;
              case 06:
                   setLabel("The overtime hourly pay was multiplied by the amount of overtime hours.");
                   break;
              case 10:
                   setLabel("For holiday hours, your pay is increased by 25%.");
                   break;
              case 09:
                   setLabel("The holiday hourly pay was multiplied by your amount of holiday hours.");
                   break;
              case 11:
                   setLabel("Your total pay was calculated by adding all the separate types of payment to your name.");
                   break;
              case 17:
                   setLabel("Your net pay was found by subtracting the amount withheld from your account");
                   break;
              case 19:
                   setLabel("Your sick hours remaining were taken from a pool of 96 hours.");
                   break;
              default:
                   setLabel("Please contact humanresource.");
              break;
    private static void CreateAndShowGUI() {
    JFrame.setDefaultLookAndFeelDecorated(true);
    Personnel GUI = new Personnel();
         public static void main(String[] args) throws IOException {
              String[] temporary = new String[employeeNumber];
              ArrayCreate();
    temporary = joinString();
    temporary = sortEm(temporary, employeeNumber);
    splitString(temporary);
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    CreateAndShowGUI();
    int row;
    int column;
         for (row = 0; row < (employeeNumber); row++) {    // verify proper output by ArrayCreate splitString
    for (column = 0; column <= 2; column++) {
    System.out.print(sortHelp[row][column]);
    System.out.print(' ');
    System.out.print(' ');
    System.out.println();
    1) It does not permit me to switch on a String. How do I solve that?
    2)How would I throw an exception (IO) within actionperformed?
    3)Generally, if cut it down to everything except the writing to a file part, the actionperformed script causes an error... why?
    Thanks in advance.
    And sorry for the relative lameness of my question...
    ---abe---

    Thank you very much. That did solve almost all the problems that I had...
    I just have one more problem.
    First (here's the new code):
    import java.io.IOException;
    import java.io.FileOutputStream;
    import java.io.FileInputStream;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.util.StringTokenizer;
    import javax.swing.*;
    import java.util.*;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.*;
      public class Personnel implements ActionListener  {    
             JFrame GUIFrame;
              JLabel ID, Line, OKText,AnswerField;
               JTextField IDField, LineField;
               JButton OK;
               JPanel GUIPanel;
               int trialCounter=0;
         final static int employeeNumber = 7;
         final static int maxValue = ((employeeNumber*4)-1);
                public static String [][] sortHelp = new String [employeeNumber+1][3];   
         public Personnel() {
              GUIFrame = new JFrame("PersonnelSoft"); //create title header.
             GUIFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             GUIFrame.setSize(new Dimension(100, 140));
             GUIPanel= new JPanel(new GridLayout(2, 2));
             addWidgets();
             GUIFrame.getRootPane().setDefaultButton(OK);
             GUIFrame.getContentPane().add(GUIPanel, BorderLayout.CENTER);
             GUIFrame.pack();
            GUIFrame.getContentPane().setVisible(true);
            GUIFrame.setVisible(true);
            private void addWidgets() {
                  ID = new JLabel ("Please enter your employee Identification Number:", SwingConstants.LEFT);
                  IDField = new JTextField ("ID", 5);
                  Line = new JLabel ("Please enter the line of your payroll with which you have concerns:", SwingConstants.LEFT);
                  LineField = new JTextField ("###", 2);
                  OKText = new JLabel ("Click OK when you have verified the validity of your request", SwingConstants.LEFT);
                  OK = new JButton ("OK");
                  OK.setVerticalTextPosition(AbstractButton.CENTER);
                  OK.setMnemonic(KeyEvent.VK_I);
                  AnswerField = new JLabel("The Result of your Querie will go here", SwingConstants.LEFT);
                  GUIPanel.add(ID);
                  GUIPanel.add(IDField);
                  GUIPanel.add(Line);
                  GUIPanel.add(LineField);
                  GUIPanel.add(OKText);
                  GUIPanel.add(OK);
                  GUIPanel.add(AnswerField);
                  OK.addActionListener(this);
                  ID.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
                  OKText.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
                  Line.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
            public static void ArrayCreate() throws IOException {   
              int counter = 2;      
              int empCounter = 1;      
              String save;
              FileInputStream inFile = new FileInputStream("C:\\Documents and Settings\\Abraham\\humanresource4\\src\\humanresource4\\HR.txt"); 
              BufferedReader in = new BufferedReader(new InputStreamReader(inFile));
              String line;
                    line = in.readLine();
                    StringTokenizer st = new StringTokenizer(line);
                    save = st.nextToken();
                    sortHelp[0][0] = save;
                    sortHelp[0][2] = save;
                    while (st.hasMoreTokens()) {
                    save = st.nextToken();   
                    sortHelp[0][1] = save;
                    while (counter <= maxValue) {
                    line = in.readLine();
                    if (((counter - 1) % 4) == 0) {
                    st = new StringTokenizer(line);
                    sortHelp[empCounter][0] = st.nextToken();
                    sortHelp[empCounter][2] = sortHelp[empCounter][0];
                    while (st.hasMoreTokens()) {
                    save = st.nextToken();   
                    sortHelp[empCounter][1] = save;
                    empCounter++;
                    counter++;
                 public static String[] joinString() {
                      String[] tempStorage = new String[employeeNumber+1];
                      int counter;
                      for (counter = 0; counter <= employeeNumber; counter++) {
                           tempStorage[counter] = (sortHelp[counter][1] + sortHelp[counter][0]);
                      return (tempStorage);
                 public static String[] sortEm(String[] array, int len)
                     java.util.Arrays.sort(array);
                     return array;
                 public static void splitString(String[] splitString){
                    int counter;
                    for (counter = 0; counter <= employeeNumber; counter++){
                         sortHelp[counter][0]=splitString[counter].substring( 5 );
                         sortHelp[counter][1]=splitString[counter].substring(0,5);
                 void setLabel(String newText) {
                     AnswerField.setText(newText);
                 void writetoHR(String local) throws IOException {
                      FileOutputStream outFile = new FileOutputStream ("C:\\Documents and Settings\\Abraham\\humanresource4\\src\\humanresource4\\HR2.txt");
                       BufferedWriter out = new BufferedWriter(new OutputStreamWriter(outFile));
                       out.write(local+"the preceding employee number is not in our database, but has submitted a request. Please sort out the issue");
                       System.exit(0);
                 public void actionPerformed(ActionEvent e){
                      boolean flag=false;
                      String local=IDField.getText();
                      local trim();
                      int i=0;
                      while((i<employeeNumber)&&(flag==false)){
                           if (sortHelp[1]==local) {
                   flag=true;
              else {
         i++;
         trialCounter++;
         if (trialCounter>=3)
              try {
                   writetoHR(local);
              } catch (IOException exception) {
    setLabel("We are sorry. The program has encountered an unexpected error and must now close");
              } finally {
         if (flag==false)
              setLabel("Your ID number does not exist in our records. Verify your ID and try again.");
         else {
              final Map m = new HashMap();
              m.put("04","Your pay is calculated by multiplying your working hours by the amount per hour. If both of these fields are satisfactory to you, please contact humanresource.");
              m.put("03", "Hourly amount was calculated by the system, by dividing your yearly pay 26 and then 80.");
              m.put("07", "Overtime pay was calculated by multiplying regular hourly pay by 1.1");
              m.put("06", "The overtime hourly pay was multiplied by the amount of overtime hours.");
              m.put("10", "For holiday hours, your pay is increased by 25%.");
              m.put("09", "The holiday hourly pay was multiplied by your amount of holiday hours.");
              m.put("11", "Your total pay was calculated by adding all the separate types of payment to your name.");
              m.put("17", "Your net pay was found by subtracting the amount withheld from your account.");
              m.put("19", "Your sick hours remaining were taken from a pool of 96 hours.");
    setLabel(m.get(LineField.getText()));
    private static void CreateAndShowGUI() {
    JFrame.setDefaultLookAndFeelDecorated(true);
    Personnel GUI = new Personnel();
    public static void main(String[] args) throws IOException {
              String[] temporary = new String[employeeNumber];
              ArrayCreate();
    temporary = joinString();
    temporary = sortEm(temporary, employeeNumber);
    splitString(temporary);
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    CreateAndShowGUI();
    int row;
    int column;
         for (row = 0; row < (employeeNumber); row++) {    // verify proper output by ArrayCreate splitString
    for (column = 0; column <= 2; column++) {
    System.out.print(sortHelp[row][column]);
    System.out.print(' ');
    System.out.print(' ');
    System.out.println();
    Now that code above produces two errors. First of all.
    local trim();produces the error:
    Syntax error, insert "AssignmentOperator ArrayInitializer" to complete ArrayInitializerAssignementSecondly, if I take that into comments, the line
    setLabel(m.get(LineField.getText()));Produces the error:
    The method setLabel(String) in the type Personnel is not applicable for the arguments (Object)If anybody could help me solve these, I would be sincerely thankfull.
    Now, before anybody asks as to why I want to trim the String in the first place, it is due to the fact that I compare it to another String that is without whitespaces. Thus the field that DOES have whitespaces was preventing me from launching into the if loop:
    if (sortHelp[1]==local) {
                   flag=true;
    (within actionperformed) Or at least that's my explanation as to why the loop never launched. If it is wrong, can somebody please explain?)
    I apologize for the horrible indentation and lack of comments. This is an unfinished version.. I'll be adding the comments last (won't that be a joy), as well as looking for things to cut down on and make the program more efficient.
    Anyways,
    Thanks in Advance,
    ---abe---

  • Problem with collections

    hello all,
    i am getting the systex error (multiple markers at the line 3)
    from the following code, (i am using java 1.5 and eclipse 3)
    import java.util.*;
    public class FindDups {
        public static void main(String args[]) {
            Set <String> s = new HashSet<String>(); //ine 3
            for (String a : value){
                if (!s.add(a))
                    System.out.println("Duplicate detected: "+a);
            System.out.println(s.size()+" distinct words detected: "+s);
    }thanks
    daya

    thanks for replay,
    values come from command line (command line parameter)
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         Syntax error on token "<", invalid AssignmentOperator
         Syntax error on token "=", != expected
         Syntax error on token "<", ( expected
         Syntax error on token "(", invalid Expression
         Syntax error on token(s), misplaced construct(s)
         Syntax error on token ")", : expected
         at collection.FindDups.main(FindDups.java:18)

  • Handle lists

    I'd like to print a list in my jsp. For example this is the code:
    <%@ page language="java" import="java.util.*,java.lang.*" %>
    <% List<String> l1 = new List();
    l1.add("Hi!");
    l1.add(" How");
    l1.add(" are");
    l1.add(" you?");
    ListIterator<String> iter = l1.iterator(); %>
    <html>
    <title>Test</title>
    <body>
    <%
    while(iter.hasNext()) { %>
    <%= iter %>
    <% iter.next();
    } %>
    </body>
    </html>
    And when I try to run it... the following error appears :
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 3 in the jsp file: /index.jsp
    Generated servlet error:
    Syntax error on token "<", invalid AssignmentOperator
    An error occurred at line: 3 in the jsp file: /index.jsp
    Generated servlet error:
    Syntax error on token "=", != expected
    An error occurred at line: 3 in the jsp file: /index.jsp
    Generated servlet error:
    Syntax error on token "<", invalid AssignmentOperator
    An error occurred at line: 3 in the jsp file: /index.jsp
    Generated servlet error:
    Syntax error on token "=", != expected
    Can someone help me please? Did I make a mistake or what should I do?

    I found that you cannot sync your distributioin lists from Outlook but you can creat distribution/groups in the cloud. You creat a group name, then you click on all contacts.  Then when the names appear on the right hand side you drag the name across to the group name.

  • Syntax error, insert "AssignmentOperator Expression" to complete Expression

    Hi experts,
    I am very new in Java. Currently, I get stuck in the exception of program. Please help me figure out what is the issue. The eclipse raises the error "Syntax error, insert "AssignmentOperator Expression" to complete Expression" at the command "exception;" as below code.
    Thanks,
    Hieu
    Edited by: user122479 on Apr 5, 2013 4:23 PM

    user122479 wrote:
    I put { code } as your advice, but it is still error.You put the tage in your *.java file?
    Oh dear!
    I think you should  take a few days to go trough the Java tutorials
    http://docs.oracle.com/javase/tutorial/ starting at "Trails Covering the Basics"
    Then you should find a tutorial on your IDE to learn how to import a project.
    Programming is a craft.
    And as with any craft you need some knowledge on your matter and training on your tools.
    A forum is not the right place to gather either one.
    bye
    TPD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • "Syntax error, insert "AssignmentOperator Expression" to complete ForInit"?

    I am getting this unknown error and do not know how to solve it.
    here is my code:
    it gives me the error for the first part of both for loops.
    int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP = 3;
              int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP = 3;
              int THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP = 0;
              int THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP = 0;
              int THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP = 3;
              for(THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP;
                   THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP;
                        THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP++)
                   for(THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP;
                        THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP;
                             THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP++)
                        THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP *= THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP;
              }

    JacobsB wrote:
    it has to be like this
    int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP = 3;
              int THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP = 3;
              int THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP;
              int THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP;
              int THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP = 3;
              for(THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP = 0;
                   THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHEFIRSTLOOP;
                        THISHOLDSTHECOUNTERVALUEFORTHEFIRSTLOOP++)
                   for(THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP = 0;
                        THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP <= THISHOLDSTHEVALUEOFTHENUMBEROFTIMESTOLOOPINTHESECONDLOOP;
                             THISHOLDSTHECOUNTERVALUEFORTHESECONDLOOP++)
                        THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP *= THISHOLDSTHEVALUECALCULATEDTHOUGHTHEFIRSTANDSECONDLOOP;
    Thanks JacobsB.

  • Error on token(jsp error)

    Hi i am writing a code in which i have to call one jsp page from another but as soon as the control gets transferred i get the error msg as:
    Syntax error on token(s), misplaced construct(s)
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error, insert "AssignmentOperator Expression" to complete Assignment
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error, insert ";" to complete Statement
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    forward cannot be resolved
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    The operator / is undefined for the argument type(s) String, void
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 19 in the jsp file: /second/process.jsp
    Syntax error on tokens, delete these tokens
    16: if(rs.next()==false)
    17: {
    18:
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    An error occurred at line: 22 in the jsp file: /second/process.jsp
    Syntax error, insert "}" to complete Statement
    19: <jsp:forward page="success.jsp"/>
    20:
    21: }
    22: %>
    23:
    24: <%
    25: else
    An error occurred at line: 31 in the jsp file: /second/process.jsp
    Syntax error, insert "Finally" to complete TryStatement
    28: <jsp:forward page="fail.jsp"/>
    29: <%
    30: }
    31: }
    32: %>
    33: <%catch(Exception e)
    34: {
    An error occurred at line: 32 in the jsp file: /second/process.jsp
    Syntax error, insert "}" to complete Block
    29: <%
    30: }
    31: }
    32: %>
    33: <%catch(Exception e)
    34: {
    35:
    I am using MS-ACCESS AS DATABASE.
    the jsp code is:
    {color:#ff0000}<%@ page contentType="text/html; charset=UTF-8"%>
    <%@ page import="java.io.{color}{color:#ff0000}*"%>*
    *<%@ page import = "java.sql.*"%>
    <%
    String account=request.getParameter("ac");
    String password=request.getParameter("pass");
    String url="Jdbc:Odbc:Namrata";
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con=DriverManager.getConnection(url);
    Statement stmt=con.createStatement();
    ResultSet rs=stmt.executeQuery("select from database1 where Account="+account+"and Password="+password);
    if(rs.next()==false)
    <jsp:forward page="success.jsp"/>
    %>
    <%
    else
    %>
    <jsp:forward page="fail.jsp"/>
    <%
    %>
    <%catch(Exception e)
    out.println("the exception is:"+e);
    %>{color}

    Namrata.Kakkar wrote:
    but i have google searched and came to know that in jsp whatever java code we have to write we will write in tagsThat was not very good advice. Like I said, get Sun's Java EE tutorial (it's free) and learn how to do it the correct way.

  • Oracle Service Bus 11gR3(11.1.1.3.0) Clustering Configuration Error.

    Hi ,
    I am trying to configure a domain with a AdminServer and 2 Managed servers hosting Oracle Service Bus.
    I created a admin server and it started up fine. Then i extended the domain and checked on Oracle Service Bus and tried to create two managed servers and assigned it to a cluster.
    Though when i created a managed server assigned to a cluster it was all working fine. I would like to create another managed server and assign it to the cluster.
    Any help with this problem would be very helpful.
    As soon as I assign two servers to the cluster I get an exception and the Configuration Wizard throws exception.
    Jan 23, 2011 2:54:30 PM [THREAD: WizardController] com.oracle.cie.domain.script.jython.CommandExceptionHandler handleException
    SEVERE: Error: assign() failed.
    com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: Unable to find JMSQueue wli.reporting.purge.queue
    at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
    at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1538)
    at com.oracle.cie.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:956)
    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.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx0.assign$10(<iostream>:61)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx3.f$0(<iostream>:95)
    at org.python.pycode._pyx3.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at com.oracle.cie.domain.script.jython.WLSTOfflineInterpreterHelper.executeScript(WLSTOfflineInterpreterHelper.java:138)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScript(WLSAutoDeployer.java:5286)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScripts(WLSAutoDeployer.java:5168)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScriptsByState(WLSAutoDeployer.java:5227)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScriptsByState(WLSAutoDeployer.java:1449)
    at com.oracle.cie.domain.WLSAutoDeployer.executeScripts(WLSAutoDeployer.java:330)
    at com.oracle.cie.domain.assignment.ServerClusterAssignment.acceptChanges(ServerClusterAssignment.java:62)
    at com.oracle.cie.domain.assignment.AssignmentTree.acceptChanges(AssignmentTree.java:465)
    at com.oracle.cie.domain.operation.AssignmentOperation.acceptChanges(AssignmentOperation.java:104)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.saveChanges(AssignmentGUITask.java:256)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.onLeave(AssignmentGUITask.java:280)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.okNext(AssignmentGUITask.java:142)
    at com.oracle.cie.wizard.WizardController.nextTask(WizardController.java:592)
    at com.oracle.cie.wizard.WizardController.run(WizardController.java:469)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.oracle.cie.domain.script.ScriptException: Unable to find JMSQueue wli.reporting.purge.queue
    at com.oracle.cie.domain.script.ScriptExecutor.pinJMSDestForEmbeddedScript(ScriptExecutor.java:3343)
    at com.oracle.cie.domain.script.ScriptExecutor.processAssignmentByName(ScriptExecutor.java:1463)
    at com.oracle.cie.domain.script.jython.WLScriptContext.assign(WLScriptContext.java:952)
    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.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx0.assign$10(<iostream>:61)
    at org.python.pycode._pyx0.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.pycode._pyx3.f$0(<iostream>:99)
    at org.python.pycode._pyx3.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at com.oracle.cie.domain.script.jython.WLSTOfflineInterpreterHelper.executeScript(WLSTOfflineInterpreterHelper.java:139)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScript(WLSAutoDeployer.java:5286)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScripts(WLSAutoDeployer.java:5168)
    at com.oracle.cie.domain.WLSAutoDeployer.executeEmbeddedScriptsByState(WLSAutoDeployer.java:5227)
    at com.oracle.cie.domain.WLSAutoDeployer.executeAllEmbeddedScriptsByState(WLSAutoDeployer.java:1450)
    at com.oracle.cie.domain.WLSAutoDeployer.executeScripts(WLSAutoDeployer.java:330)
    at com.oracle.cie.domain.assignment.ServerClusterAssignment.acceptChanges(ServerClusterAssignment.java:62)
    at com.oracle.cie.domain.assignment.AssignmentTree.acceptChanges(AssignmentTree.java:466)
    at com.oracle.cie.domain.operation.AssignmentOperation.acceptChanges(AssignmentOperation.java:104)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.saveChanges(AssignmentGUITask.java:256)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.onLeave(AssignmentGUITask.java:280)
    at com.oracle.cie.wizard.domain.gui.tasks.AssignmentGUITask.okNext(AssignmentGUITask.java:143)
    Thanks
    Edited by: karpra on Jan 23, 2011 3:19 PM

    Anuj,
    Thanks for your reply.
    May be i was not too clear in my previous post.
    I do not see this problem when i start the managed servers.
    I stumble across this problem when i try to configure a cluster containing two managed servers in the configuration wizard. Earlier i had run the rcu utility while installing OSB on top of weblogic server.
    So when i try to create a domain with osb it checks for DEV_SOAINFRA and i change the default derby connection to oracle(my database) and then to test i tried creating a cluster with one managed server it seemed to be working fine.
    Now i tried creating two managed servers in a cluster in configuration wizard as soon as i try to assign one managed server to cluster its fine , once i assign the second managed server it fails with that exception and the configuration wizard displays error occured and it terminates.
    The exact problem is as soon as i assign two managed servers to a cluster it fails(configuration wizard)
    I would guess its a problem creating a distributed jsm system with queue and topics that osb uses.
    Note : - It would be helpful as well if i can somehow create a distributed jms system used by osb for other managed server (using WLST), and then i can create a new managed server in the Admin console and assign it to the cluster as well.
    Edited by: 698740 on Jan 24, 2011 4:42 AM

  • Assignment operator error

    Error is insert "AssignmentOperator Expression" to complete Expression     
    code snippet is
        public String readVisualTag(Object obj, String s)
            throws VisualTagException, IOException
            Image image;
            if(obj == null)
                throw new NullPointerException();
            if(!s.equals("Data Matrix"))
                throw new IllegalArgumentException("Symbology " + s + " is not supported.");
            image = (Image)obj;
            String s1;
            int i = image.getWidth();
            int j = image.getHeight();
            DebugPrint.info("image w=" + i + " h=" + j);
            DebugPrint.info("Copy image to short [] buffer");
            int k;
            short aword0[] = new short[k = i * j];
            for(int l = 0; l < j; l++)
                int ai[] = new int;
    image.getRGB(ai, 0, i, 0, l, i, 1);
    for(int i1 = 0; i1 < i; i1++)
    int j1;
    int k1 = (j1 = ai[i1]) >>> 16 & 0xff;
    int l1 = j1 >>> 8 & 0xff;
    int i2 = j1 & 0xff;
    int j2 = (k1 + l1 + i2) / 3;
    aword0[l * i + i1] = (short)j2;
    DebugPrint.info("Done image copy");
    Ecc200Decoder ecc200decoder;
    (ecc200decoder = new Ecc200Decoder()).setParams(aword0, i, j, false);
    a a1 = new a("jdebug");
    ecc200decoder.setDemoCallback(a1);
    if((s1 = ecc200decoder.decode()) == null)
    throw new VisualTagException(22);
    return s1;
    Exception exception;
    exception;
    DebugPrint.severe("readVisualTag exception!!! " + exception);
    return null;
    public void close()
    public NFCContainer read(boolean flag)
    throws ContactlessException, IOException
    return null;
    public void write(NFCContainer nfccontainer)
    throws ContactlessException, IOException
    I am getting the same error in 2 places in the program.. Could some1 please help                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Error is in the line where Exception exception is written... forgot to mention

Maybe you are looking for

  • Constant Reboots and Incorrect Date/Time

    My phone constantly shuts down and the red light blinks very slow - maybe once every 15 seconds. If I remove the battery when the phone comes back on it shows a date/time of Wed, Dec 31 1969 7pm???

  • Is any one else having issues with iMessages since iOS7?

    Since iOS7 I have been having issues with iMessages. They just stop sending and I have to re-start my iPhone or iPad to get these working again. This is happening to my friends as well on different networks but all on iOS7. Is any one else having thi

  • Ibook reader for pc?

    thought I saw that there was an ibook reader for PC, but don't find it.  Did I misremember? Thanks

  • Internal speaker will not play music out loud

    i need help. I can not figure out how to get my music to play through the internal speaker on my ipod touch. i have tried going to (1) settings, then (2) general, then (3) sound effects and then i have tried choosing "speaker" & also "both" (headphon

  • Gave wrong Email at apple store, how to get a invoice now?

    when i bought my iPhone i gave a Email that after that discovered that he was out of order... how can i get a invoice now? ty.