Error - && operator is undefined for the arugument type java,lagn.string

Hi All
I am new to this forum and also java .
Below is my program
Please let me know the fix for this error
Thanks
Guna
The Logic is , I want to check the customer first,last and middle name .
Senario 1 : I want to check the customer name if he gives only FIRST NAME
Senario 2 : I want to check the customer name if he gives only LAST NAME
Senario 3 : I want to check the customer name if he gives only MIDDLE NAME
Senario 4 : I want to check the customer name if he gives First name and last name - this wher i get my error
My Coding
package SelfLearning;
import java.util.*;
public class CustomerUtil {
     boolean SearchCustomer(List<Customer> listObj , Customer cust )
          Iterator listOfCustomerObj = listObj.iterator();
          Customer cust1 = null ;
          while(listOfCustomerObj.hasNext())
               cust1 = (Customer) listOfCustomerObj.next();
          if(cust1.getFirstName().equalsIgnoreCase(cust.getFirstName()))
               System.out.println("Customer Found");
          if(cust1.getLastName().equalsIgnoreCase(cust.getLastName()))
               System.out.println("Customer Found");     
// I am getting error here , How to fix this error . please let me know is there any another want to rewrite this condition.
          if(cust1.getFirstName()&& cust1.getLastName().equalsIgnoreCase(cust.getFirstName()&& cust.getLastName())
               System.out.println("Customer Found");
          return true ;
}

Folks
I am new to this forum and also to java .
I will post the whole coding.
I did try putting the code tag but its not working . Sorry
I saw the link but I cant do it .
Below is my coding
{code }
package SelfLearning;
public class Customer {
     String firstName;
     String LastName;
     String MiddleName;
     public Customer() {
     public Customer(String firstName, String lastName, String middleName) {
          super();
          this.firstName = firstName;
          LastName = lastName;
          MiddleName = middleName;
     public String getFirstName() {
          return firstName;
     public void setFirstName(String firstName) {
          this.firstName = firstName;
     public String getLastName() {
          return LastName;
     public void setLastName(String lastName) {
          LastName = lastName;
     public String getMiddleName() {
          return MiddleName;
     public void setMiddleName(String middleName) {
          MiddleName = middleName;
package SelfLearning;
import java.util.*;
public class CustomerUtil {
     boolean SearchCustomer(List<Customer> listObj , Customer cust )
          Iterator listOfCustomerObj = listObj.iterator();
          Customer cust1 = null ;
          while(listOfCustomerObj.hasNext())
               cust1 = (Customer) listOfCustomerObj.next();
          if(cust1.getFirstName().equalsIgnoreCase(cust.getFirstName()))
               System.out.println("Customer Found");
          if(cust1.getLastName().equalsIgnoreCase(cust.getLastName()))
               System.out.println("Customer Found");     
// Here I want to check both first and last name . But Some how I am unable to do it .
          if((cust1.getFirstName()+cust1.getLastName().equalsIgnoreCase(custObj4.getFirstName()+(custObj4.getLastName()))
               System.out.println("Customer Found");
          return true ;
package SelfLearning;
import java.util.ArrayList;
import java.util.List;
public class TestCustomer {
     * @param args
     public static void main(String[] args) {
          Customer custObj1 = new Customer("John" , "Lee ", "jayson");
          Customer custObj2 = new Customer("Matt" , "G ", "C");
          Customer custObj3 = new Customer("Bob" , "George ", "K");
          List customerDetails = new ArrayList();
          Customer custObj4 = new Customer();
          custObj4.setFirstName("Kela");
          custObj4.setMiddleName("v");
          customerDetails.add(custObj1);
          customerDetails.add(custObj2);
          customerDetails.add(custObj3);
          CustomerUtil custUtil = new CustomerUtil();
          custUtil.SearchCustomer(customerDetails , custObj4);
Edited by: Guna on Apr 7, 2011 11:59 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Generated servlet error: method is undefined for type

    Hi,
    I keep getting the following error when I attempt to run my JSP:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 12 in the jsp file: /jsp-examples/JSPandMySQL/loginuser.jsp
    Generated servlet error:
    The method getValidUser() is undefined for the type LoginDetails
    In my JSP file I have the code:
    <%
    boolean validName = login.getValidUser();
    if(validName == false) {
    out.println("Invalid Username");
    } else {
    out.println("Valid Username");
    %>
    and the method getValidUser(); is in a Java Bean that I have created and the code for that method is just :
    public boolean getValidUser() {
    return valid;
    I've tried searching the net for some answers but none of the solutions given work for mine, I would be grateful for any advice on how to solve this program.

    DId you import the class at the top of the jSP? Does the method exist? Is the class compiled properly?
    - Saish

  • Method fprint(String) is undefined for the type JspWriter.

    please help me with this problem
    below is the jsp code written to access the data from the database and to display it in the new page.
    <%@ page
         import = "java.io.*"
         import = "java.lang.*"
         import = "java.sql.*"
    %>
    <%
         Connection dbconn=null;
         ResultSet results;
         PreparedStatement sql=null;     
                   String empid1=request.getParameter("empids");     
              try
    String driver = "com.mysql.jdbc.Driver";
              Class.forName(driver).newInstance();
                   dbconn =DriverManager.getConnection("jdbc:mysql://localhost/hris","root","redhat");
                   int empid11;
                   empid11=Integer.parseInt(empid1);
                   sql = dbconn.prepareStatement("select * from employee where empid=?");
                   sql.setInt(1,empid11);
                   results=sql.executeQuery();
                   results.next();
    out.print("<html>");
    out.print("<head>");
    out.print("</head>");
    out.print("<body>");
    out.print("<table width=810 border=0>");
    out.print("<tr>");
    out.print("<td width=210>");
    out.print("Employee Id");
    out.print("</td>");
    out.print("<td width=584>");
    int emp=results.getInt("empid");
    out.print(emp);
    out.print("</td>");
    out.print("</tr>");
    out.print("<tr>");
    out.print("<td>");
    out.print("FirstName");
    out.print("</td>");
    out.print("<td>");
    String first=results.getString("fname");
    out.print(first);
    out.print("</td>");
    out.fprint("</tr>");
              catch (SQLException s)
                   out.println("SQL Error <br>"+s);
    catch ( Exception x )
                   x.printStackTrace();
    %>
    but when i click the submit button , the error is
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 9 in the jsp file: /HRIS/empsearch1.jsp
    Generated servlet error:
    The method fprint(String) is undefined for the type JspWriter
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 9 in the jsp file: /HRIS/empsearch1.jsp
    Generated servlet error:
    The method fprint(String) is undefined for the type JspWriter
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
    i am not able to rectify the error.

    JavaB wrote:
    Hi ,
    I have a method defined in my dataManagerDAO classIs it dataManagerDAO or DataManagerDAO?
    getNoc( strRppsId) throws Exception {}That's not a legal Java method declaration, so it's clearly not your actual declaration, so I have no idea what your actual declaration is, so I can't tell you what you're doing wrong.
    Now I am calling this method inside my JSP page :
    DataManagerDAO dataMgr = new DataManagerDAO();
    dataMgr.getNoc(strRppsId)..
    But whenver I am running it locally , it fails to compile and gives following error msg :
    The method getNoc(String) is undefined for the type DataManagerDAOQuite obviously you're calling a method getNoc(String) but that method doesn't exist on the DataManagerDAO class. No matter how much you may think you know that it does, you're wrong and the compiler is right.
    Maybe you misspelled or mis-capitalized something. Maybe you're passing the wrong type of argument. Maybe you're still using an older version of the DataManagerDAO class from before you added that method. Not enough information here to say for sure.
    ny clue wats going wrong in here ?I assume you mean "any", not "ny" and "what's", not "wats". Clear, correct, precise communication counts with folks here almost as much as it does with the Java compiler.

  • PreparedStatement.getGeneratedKeys():  undefined for the type PreparedState

    All,
    I'm getting this exception:
    "The method getGeneratedKeys() is undefined for the type PreparedStatement" When I try to run this code:
    Connection con = (Connection)getConnection();
    PreparedStatement stmt = null;
    stmt = con.prepareStatement("INSERT INTO article (title, description, creationDate, createdBy) VALUES (?,?,?,?)");
    stmt.setString(1, title);
    stmt.setString(2, description);
    stmt.setDate(3, creationDate);
    stmt.setInt(4, createdBy);
    stmt.executeUpdate();
    ResultSet rs = stmt.getGeneratedKeys();Javadoc says PreparedStatement inherits getGeneratedKeys() from Statement. Then why does it go wrong?
    Thanks alot!

    No sorry, it is a compile time error.
    But I've solved the problem.
    I'm using WSAD and it was pointing to the wrong rt.jar (the one that comes with WSAD). I've changed it to the sun rt.jar and now it works fine!
    Thanks anyway!

  • The method is undefined for the type

    HI I have a javabean class:
    package database;
    import java.util.*;
    import java.io.*;
    public class CompanyFormBean implements Serializable{
      private String companyparentid;          
      private String companyname;               
      private Hashtable errors;
      //private String notify;
    public boolean validate() {
        boolean allOk=true;
        if (companyname.equals("")) {
          errors.put("companyname","Please enter your Company Name.");
          companyname="";
          allOk=false;
        return allOk;
      public String getErrorMsg(String s) {
        String errorMsg =(String)errors.get(s.trim());
        return (errorMsg == null) ? "":errorMsg;
    // public CompanyFormBean(){}
      public CompanyFormBean() {
        companyparentid          = "";
        companyname               = "";
        errors = new Hashtable();
      public String getCompanyparentid() {
        return companyparentid;
      public String getCompanyname() {
        return companyname;
      public void setCompanyparentid(String fcompanyparentid) {
        companyparentid = fcompanyparentid;
      public void setCompanyname(String fcompanyname) {
        companyname = fcompanyname;
      public void setErrors(String key, String msg) {
        errors.put(key,msg);
    }after the form is submitted I try to display the values
    <%@ page import="database.CompanyFormBean" %>
    <jsp:useBean id="formHandler" class="database.CompanyFormBean" scope="session"/>
    <html>
    <head>
    <title></title>
    <meta name="Generator" content="EditPlus">
    <meta name="Author: Irene Nessa" content="">
    <meta name="Keywords" content="">
    <meta name="Description: creates a new member account" content="">
    </head>
    <body>
    <form name="reg" method="post" action="ProcessMemberRegistration.jsp" onsubmit='return formValidator()'>
    <table>
         <tr>
         <td>Create A New Account</td>
         </tr>
         <tr>
              <td>Existing Company</td>
              <td>
                   <input type="text" name="companyparentid" value='<%=formHandler.getCompanyparentid()%>'>
                   <!-- <select name="campanyparentid" onchange="setcompany(this)">
                        <option>Better Homes</option>
                        <option>Emaar</option>
                   </select>
                   <font size="" color="#FF0033"><b><i>OR</i></b></font>-->
              </td>
         </tr>
         <tr>
              <td>Company Name *</td>
              <td><input type="text" name="companyname" value='<%=formHandler.getCompanyname()%>'>
              </td>
         </tr>
    </table>
    <br>
         <br>
         <input type="reset">  <input type="submit" value='Check Form' />
    </form>
    </body>
    </html>But I keep getting the following errors:*The method getCompanyparentid() is undefined for the type CompanyFormBean* But it defind and the bean class complies. Any idea what am doing wrong.
    thanks.

    I actually got the same error in the same situation the following is my error and Stacktrace. I was trying to using AJAX to retrieve the message from DB and display it in a text area when user click a radio button. It works well untill I add a new method getMessage(String), please help!
    Mar 2, 2009 10:01:03 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 22 in the jsp file: /getmessage.jsp
    The method getMessage(String) is undefined for the type Item
    19: <jsp:setProperty name="items" property="categoryId" value="<%=catid%>" />
    20: <jsp:setProperty name="items" property="effectiveIndicator" value="C" />
    21: <%
    22: String msg = items.getMessage(id);
    23: String decodedmsg = new String(msg.getBytes("iso-8859-1"), "Big5");
    24: System.out.print("MSG: " + msg);
    25: System.out.print("Deco-MSG: " + decodedmsg);
    An error occurred at line: 26 in the jsp file: /getmessage.jsp
    The method write(String) is undefined for the type HttpServletResponse
    23: String decodedmsg = new String(msg.getBytes("iso-8859-1"), "Big5");
    24: System.out.print("MSG: " + msg);
    25: System.out.print("Deco-MSG: " + decodedmsg);
    26: response.write(decodedmsg);
    27: %>
    Stacktrace:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
    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.valves.AccessLogValve.invoke(AccessLogValve.java:517)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
    at java.lang.Thread.run(Thread.java:619)

  • Error with clob column: "No pl/sql translation for the blind type given for this bind variable"

    This is reports 11g
    I've got a clob column. Reports seems to recognize its type, but if I try to reference it in a format trigger, I get this error at compile time:
    "No pl/sql translation for the blind type given for this bind variable"

    Actually, Reports is in something better than Forms.
    Neither Forms nor Reports do not have "complete" SQL engine (both have only "complete" PL/SQL engine), but have their own SQL parser, which does not understand SQL commands after the database 8.0.
    But, in Reports Data Model - SQL Query Statement, we can write "modern" SQL statement (> database 8.0), because Reports sent it directly to the database, without using their own SQL parser.
    For example, in Reports Data Model - SQL Query Statement, we can write this (scalar subquery expressions, in bold):
    select empno,
           ename,
           deptno,
           (select dname from dept where deptno = emp.deptno) dname
      from emp
    order by empno;
    although scalar subquery expressions was introduced in the database 9.0.1, and in databases 8.0 and 8.1 we should write someting like this:
    select emp.empno,
           emp.ename,
           emp.deptno,
           dept.dname
      from emp,
           dept
    where dept.deptno = emp.deptno
    order by empno;
    Regards,
    Zlatko

  • Error: One factory fails for the operation "encode"

    Dear all,
    This is my first attempt to use JAI. I am getting the following error message. Any ideas why this could happen?
    Thanks
    Error: One factory fails for the operation "encode"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException
         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:494)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at com.sun.media.jai.opimage.FileStoreRIF.create(FileStoreRIF.java:138)
         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:494)
         at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
         at javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
         at javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
         at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
         at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
         at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
         at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:888)
         at javax.media.jai.JAI.createNS(JAI.java:1099)
         at javax.media.jai.JAI.create(JAI.java:973)
         at javax.media.jai.JAI.create(JAI.java:1668)
         at RectifyIt.actionPerformed(RectifyIt.java:715)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1834)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2152)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
         at java.awt.Component.processMouseEvent(Component.java:5463)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3052)
         at java.awt.Component.processEvent(Component.java:5228)
         at java.awt.Container.processEvent(Container.java:1961)
         at java.awt.Component.dispatchEventImpl(Component.java:3931)
         at java.awt.Container.dispatchEventImpl(Container.java:2019)
         at java.awt.Component.dispatchEvent(Component.java:3779)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4203)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3883)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3813)
         at java.awt.Container.dispatchEventImpl(Container.java:2005)
         at java.awt.Window.dispatchEventImpl(Window.java:1757)
         at java.awt.Component.dispatchEvent(Component.java:3779)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: java.lang.OutOfMemoryError: Java heap space
    Error: One factory fails for the operation "filestore"
    Occurs in: javax.media.jai.ThreadSafeOperationRegistry
    java.lang.reflect.InvocationTargetException

    I'm not an expert in JAI either, but I noticed you have an OutOfMemoryError at the bottom of your stacktrace. I'd focus on that.
    Are you dealing with a large image? Maybe try holding as little of the image in memory as possible. Do you have a small Java heap size? Maybe try increasing the footprint. etc...
    CowKing

  • Office 365 API, error: The token has invalid value 'roles' for the claim type ''

    Hi guys,
    I am trying to develop a Daemon / Server application using the new Office 365 APIs. I have added a new application to Azure Active Directory. I am using cURL + the app ID and secret to get a JWT token, this is the exact request:
    curl -X POST https://login.windows.net/TENANT_KEY/oauth2/token \
    -F redirect_uri=http://spreadyDaemon \
    -F grant_type=client_credentials \
    -F resource=https://outlook.office365.com/ \
    -F client_id=XXXX \
    -F client_secret=XXXX=
     I get back a JWT however it has no scopes for access set here is the decoded JWT claims:
    "ver": "1.0",
    "aud": "https://outlook.office365.com/",
    "iss": "https://sts.windows.net/TENANT_KEY/",
    "oid": "17fa33ae-a0e9-4292-96ea-24ce8f11df21",
    "idp": "https://sts.windows.net/TENANT_KEY/",
    "appidacr": "1",
    "exp": 1415986833,
    "appid": "XXXX",
    "tid": "e625eb3f-ef77-4c02-8010-c591d78b6c5f",
    "iat": 1415982933,
    "nbf": 1415982933,
    "sub": "17fa33ae-a0e9-4292-96ea-24ce8f11df21"
    Therefore when I do a request to the exchange API endpoint I get the following response:
    HTTP/1.1 401 Unauthorized
    Cache-Control: private
    Server: Microsoft-IIS/8.0
    request-id: d08d01a8-7213-4a13-a598-08362b4dfa70
    Set-Cookie: ClientId=WDALDNO0CAIOOZDZWTA; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    X-CalculatedBETarget: am3pr01mb0662.eurprd01.prod.exchangelabs.com
    x-ms-diagnostics: 2000001;reason="The token has invalid value 'roles' for the claim type ''.";error_category="invalid_token"
    X-DiagInfo: AM3PR01MB0662
    X-BEServer: AM3PR01MB0662
    X-AspNet-Version: 4.0.30319
    Set-Cookie: exchangecookie=6bf68da033684824af21af3b0cdea6e3; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxoGaio2PjZvPztGPjZCb0ZqHnJeekZiak56djNGckJI=; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxg==; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
    X-Powered-By: ASP.NET
    X-FEServer: DB4PR02CA0026
    WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000001-0000-0000-c000-000000000000@*", authorization_uri="https://login.windows.net/common/oauth2/authorize", error="invalid_token",Basic Realm="",Basic Realm=""
    Date: Fri, 14 Nov 2014 16:40:59 GMT
    Content-Length: 0
    I have asked a stack overflow question here: http://stackoverflow.com/questions/26950838/office-365-api-error-the-token-has-invalid-value-roles-for-the-claim-type
    Any help on the matter will be hugely appreciated, thanks!

    Hi Manu,
    To wrap this thread up; I have had an answer on stack overflow.
    It appears that currently the grant type client_credentials is not supported, according to a comment on this blog post by Matthias' http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx 
    "There is no way in the code flow to avoid username/password. We're working on a client credential flow for later this fall that will give you the functionality required to run background services. For this you will not need a username/password,
    but the application will directly assert its identity and authenticate as itself."
    Unfortunately I require client_credentials for a daemon process, Q4 is the scheduled release for support for this grant time.
    Thanks for the help,
    Nick

  • Error :Maintain pricing conditions for the material for the excise invoice

    Hi
    i have maintained excise data for material, after that i have created scheduled agreement with lp and with 0 value private and dummy tax code  and delivery schedule is released. Now when i do the goods receipt i am getting error " Maintain pricing conditions for the material for the excise invoice date
    Message no. 8I629" can some body can help me.
    with regards
    Narendra kumar

    Hi,
    goto tcode fv11 u have to maintained the condition.
    first enter the condition type like jmop -
    then enter, next screen u have the select the below comination.
    select the plant/vendor/material base u have to maintain the conditions.
    Thank's
    MVS

  • SEVERE: An error occured while scanning for the next trigger to fire

    Hi All,
    I followed below steps to configure Oracle BI publisher scheduler on oracle 10g database.
    1.Log in to BI Publisher as a user with Administrator privileges and select the Admin tab.
    2.Under System Maintenance, select Scheduler Configuration.
    3.Enter the database connection information for the target Oracle database and user.
    Database Type: 10g
    Connection String: jdbc:oracle:thin://<hostname>:<port#>:<oracle SID>
    Username/Password for the database user
    Database Driver Class: oracle.jdbc.driver.OracleDriver
    4.Click the Test Connection button to make sure the connection information is valid.
    5.Click the Install Schema button to install the scheduler tables.
    6.Restart the BI Publisher application.
    The Schema installed successfully.
    But when I am starting the weblogic server I am getting below error and BI publisher application is not getting up.
    INFO: Handling 6 triggers that missed their scheduled fire-time.
    23-Dec-2011 05:29:38 org.quartz.core.ErrorLogger schedulerError
    SEVERE: An error occured while scanning for the next trigger to fire.
    org.quartz.JobPersistenceException: Couldn't acquire next trigger: Couldn't retrieve trigger: Invalid column name [See nested exception: org.quartz.JobPersistenceException: Couldn't retrieve trigger: Invalid column name [See nested exception: java.sql.SQLException: Invalid column name]]
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:1773)
    at org.quartz.impl.jdbcjobstore.JobStoreTX.acquireNextTrigger(JobStoreTX.java:1176)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:233)
    * Nested Exception (Underlying Cause) ---------------
    org.quartz.JobPersistenceException: Couldn't retrieve trigger: Invalid column name [See nested exception: java.sql.SQLException: Invalid column name]
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1126)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:1759)
    at org.quartz.impl.jdbcjobstore.JobStoreTX.acquireNextTrigger(JobStoreTX.java:1176)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:233)
    * Nested Exception (Underlying Cause) ---------------
    java.sql.SQLException: Invalid column name
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:445)
    at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3372)
    at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:2009)
    at oracle.jdbc.driver.OracleResultSet.getBinaryStream(OracleResultSet.java:668)
    at org.apache.commons.dbcp.DelegatingResultSet.getBinaryStream(DelegatingResultSet.java:233)
    at org.quartz.impl.jdbcjobstore.oracle.OracleDelegate.getObjectFromBlob(OracleDelegate.java:154)
    at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTrigger(StdJDBCDelegate.java:2382)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1115)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:1759)
    at org.quartz.impl.jdbcjobstore.JobStoreTX.acquireNextTrigger(JobStoreTX.java:1176)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:233)
    23-Dec-2011 05:30:55 org.quartz.core.ErrorLogger schedulerError
    The system details are as below :
    BI Publisher version : 10.1.3.4
    Oracle DB : 10 G
    Weblogic server :10.3.2
    Please suggest to resolve this issue.
    Thanks,
    Sachin

    Hi,
    This errors occurs if you have configured some schema for the scheduler and configured it on BIP, but the configured schema is no longer available.
    That is why I am suggesting you to replace the current quartz.properties file with the original file that exits during installation.
    Then try to start the server, and see if the server starts without error.
    After that you can try to configure the scheduler from BIP console.
    thanks,
    sandeep

  • There are no readers registered for the txt type - Issue importing txt file

    Hello guys,
    I am working on SQL developer 3.2. and Oracle database 11g. I am trying to import a txt file with only two columns and 100 rows separated with a pipe. I can import the same file if its in *.CSV or *.xls format. I right click on the table > Import table > Choose the *.txt file > and then I get a message "There are no readers registered for the txt type". Why? Where do I get the reader? I am using the same exact method and the same exact data to import using a different file format and I do not get any errors. The wizard comes up and I am ready to load. I have scoured through this forum for a solution and I could not find one. Any help is very much appreciated.
    Thank you!

    It means we don't support that file type for doing imports. It sounds like a reasonable request to [add to the Exchange|sqldeveloper.oracle.com] though.

  • The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on failed. Ensure the user name and password are correct. (rsLogonFailed) The user name or password is incorrect

    I am able to run the report fine in BIDS in the preview window, and it deployes fine.  When it goes to view the report in the browser, I get the following error.  There is no domain, I am using a standalone computer with SQL Server and SSRS on
    this one machine.
    Can anyone point to where I might configure the permission it is looking for?  thanks!  Steven
    The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    The user name or password is incorrect
    Steven DeSalvo

    Hi StevenDE2012,
    Based on the error message "The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)", it seems that the Unattended Execution Account settings in Reporting Services
    Configuration is not correct.
    Reporting Services provides a special account that is used for unattended report processing and for sending connection requests across the network. Unattended report processing refers to any report execution process that is triggered by an event rather than
    a user request. The report server uses the unattended report processing account to log on to the computer that hosts the external data source. This account is necessary because the credentials of the Report Server service account are never used to connect
    to other computers. To configure the account, please refer to the following steps:
    Start the Reporting Services Configuration tool and connect to the report server instance you want to configure.
    On the Execution Account page, select Specify an execution account.
    Type the account and password, retype the password, and then click Apply.
    In addition, please verify you have access to the Report Server database by following steps:
    Go to SQL Server Reporting Services Configuration Manager, make sure the configuration is correct.
    Go to Database, Verify that you can connect to the database.
    Make sure you are granted public and RSExecRole roles.
    Reference:
    Configure the Unattended Execution Account
    Configure a Report Server Database Connection
    If the problem is unresolved, i would appreciate it if you could give us detailed error log, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

  • ERROR: /dev/archiso found but the filesystem type is unkown

    My problem is now solved in the previous thread on this topic.  I apologize for a double post!  The previous topic was marked [Solved] and I assumed no one would respond there.
    I had the problem trying to boot from usb: boot device not showing up after 30 seconds and thrown into ramfs$.  The other topic w/ this problem is marked solved so I'm posting my problem again (sorry).
    cat /proc/scsi/scsi shows that device is detected...
    did:
    ln -sf /dev/sdb1 /dev/archiso
    and logged out ("exit")
    but immediately a new error, and kernel panic, so I can't copy/paste output:
    "ERROR: /dev/archiso found but the filesystem type is unkown"
    Sorry about ridiculous pic but it does show kernel panic, just trying to help... couldn't copy output.  I can post dmesg from prior to kernel panic if you want (but it doesn't include errors).
    Thank you for your help.
    I just did:
    cat /lib/udev/rules.d/00-archiso-device.rules
    ACTION=="add|change", SUBSYSTEM=="block", IMPORT{program}="vol_id --export $tempnode"
    ENV{ID_FS_LABEL_ENC}=="ARCHISO_OINGAE2I", SYMLINK+="archiso"
    "SYMLINK+=" ... is "+=" typo?
    Last edited by jaf777 (2009-08-12 17:13:36)

    Same issue:
    The specified store provider cannot be found in the configuration, or is not valid. ---> System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
    You mention "Sounds like the client system doesn't have an Oracle client installed."
    I am using Win Server 2008 R2. I have installed what i think is the right client. How do i tell?
    What is the right client? Where do i get it?

  • The meta data for the IDoc type "LOIPRO01" is unavailable

    Hello,
    i'm trying to send idocs via rfc from SAP ERP ECC 6.0 to SAP MII 12.06, but we always get errors like:
    The meta data for the IDOC type LOIPRO01 is unavailable
    I've checked the parameters on MII side of the IDOC Listener:
    Servername  MII_JCI33 
    server Properties 
    gwhost H33-I0.rz.k-plus-s.net 
    gwserv sapgw02 
    progid MII_JCI33 
    trace 1 
    params   
    snc_myname   
    snc_qop   
    snc_lib   
    unicode 1 
    max_startup_delay   
    Client Properties 
    client 303 
    user RFC-I33 
    alias_user   
    passwd   
    lang en 
    sysnr 02 
    ashost h33-i0.rz.k-plus-s.net 
    mshost H33-I0.rz.k-plus-s.net 
    gwhost H33-I0.rz.k-plus-s.net 
    gwserv sapgw02 
    r3name H33 
    group   
    tpname MII_JCI33 
    tphost H33-I0.rz.k-plus-s.net 
    type 3 
    trace 1 
    codepage 1 
    There is no saprouter between ERP and MII as in the thread from Christoph Mertins in November 2008. The user rfc-i33 on the ERP has SAP_ALL permissions.
    Has anyone an idea ?
    Kind Regards,
    Thomas Strecker

    Thomas,
    There is a link for a basic IDoc installation that may help.
    [IDocListener|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/bpx-community/manufacturing/how%20to%20send%20an%20idoc%20from%20sap%20ecc%20to%20the%20sap%20mii%20idoc%20listener.pdf]
    One other issue that has occurred to cause problems is registering the program in Visual Administrator.  If you registered the ProgID in Visual Administrator, there will now be two ProgIDs registered (MII does self registration with the RFC Destination upon starting the server).  Delete the registration in VA, if you did it.
    If there are other error messages available, please post them.
    Good luck,
    Mike
    I also just remembered, if you have two ProgIDs that are the same, running on two separate MII instances, you may run into a problem.  Not sure it will have the same symptoms or error messages, but something else to check with (especially when migrating from dev to prod).
    Edited by: Michael Appleby on Feb 10, 2009 5:02 PM

  • Testing ABAP Web dynpro: Error  code 403 and for the reason Forbidden

    Hi,
      We have NW04s Installed and trying to execute a SAP supplied ABAP web dynpro application DEMO_SIMPLE_MAIN. Please see the following error and let us know which service it's talking about? I am familiar with SICF. However in AS7.0( New name for WEB AS ) The transaction is little different.
      Thanks
    Arunava
      However we are getting the following service error
    Service cannot be reached
    What has happened?
    URL http://server.domain.name.com:8001/sap/bc/webdynpro/sap/demo_simple_main call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system XXX with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:NAME999_XXX_01-v:0-s:403-r:Forbidden
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team

    Hi,
      this was actually some services which needed to be started through SICF. Once I have started the service sap/bc/public ETC.. and the web dynpro started working. Most of the SAP delivered demo apps are working
      However for some ABAP web dynpro ( for some application XRPM ) I get  some peculiar error. Please see below and if you could think of anything out of these.
    I have already checked and found the both HTTP and SMTP services are working fine.
    The following error text was processed in the system PXA : Syntax error in program /1BCWDY/56ZRPAZLU25M8S1BKV2T==CP .
    The error occurred on the application server fmsap994_PXA_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CONSTRUCTOR of program CL_WDR_CLIENT_COMPONENT=======CP
    Method: CONSTRUCTOR of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: CREATE_APPLICATION of program CL_WDR_CLIENT_APPLICATION=====CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP

Maybe you are looking for

  • Saving sessions in the database...

    Hi there, I'm trying to save a session object ( not a J2EE session but a custom one ) in an Oracle database. I save the session in a table with a BLOB column and some other varchar columns... Whenever I want to write a blob, the application freezes..

  • GL ACCOUNT hierarchy load

    Hi BI Guru's, Could someone help me to understand a strange issue on my customer BW. I mantained a GL_ACCOUNT hierarchy for my P&L on SAP R/3 ECC 6 throw t-code ob58. As a test I created a simple structure with only 10 account under Profit node. Save

  • Planned Delivery Time and Transportation duration- Tlane and Means of Transportation

    Dear Experts , I have question regarding lead time calculation my SNP I have Start Location : A Destination location: B I maintained Planned delivery time in ECC- material master as 10 days  and cifed to Tlane Product procurement as 10 days and leave

  • How to check the compilation time of C++ code on Xcode 6

    how to check the compilation time of C++ code on Xcode 6

  • Buttons and drawing api behind a movie clip

    Hi... I have a Drawing application. the tools window is a draggable movieclip. The problem is when I drag the movieclip over the scratch pad, It draws where I move the movie clip to!!! Another thing that happens is when I have a button beneath the sa