Required:boolean

I guess I must be stupid but cannot get this to compile
import java.io.*;
public class diag_72 {
public static void main(String[ ] args) throws
IOException {
String inputFile ="c:\\java\\image.raw";
String outputFile = "C:\\java\\new.raw";
FileInputStream in = new
FileInputStream(inputFile);
     FileOutputStream out = new
FileOutputStream(outputFile) ;
int rws,cl,thresh,vec1 [ ] [ ];
boolean testbool;
cl=0;
vec1=new int[256] [256];
for (rws=0;rws<256;rws++)
     for(cl=0;cl<256;cl++)
     vec1[rws][cl] = in.read();
     if (rws = = cl)     vec1[rws][cl] = 255;
out.write(vec1[rws][cl]);
in.close( );
     out.close( );
Its supposed to draw a diagonal across a picture
Generates following error messages
diag_72.java:22: illegal start of expression
     if (rws = = cl)     vec1[rws][cl] = 255;
^
diag_72.java:22: ')' expected
     if (rws = = cl)     vec1[rws][cl] = 255;
^
diag_72.java:22: incompatible types
found : int
required: boolean
     if (rws = = cl)     vec1[rws][cl] = 255;
I can feel the D'Oh coming on already
Any help would be appreciated
^

loose the space between the two = and it should work
if (rws == cl) vec1[rws][cl] = 255;

Similar Messages

  • Incompatible types required boolean found string

    I am trying to set a value for a variable called Location when ever the value for the location is "AFRICA"
    I need to reset it to be "55555".
    What I am getting is that 'Incompatible types required boolean found string' under the if statemant. Can anyone shade some light on this?
    String Location = filename.substring(12,17);
    String AP = "AFRICA";
    System.out.println(Location);
    if (Location = AP)
    System.out.println(Location);
    Location = "55555";
    thanks

    rp0428 wrote:
    The IF condition needs to be a BOOLEAN. The '=' is used to do an assignment. The boolean would be '=='.
    But to compare strings why aren't you using
    if (Location.equalsIgnoreCase(AP) {
    To stress this a little more:
    <tt>==</tt> applied between References will compare the Adresses they point to. This means this will only be true if both References point to the identical Object. @Test
    testStringEquality(){
       String s1 = "my Test"
       String s2 = "Test"
      Assert.assertTrue("This strings are equal",s1.equals("my "+s2));
      Assert.assertFalse("This strings are not identical",s1 == ("my "+s2));
    }So use <tt>==</tt> only for primitive number types (those starting with a lower case letter).
    bye
    TPD

  • Boolean error with a If else statement

    Hello, i am new to java, and the only other programing language i have used is pascal, and compared to java its ALOT different any ways my problem. I am trying to write a simply little program which random selects a number between 1 and 10, i did that fine got to show that on screen with no probelm . Next i wanted to but in a if else statement, depending which numbers was selected it would show a different message this is where i am getting a probelm, here is the code for the whole thing:
    // randomColour
    import javax.swing.JOptionPane;
    public class randomColour {
      public static void main ( String args [])
        int value;
         value = 1 + ( int ) ( Math.random() * 10 );
            if (value = "1" )
             System.out.println("Green");
               else
                System.out.println("Blue");
              System.exit( 0 );
       } // end mainWhen i try to Compile it comes up with error saying required:boolean why is this? and what can i do to change to fix it?

    A single = is used to indicate assignment. You are testing for equality which requires ==. Also, "1" is a String. Value is an int. Changeif value = "1" to if value == 1Mark

  • Parse a String to boolean

    How do you parse a String to boolean, isn't like this? I get this inconertible types error, that require boolean
    boolean all = (boolean)tokens.nextToken();
    Thanks!

    What string means true, and what string means false? The string "true" or "false"? In that case, you can simply use the Boolean.valueOf(String) method:
    public static Boolean valueOf(String s)
        Returns a Boolean with a value represented by the specified String. The Boolean returned represents the value true if the string argument is not null and is equal, ignoring case, to the string "true".
        Example: Boolean.valueOf("True") returns true.
        Example: Boolean.valueOf("yes") returns false.
        Parameters:
            s - a string.
        Returns:
            the Boolean value represented by the string.Otherwise, you can use something like:
      boolean b = string.equals("true");or if string can be null to also mean false:
      boolean b = "true".equals(string);

  • XPRESS Exception:....== Missing required argument operand"

    I am getting this error in create user form that contains four different forms.I am unable to get rid of it untill i select some organzation in the dropdown menu of an OrgDetailsForm. The same error repeats itself on all the forms in custom tabbed user from.
    Here is the code:
    <Field name='temp.orgCode'>
    <Display class='Select' action='true'>
    <Property name='title' value='Organization'/>
    <Property name="help" value="Select User's Organization Code."/>
    <Property name="required">     <Boolean>true</Boolean></Property>
    <Property name='valueMap'>
    <block trace='false'>
    <call name='Rule Library:recurssiveOrgsByMajorOrgCode'>
    <map>
    <s>inputOrgCode</s>
    <ref>temp.alphaOrgCd</ref>
    </map>
    </call>
    </block>
    </Property>
    <Property name='nullLabel' value='-- Select Organization Code --'/>
    </Display>
    </Field>
    can anybody please give me some pointers to resolve this error?
    Thank you.
    G

    found the problem in the map.
    The code should be:
    <map>
    <s>inputOrgCode</s>
    <select>
    <ref>temp.alphaOrgCd</ref>
    <s>inputOrgCode</s>
    </select>
    </map>

  • Headers and Boolean

    2 Questions, coming for the AP Computer Science Student,
    #1, Headers > import javax.swing.JOptionPane; &
    import java.io.*;
    What would be the difference of the two and what exactly do they imply when you run a program, so far I have only ran one program which was making a calculator to find certain measurements and I have to use the first of the two, but why would I have to change it for another program?
    #2, As far as Booleans right now I am trying to run a program and I get one error from the command prompt. It says it found java.lang.String (but) it requires boolean, so what would I need to change on my program.
    Thanks! And if anyone would be willing to give me a s/n for contact reasons I would appreciate it.

    import java.io.*;
    import javax.swing.*;
    public class Infamous
    public static void main(String[] args)
    String response;
    String cont;
    int x = 0;
    cont = JOptionPane.showInputDialog
    ("Do you want playing?");
    cont = cont.toUpperCase();
    while(cont.equals("YES"))
    response = JOptionPane.showInputDialog("Enter a number between 0 and 255");
    if(response == null)
         JOptionPane.showMessageDialog(null, "You clicked on the Cancel button");
         System.exit(0);
    else
    if(response.equals(""))
         JOptionPane.showMessageDialog
         (null, "You must make a entry in the Imput Box");
         System.exit(0);
    else
         if(Integer.parseInt(response) > 255 | Integer.parseInt(response) < 0)
              JOptionPane.showMessageDialog
              (null, response + "- is not a valid number");
              System.exit(0);
    JOptionPane.showMessageDialog
    (null, "The number is: " + response);
    cont = JOptionPane.showInputDialog
    ("Do you want playing again?");
    cont = cont.toUpperCase();
    JOptionPane.showMessageDialog
    (null, "Thanks for playing my GAme");
    I hope that's help
    Regards

  • !! help using: public static Boolean valueOf(String s)

    I am trying to use this simple function to convert a string value to a boolean. According to the documentation for this Boolean method (public static Boolean valueOf(String s)), this should work:
    Example: Boolean.valueOf("True") returns true.
    As a test, I tried to run this line of code:
    tmp_bool = Boolean.valueOf("True");
    I get this compilation error:
    test_file.java:10: incompatible types
    found : java.lang.Boolean
    required: boolean
    tmp_bool = Boolean.valueOf("True");
    .....................................^
    According to the documentation for SDK 1.4, there is a new function:
    public static Boolean valueOf(boolean b)
    It seems like the commpiler is focusing on this new version of the valueOf() method, and ignoring the case where a String is the parameter. Why won't it use the version that takes a String? What confuses me even more is that I am running version 1.3.1, and the new valueOf(boolean b) function is not mentioned in its documentation.
    Am I somehow using the method wrong?
    Thanks!

    OK, I think I understand now. Thanks.
    Let me make sure i have this right...
    So basically, if you use variable types of Boolean and need to pass them to methods that take booleans, would you have to call the booleanValue method first?
    ex:
    Boolean bool_obj;
    //example method that takes a boolean
    //test_method(boolean b);
    test_method ( bool_obj.booleanValue() );
    is that right?

  • Error when trying to create a web service from a wsdl file using jdeveloper

    Hello,
    I'm using the latest jdeveloper and jdk 6 update 20 on solaris sparc 10.
    When I'm trying to create a web service from a wsdl on the java EE 1.5 platform i get the following error:
    Validation failed:
    java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    I've tried the endorsed mechanism with the latest jaxws-api.jar and jaxb-api.jar packages with no help.
    It works fine when i use the java EE 1.4 platform....
    The full Error description:
    oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)+
    +     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)+
    +     at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.setDescription(JavaWebService.java:745)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.topdown.TDJaxWsSpecifyWsdlPanel.setDescription(TDJaxWsSpecifyWsdlPanel.java:364)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)+
    +     at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)+
    +     at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)+
    +     at java.lang.Thread.run(Thread.java:619)+
    Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)+
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)+
    +     at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)+
    +     at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)+
    +     ... 8 more+
    Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)+
    +     at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)+
    +     at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)+
    +     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 oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)+
    +     at $Proxy34.getJaxWsSeiInfo(Unknown Source)+
    +     at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)+
    +     ... 11 more+
    Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:186)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:209)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:164)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:75)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89)+
    +     at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)+
    +     at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)+
    +     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
    +     at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
    +     at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64)+
    +     at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:75)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:751)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:539)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)+
    +     at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:181)+
    +     at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:251)+
    +     at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)+
    +     at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:117)+
    +     at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)+
    +     at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:647)+
    +     ... 20 more+
    Caused by: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
    +     at java.lang.Class.getMethod(Class.java:1605)+
    +     at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:184)+
    +     ... 40 more+
    Thanks,
    Roy.

    Guys,
    You are asking about an issue that was a pain in the nick for me few months ago. The problem is that you won't find mych help here as I figured out that Apex geeks here either did not do much webservices or ended up hating it as i do :) . This is an error that can be due many different reason, let me ask you this:
    1- Does your the other system you are trying to call through webservices using HTTPS ?
    2- If yes, did you create a valid oracle wallet for that https connection ?
    3- Make sure you are using the correct URL ( am sure you do, just double check )
    4- If using a proxy, then you have to define that in the web service reference creation page
    provide more info and I hope I can help you with this,
    Sam
    Please reward good answers by marking them correct or helpful!

  • Struts application using wsad 5.0 - unable to Run on server

    Hi,
    I m developing a small struts application using WSAD 5.0.
    Here is the code
    index.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ page
    language="java"
    contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    %>
    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>ABC, Inc. Human Resources Portal</TITLE>
    </HEAD>
    <BODY background="F1_100.gif">
    <font size="+1">ABC, Inc. Human Resources Portal </font>
    </br>
    <hr width="100%" noshade="true">
    &#149;Add an Employee
    <br>
    &#149;
    <html:link forward="search">Search for Employees</html:link>
    <br>
    </BODY>
    </HTML>
    search.jsp
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html>
    <head>
    <title> ABC, Inc. Human Resources Portal - Employee Search</title>
    </head>
    <body>
    <font size="+1">
    ABC, Inc. Human Resources Portal - Employee Search
    </font><br>
    <hr width="100%" noshade="true">
    <html:errors/>
    <html:form action="/search">
    <table>
    <tr>
    <td align="right"><bean:message key="label.search.name"/></td>
    <td><html:text property="name"/></td>
    </tr>
    <tr>
    <td></td>
    <td>-- or --</td>
    </tr>
    <tr>
    <td align="right"><bean:message key="label.search.ssnum"/></td>
    <td><html:text property="ssnum"/>(xxx-xx-xxxx)</td>
    </tr>
    <tr>
    <td></td>
    <td><html:submit/></td>
    </tr>
    </table>
    </html:form>
    <logic:present name="searchForm" property="results">
    <hr width="100%" size="1" noshade="true">
    <bean:size id="size" name="searchForm" property="results"/>
    <logic:equal name="size" value="0">
    <center><font color="red"><b>No Employees Found</b></font></center>
    </logic:equal>
    <logic:greaterThan name="size" value="0">
    <table border="1">
    <tr>
    <th>Name</th>
    <th>Social Security Number</th>
    </tr>
    <logic:iterate id="result" name="searchForm" property="results">
    <tr>
    <td><bean:write name="result" property="name"/></td>
    <td><bean:write name="result" property="ssNum"/></td>
    </tr>
    </logic:iterate>
    </table>
    </logic:greaterThan>
    </logic:present>
    </body>
    </html>
    searchForm.java
    package minihr.forms;
    import java.util.List;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionError;
    import org.apache.struts.action.ActionErrors;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    * Form bean for a Struts application.
    * Users may access 3 fields on this form:
    * <ul>
    * <li>name - [your comment here]
    * <li>ssNum - [your comment here]
    * </ul>
    * @version      1.0
    * @author
    public class SearchForm extends ActionForm {
         private String name = null;
         private String ssNum = null;
        private List results = null;
          * Get Name
          * @return String
         public String getName() {
              return name;
          * Set Name
          * @param <code>String</code>
         public void setName(String name) {
              this.name = name;
          * Get SsNum
          * @return String
         public String getSsNum() {
              return ssNum;
          * Set SsNum
          * @param <code>String</code>
         public void setSsNum(String ssNum) {
              this.ssNum = ssNum;
          * Set Results
         public void setResults(List results){
              this.results=results;
          * get Results
         public List getResults(){
              return results;
         * Constructor
         public SearchForm() {}
         public void reset(ActionMapping mapping, HttpServletRequest request) {
              // Reset values are provided as samples only. Change as appropriate.
              name = null;
              ssNum = null;
              results = null;
         //validate form data.
         public ActionErrors validate(
              ActionMapping mapping,
              HttpServletRequest request) {
              ActionErrors errors = new ActionErrors();
              // Validate the fields in your form, adding
              // adding each error to this.errors as found, e.g.
              // if ((field == null) || (field.length() == 0)) {
              //   errors.add("field", new ActionError("error.field.required"));
              boolean nameEntered = false;
              boolean ssNumEntered = false;
              //Determine if name has been entered.
              if(name != null && name.length() > 0){
                   nameEntered = true;
              //Determine if social security number has been entered
              if(ssNum != null && ssNum.length() > 0){
                   ssNumEntered = true;
              /* validate that either name or ssnum has
               * been entered */
               if(!nameEntered && !ssNumEntered){
                    errors.add(null,new ActionError("error.search.criteria.missing"));
               /* validate format of ssnum if it has been entered */
               if(ssNumEntered && !isValidSsNum(ssNum.trim())){
                    errors.add("ssNum",
                       new ActionError("error.search.ssNum.invalid"));
              return errors;
         //validate format of social security number
         private static boolean isValidSsNum(String ssNum){
              if(ssNum.length() < 11){
                   return false;
              for(int i=0;i<11;i++){
                   if(i==3 || i==6){
                        if(ssNum.charAt(i) != '-'){
                             return false;
                   }else if("0123456789".indexOf(ssNum.charAt(i)) == -1){
                        return false;
              return true;
    searchAction.java
    package minihr.actions;
    import java.util.ArrayList;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import minihr.forms.SearchForm;
    import common.EmployeeSearchService;
    * @version      1.0
    * @author
    public class SearchAction extends Action {
         * Constructor
         public SearchAction() {}
         public ActionForward perform(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
              EmployeeSearchService service = new EmployeeSearchService();
              ArrayList results;
              SearchForm searchForm = (SearchForm) form;
              //perform employee search based on what criteria was entered
              String name = searchForm.getName();
              if(name != null && name.trim().length() > 0)
                results = service.searchByName(name);
              else
                   results = service.searchBySsNum(searchForm.getSsNum().trim());
              //place search results in searchform for access by JSP.
              searchForm.setResults(results);
              //forward control to this actions input page
              return mapping.getInputForward();
    EmployeeSearchService.java
    package common;
    import java.util.ArrayList;
    import common.Employee;
    * @author Niharika
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class EmployeeSearchService {
         private static Employee[] employees =
              new Employee("samuel","123-45-6789"),
              new Employee("Robert","234-56-7890"),
              new Employee("smith","345-67-8901"),
              new Employee("Frank","456-78-9012")
         // search for employees by name
         public ArrayList searchByName(String name){
              ArrayList resultList = new ArrayList();
              for(int i=0; i<employees.length; i++)
                   if(employees.getName().toUpperCase().indexOf(name.toUpperCase()) != -1)
                        resultList.add(employees[i]);
              return resultList;
    // search for employee by social security number
    public ArrayList searchBySsNum(String ssNum){
         ArrayList resultList = new ArrayList();
         for(int i=0;     i<employees.length; i++)
              if(int i=0; i<employees.length; i++)
                   if(employee[i].getSsNum().equals(ssNum))
                        resultList.add(employees[i]);
              return resultList;
    Employee.java
    package common;
    * @author Niharika
    * To change this generated comment edit the template variable "typecomment":
    * Window>Preferences>Java>Templates.
    * To enable and disable the creation of type comments go to
    * Window>Preferences>Java>Code Generation.
    public class Employee {
    private String name;
    private String ssNum;
    public Employee(String name,String ssNum)
         this.name=name;
         this.ssNum=ssNum;
    public void setName(String name)
         this.name=name;
    public String getName()
         return name;
    ApplicationResources.properties
    # Label Resources
    label.search.name=Name
    label.search.ssNum=Social Security Number
    # Error Resources
    error.search.criteria.missing=<li>Search Criteria Missing</li>
    error.search.ssNum.invalid=<li>Invalid Social Security Number</li>
    errors.header=<font color="red"><b>Validation Errors </b></font><ul>
    errors.footer=</ul><hr width="100%" size="1" noshade="true">
    In searchAction.java
    it is showing 2 errors
    public ActionForward perform(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
    error is: Exception Exception is not compatible with throws clause in
    org.apache.struts.action.Action.Perform()
    Another error is shown at :
    return mapping.getInputForward();
    error is:
    method is undefined for typt org.apache.struts.action.ActionMapping
    please give me a solution for this watching the code
    i have opened the server perspective and started the server.
    next i am clicking run on server. There i am getting an error like this:
    Error Received while starting the server
    Reason:
    Launching the server failed:
    server port 9080 is in use.
    ORB bootstrap port 2809 is in use.
    SOAP connector port 8880 is in use.
    change each used port number to another unused port on the ports page of the server configuration editor. In case u have another websphere server running , you can try to increase each used port number by one and try again.please solve this problem

    Nothing at all to do with struts.
    Some of the ports that WSAD wants to use are already in use.
    Maybe you have a copy of websphere running already?
    If so stop that one, and try running again.

  • JDBC control not work after upgrade application from workshop 8.1 to 9.2.3

    Hi,
    We upgraded application from workshop 8.1 to 9.2.3. After that, the JDBC control not work any more. We got the following exception:
    java.sql.SQLException: The transaction is no longer active - status: 'Committed'. No further JDBC access is allowed within this transaction.
    at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:192)
    at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:202)
    at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:87)
    at weblogic.jdbc.wrapper.Connection.getMetaData(Connection.java:435)
    at org.apache.beehive.controls.system.jdbc.parser.SqlStatement.createPreparedStatement(SqlStatement.java:128)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedStatement(JdbcControlImpl.java:272)
    at com.bea.wlw.runtime.core.control.internal.JdbcControlImpl.invoke(JdbcControlImpl.java:136)
    at controls.SecurityBean.getUpdateDocPermission(SecurityBean.java:598)
    at security.SecurityManagerImpl.getUpdateDocPermission(SecurityManagerImpl.java:110)
    at security.SecurityManagerBean.getUpdateDocPermission(SecurityManagerBean.java:509)
    The control that throw the exception has "transactionattribute" annotation added automatically by upgrade wizard during upgrading. Related classed are as follows:
    @ControlInterface()
    public interface SecurityManager
    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    boolean getUpdateDocPermission(java.lang.String userId);
    @ControlImplementation()
    public class SecurityManagerImpl implements SecurityManager, Serializable
    * @common:control
    @org.apache.beehive.controls.api.bean.Control()
    private controls.Security security;
    static final long serialVersionUID = 1L;
    * @common:operation
    public boolean getUpdateDocPermission(String userId)
    if ( security.getUpdateDocPermission(userId) > 0) {
    return true;
    else
    return false;
    @ControlExtension()
    @JdbcControl.ConnectionDataSource(jndiName = "EventDesk")
    public interface Security extends JdbcControl
    static final long serialVersionUID = 1L;
    * @jc:sql statement="select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;"
    @JdbcControl.SQL(statement = "select r.updateDoc from document_user u ,document_role r where u.login={userId} and u.roleId=r.roleId;")
    int getUpdateDocPermission(String userId);
    Thanks for your help

    Hi. The issue is a level or two above JDBC. I suggest
    opening an official support case. It's probably a
    WLW issue.
    Joe

  • How to validate when navigating on next page in a Train

    Dear All,
    Use Case:
    I have pages arranged in a Train.
    Supposed in 1 page, I have this code.
    <af:selectBooleanRadio text="Enter new transaction details"
       label="" id="sbr2"
       autoSubmit="true"
       value="#{pageFlowScope.myBean.option}"/>
    <af:panelFormLayout id="option" labelAlignment="start"
         rendered="#{pageFlowScope.myBean.option}">
         <af:inputText label="Transaction Date" id="it2"/>
         <af:inputText label="Transaction Option" id="it3"/>
         <af:inputText label="Confirmation Message" id="it7"/>
         <f:facet name="footer"/>
    </af:panelFormLayout>If the user selected the boolean radio, I will display the panelformlayout thru PPR.
    Now, if the panelformlayout is displayed, user should at least enter one data on at least one
    of the inputText. If not, a message is displayed when user navigates to the next page on the
    train.
    How to do this?
    I cannot put a required property on all the input text because not all are required and only at least one input text should be filled up.
    I wanted to fire up when user navigates the train button Previous or Next button.
    JDEV 11G PS3
    Thanks

    one solution is to build your own Next button in the train and check the condition before you navigate to the next train stop. to navigate to the next train stop in the train check check [url http://www.oracle.com/technetwork/developer-tools/adf/learnmore/82-programmatically-navigate-trains-396873.pdf]     How-to programmatically navigate ADF train models
    another solution is to set the required property for your input texts as
    <af:inputText label="Transaction Date" id="it2"/>
         <af:inputText label="Transaction Option" id="it1" required="boolean radio is selected and it2 eq null and it3 eq null ...... and it7 is null"/>
         <af:inputText label="Transaction Option" id="it2" required="boolean radio is selected and it1 eq null and it3 eq null ...... and it7 is null"/>
            <af:inputText label="Transaction Option" id="it3" required="boolean radio is selected and it1 eq null and it2 eq null ...... and it7 is null"/>
         <af:inputText label="Confirmation Message" id="it7" required"boolean radio is selected and it1 eq null and ...... it6 eq null"/>

  • How to search with multiple constraints in the new java API?

    I'm having a problem using the new MDM API to do searches with multiple constraints.  Here are the classes I'm trying to use, and the scenario I'm trying to implement:
    Classes:
    SearchItem: Interface
    SearchGroup: implements SearchItem, empty constructor,
                 addSearchItem (requires SearchDimension and SearchConstraint, or just a SearchItem),
                 setComparisonOperator
    SearchParameter: implements SearchItem, constructor requires SearchDimension and SearchConstraint objects
    Search: extends SearchGroup, constructor requires TableId object
    RetrieveLimitedRecordsCommand: setSearch method requires Search object
    FieldDimension: constructor requires FieldId object or FieldIds[] fieldPath
    TextSearchConstraint: constructor requires string value and int comparisonOperator(enum)
    BooleanSearchConstraint: constructor requires boolean value
    Scenario:
    Okay, so say we have a main table, Products.  We want to search the table for the following:
    field IsActive = true
    field ProductColor = red or blue or green
    So the question is how to build this search with the above classes?  Everything I've tried so far results in the following error:
    Exception in thread "main" java.lang.UnsupportedOperationException: Search group nesting is currently not supported.
         at com.sap.mdm.search.SearchGroup.addSearchItem(Unknown Source)
    I can do just the ProductColor search like this:
    Search mySearch = new Search(<Products TableId>);
    mySearch.setComparisonOperator(Search.OR_OPERATOR);
    FieldDimension myColorFieldDim = new FieldDimension(<ProductColor FieldId>);
    TextSearchConstraint myTextConRed = new TextSearchConstraint("red",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConBlue = new TextSearchConstraint("blue",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConGreen = new TextSearchConstraint("green",TextSearchConstraint.EQUALS);
    mySearch.addSearchItem(myColorFieldDim,myTextConRed);
    mySearch.addSearchItem(myColorFieldDim,myTextConBlue);
    mySearch.addSearchItem(myColorFieldDim,myTextConGreen);
    the question is how do I add the AND of the BooleanSearchConstraint?
    FieldDimension myActiveFieldDim = new FieldDimension(<IsActive FieldId>);
    BooleanSearchConstraint myBoolCon = new BooleanSearchConstraint(true);
    I can't just add it to mySearch because mySearch is using OR operator, so it would return ALL of the Products records that match IsActive = true.  I tried creating a higher level Search object like this:
    Search topSearch = new Search(<Products TableId>);
    topSearch.setComparisonOperator(Search.AND_OPERATOR);
    topSearch.addSearchItem(mySearch);
    topSearch.addSearchItem(myActiveFieldDim,myBoolCon);
    But when I do this I get the above "Search group nesting is currently not supported" error.  Does that mean this kind of search cannot be done with the new MDM API?

    I'm actually testing a pre-release of SP05 right now, and it still is not functional.  The best that can be done is to use a PickListSearchConstraint to act as an OR within a field.  But PickList is limited to lookup Id values, text attribute values, numeric attribute values and coupled attribute values.  It works for me in some cases where I have lookup Id values, but not in other cases where the users want to search on multiple text values within a single field.

  • Building custom components in jsf 1.2

    HI all
    i am having custom component which has one text field and button together which is extended from a panelgroup component and adding text field and button and child component to this.
    in jsf1.1 i am not getting any error, but jsf 1.2 i am getting arrayoutofbounds exception in processrestorestate.
    when printing the log in jsf1.2 uicomponentbase we can see that after text and button fields are rendered again textfield is rendered.and kid of panel is 4. can you suggest how building the above custom component.
    kid.........4 facet count.0 family javax.faces.Panel
    stateStruct.........[Ljava.lang.Object;@c0f87elength.......2
    childstate.....[Ljava.lang.Object;@fa302clength...2
    Child Count4
    kids....4
    kid.........0 facet count.0 family javax.faces.Input
    stateStruct.........[Ljava.lang.Object;@170d9d4length.......2
    kid.........0 facet count.0 family javax.faces.Command
    stateStruct.........[Ljava.lang.Object;@1ed1c32length.......2
    kid.........0 facet count.0 family javax.faces.Input
    Aug 13, 2008 6:32:49 PM com.sun.faces.lifecycle.Phase doPhase
    SEVERE: JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: ) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1d63e96]
    Aug 13, 2008 6:32:49 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.ArrayIndexOutOfBoundsException: 2
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1185)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1189)
         at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:235)
         at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:316)
         at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:337)
         at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116)
         at org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:131)
         at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:176)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at mgeretail.gateway.SecurityFilter.doFilter(SecurityFilter.java:205)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)

    hi
    is there a problem in rendering code in have given for the component. please tell me what is wrong in the code.
    my component code is
    package components;
    import javax.faces.component.html.HtmlInputText;
    import javax.faces.component.html.HtmlCommandButton;
    import javax.faces.component.html.HtmlPanelGroup;
    public class CGLookup extends HtmlPanelGroup
        private HtmlInputText text1;
        private HtmlCommandButton btn1;
        private String key,valueText,id;
        private String width,valueChangeListener;
        private int maxLength;
        private boolean required;
        private static Class valueChangeListenerArgs[]= (new Class[] {javax.faces.event.ValueChangeEvent.class});
        public CGLookup()
            super();
            //this.setSeparator("");
            this.setStyle("width:198px;");
            text1= new HtmlInputText();
            text1.setStyle("width: 150px;");
            btn1 = new HtmlCommandButton();
           // btn1.setMini(true);
           // btn1.setStyle("width: 7px; height: 20px");
            btn1.setLabel("?");
            this.getChildren().add(text1);
            this.getChildren().add(btn1);
        public void setId(String id)
            super.setId(id);
            text1.setId(id+"_txt");
            btn1.setId(id+"_btn");
        public String getText()
            if(text1.getValue() !=null)
                return text1.getValue().toString().toUpperCase();
            return null;
        public void setText(String value)
            if(value!=null)
                text1.setValue(value.toUpperCase());
            else
                text1.setValue(null);
        public int getMaxLength()
            return text1.getMaxlength();
        public void setMaxLength(int value)
            text1.setMaxlength(value);
        public void setRequired(boolean value)
            text1.setRequired(value);
        public void setDisabled(boolean value)
                text1.setDisabled(value);
                btn1.setDisabled(value);
        public String getValueText()
            return valueText;
        public void setValueText(String value)
            valueText = value;
        public String getKey()
            return key;
        public void setKey(String value)
            key = value;
        public String getWidth()
            return width;
        public void setWidth(String value)
            width = value;  
            if (width != null)
                resize();
        public void resize()
            this.setStyle("width:"+width);
            int index = width.indexOf("px");
            String temp = width.substring(0, index);
            int _width = Integer.parseInt(temp);
            _width = _width -48;
            HtmlInputText t1 = (HtmlInputText) this.getChildren().get(0);
            t1.setStyle("width:"+ String.valueOf(_width)+"px");   
    }my tag code is
    package taglib;
    import javax.faces.component.html.HtmlInputText;
    import javax.faces.component.html.HtmlCommandButton;
    import com.sun.rave.web.ui.el.ConstantMethodBinding;
    import java.util.Map;
    import javax.faces.application.Application;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.webapp.UIComponentTag;
    public class CGLookupTag extends UIComponentTag
        /** Creates a new instance of CGLookupTag */
        public CGLookupTag() {
            block = null;
            separator = null;
            style = null;
            styleClass = null;
            visible = null;
            public String getComponentType()
            return "CGLookuptype";
        public String getRendererType()
            return "javax.faces.component.html.HtmlPanelGroup";
        public void release()
            super.release();
            block = null;
            separator = null;
            style = null;
            styleClass = null;
            visible = null;
        public void setRequired(String value)
        {        this.required = value;    }
          public String getText()
        {   return text;   }
        public void setText(String value)
        {        text = value;    }
        public String getValueText()
        {   return valueText;   }
        public void setValueText(String value)
        {        valueText = value;    }
        public String getKey()
        {   return key;   }
        public void setKey(String value)
        {        key = value;    }
          public String getAction()
        {   return action;   }
        public void setAction(String value)
        {        action = value;    }
          public String getvalueChangeListener()
        {   return valueChangeListener;   }
        public void setvalueChangeListener(String value)
        {        valueChangeListener = value;    }
         public String getWidth()
        {   return width;   }
        public void setWidth(String value)
        {        width = value;    }
         public void setMaxLength(String maxLength)
            this.maxLength = maxLength;
        protected void setProperties(UIComponent _component)
            super.setProperties(_component);
            if(block != null)
                if(isValueReference(block))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(block);
                    _component.setValueBinding("block", _vb);
                } else
                    _component.getAttributes().put("block", Boolean.valueOf(block));
            if(separator != null)
                if(isValueReference(separator))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(separator);
                    _component.setValueBinding("separator", _vb);
                } else
                    _component.getAttributes().put("separator", separator);
            if(style != null)
                if(isValueReference(style))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(style);
                    _component.setValueBinding("style", _vb);
                } else
                    _component.getAttributes().put("style", style);
            if(styleClass != null)
                if(isValueReference(styleClass))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(styleClass);
                    _component.setValueBinding("styleClass", _vb);
                } else
                    _component.getAttributes().put("styleClass", styleClass);
            if(visible != null)
                if(isValueReference(visible))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(visible);
                    _component.setValueBinding("visible", _vb);
                } else
                    _component.getAttributes().put("visible", Boolean.valueOf(visible));
              if(action != null)
                if(isValueReference(action))
                    javax.faces.el.MethodBinding _mb = getFacesContext().getApplication().createMethodBinding(action, actionArgs);
                   HtmlCommandButton btn = (HtmlCommandButton) _component.getChildren().get(1) ;
                    btn.getAttributes().put("action", _mb);
                } else
                    javax.faces.el.MethodBinding _mb = new ConstantMethodBinding(action);
                     HtmlCommandButton btn = (HtmlCommandButton) _component.getChildren().get(1) ;
                     btn.getAttributes().put("action", _mb);
                if(required != null)
                if(isValueReference(required))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(required);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.setValueBinding("required", _vb);
                } else
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("required", Boolean.valueOf(required));
              if(text != null)
                if(isValueReference(text))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(text);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.setValueBinding("text", _vb);
                } else
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("text", text);
              if(key != null)
                if(isValueReference(key))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(key);
                    _component.setValueBinding("key", _vb);
                } else
                    _component.getAttributes().put("key", key);
              if(valueText != null)
                if(isValueReference(valueText))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(valueText);
                    _component.setValueBinding("valueText", _vb);
                } else
                    _component.getAttributes().put("valueText", valueText);
              if(valueChangeListener != null)
                if(isValueReference(valueChangeListener))
                    javax.faces.el.MethodBinding _mb = getFacesContext().getApplication().createMethodBinding(valueChangeListener, valueChangeListenerArgs);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("valueChangeListener", _mb);
                } else
                    throw new IllegalArgumentException(valueChangeListener);
              if(width != null)
                if(isValueReference(width))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(width);
                    _component.setValueBinding("width", _vb);
                } else
                    _component.getAttributes().put("width", width);
                if(maxLength != null)
                if(isValueReference(maxLength))
                    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(maxLength);
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.setValueBinding("maxLength", _vb);
                } else
                    HtmlInputText txt = (HtmlInputText) _component.getChildren().get(0) ;
                    txt.getAttributes().put("maxLength", Integer.valueOf(maxLength));
        public void setBlock(String block)
            this.block = block;
        public void setSeparator(String separator)
            this.separator = separator;
        public void setStyle(String style)
            this.style = style;
        public void setStyleClass(String styleClass)
            this.styleClass = styleClass;
        public void setVisible(String visible)
            this.visible = visible;
        static Class _mthclass$(String x0)
            try
            {return Class.forName(x0);}
            catch (ClassNotFoundException x1)
            {throw new NoClassDefFoundError(x1.getMessage());}
        private String block;
        private String separator;
        private String style;
        private String styleClass;
        private String visible;
        private static Class actionArgs[] = new Class[0];
        private static Class actionListenerArgs[];
        private static Class validatorArgs[];
        private static Class valueChangeListenerArgs[];
        private String text,valueText,key,required;
        private String action,valueChangeListener;
        private String width,maxLength;
        static
            actionListenerArgs = (new Class[] {
                javax.faces.event.ActionEvent.class
            validatorArgs = (new Class[] {
                javax.faces.context.FacesContext.class, javax.faces.component.UIComponent.class, java.lang.Object.class
            valueChangeListenerArgs = (new Class[] {
                javax.faces.event.ValueChangeEvent.class
    }the component type CGLookuptype refers to first code. in jsf 1.2 UIComponentTag says it is deprecated. what should i use instead of it.

  • Add customized task to user screen for IdM 7.0

    The user screen in IdM 7.0 is a lot more different from the previous versions.
    A navigation bar is used for launching different tasks(workflows).
    I want to add a new user request task to MenuBar Requests or add a new task to the Launch Requests page. The old document/training mentioned adding customized task to End User Tasks is not working for Version 7.0 at all.
    Overall, my question is how I can add my customized workflow to /user screen?
    Thank you.

    Hi,
    Look to implement links to custom taskdefinitions from the End User Request Menu. Unfortunately there's no form/process mapping for this object at this time. Here's an example of a customisation on the End User Request Menu,
    <Form noDefaultButtons='true' objectLocationID='objectName=End+User+Request+Menu&isBegin=true&objectPath=0&objectType=UserForm'>
          <Display class='EditForm'>
            <Property name='title' value='UI_ENDUSER_REQUEST_LAUNCH_TITLE'/>
         <Property name='subTitle' value='UI_ENDUSER_REQUEST_LAUNCH_SUBTITLE'/>
          </Display>
          <Properties>
            <Property name='doNotRegenerateEndUserMenu'>
              <Boolean>false</Boolean>
            </Property>
          </Properties>
          <Field>
         <Display class='SectionHead'>
           <Property name='required'>
             <Boolean>false</Boolean>
           </Property>
           <Property name='title' value='Self-Service Options'/>
         </Display>
         <Field>
           <Display class='LinkForm'/>
           <Field>
             <Display class='Link'>
               <Property name='name' value='Request Application Access'/>
               <Property name='URL' value='user/processLaunch.jsp?id=Request+Application+Access'/>
               <Property name='arguments'>
              <map>
                <s>op_requestorOrg</s>
                <ref>waveset.organization</ref>
                <s>op_requestorFullname</s>
                <ref>accounts[Lighthouse].fullname</ref>
              </map>
               </Property>
             </Display>
           </Field>You also need to register the workflow in the End User Tasks configuration objects as follows:
    <Configuration id='#ID#Configuration:EndUserTasks' name='End User Tasks'>
      <Extension>
        <List>
          <List>
            <String>Request Application Access</String>
            <String>Initiates a request for a new account</String>
          </List>HTH,
    Paul

  • Freshclam (clamav) error ???

    When I run freshclam I get the following error.
    Clamd was NOT notified: Can't find or parse configuration file /var/lib/clamav/cl
    Anybody have any idea how to fix it. :?:

    I'm getting a Parse error when running freshclam as well.  Problem started occurring after a system upgrade.  clamd fails to start at system boot.
    ERROR: Parse error at line 85: Option NotifyClamd requires string argument.
    ERROR: Parse error at line 34: Option LogTime requires boolean argument.
    ERROR: Can't parse the config file /etc/clamav/clamd.conf
    Anyone else having freshclam woes?

Maybe you are looking for

  • [865PE/G Neo2 Series] Question-boot from Promise IDE on 865PE Neo2 FIS2R

    I bought my first MSI board a couple of years ago, an 865PE Neo2-LS. When I retired that, I went for an Abit 875P IC7-G. I just hated the Abit board, used it 3 months and replaced it with a new MSI 865PE Ne02 FIS2R. I didn't reinstall WIndows XP Pro

  • TimeOut in search-help

    Hello, I implemented a new search-help inside the standard VMVA. How can I handle, that the user get an information, if the used selection-parameters are not enough and the system generated an time out. I don´t want to see the dump with time-out. Ins

  • How to create script that run sudo-command, via automator?

    Hi I'd want to create script to automate one command I need quite often. I just can't get this to work. I'm not using english OS, but I think this is what I do. In automator I choose Utilities -> Run script Here's the script I try to run: sudo "/Libr

  • Airport Express and Samsung ML-1430

    I was wondering if anyone got the Samsung ML-1430 working w/ their Airport Express. It shows that it is connected through Bonjour. However, in the "Printer Browser" window, the samsung doesn't show in the "print using:" window. I choose "Auto Select"

  • System Crash in Mac OS 10.5.5: How to restore my data?

    A system crash left me unable to log in to my computer, so I had no choice but to archive and reinstall.  My Paml desktop ap is now gone, but this left my Palm user data file intact in user/document/palm/users/myname/files to install.  I need contact