Cannot find symbl method update Date(int,java.util.Date)

I get following error
cannot find symbl method update Date(int,java.util.Date) on compling class called GuestDataBean at line ( rowSet.updateDate( 4, guest.getDate() ); ).
GustBean.java. I need help on why I get it.
// JavaBean to store data for a guest in the guest book.
package com.deitel.jhtp6.jsp.beans;
import java.util.*;
public class GuestBean
   private String firstName;
   private String lastName;
   private String email;
   private Date date;
   private String message;
   //Constructors
   public GuestBean(){
        public GuestBean(String firstname, String lastname, String email,Date date,String message){
             this.firstName=firstname;
             this.lastName=lastName;
             this.email=email;
             this.date=date;
             this.message=message;
   // set the guest's first name
   public void setFirstName( String name )
      firstName = name; 
   } // end method setFirstName
   // get the guest's first name
   public String getFirstName()
      return firstName; 
   } // end method getFirstName
   // set the guest's last name
   public void setLastName( String name )
      lastName = name; 
   } // end method setLastName
   // get the guest's last name
   public String getLastName()
      return lastName; 
   } // end method getLastName
   // set the guest's email address
   public void setEmail( String address )
      email = address;
   } // end method setEmail
   // get the guest's email address
   public String getEmail()
      return email; 
   } // end method getEmail
   public void setMessage( String mess)
      message = mess;
   } // end method setEmail
   // get the guest's email address
   public String getMessage()
      return message; 
   } // end method getEmail
   public void setDate( Date dat )
      date = dat;
   } // end method setEmail
   // get the guest's email address
   public Date getDate()
      return date; 
   } // end method getEmail
} // end class GuestBean
GuestDataBean.java/**
* @(#)GuestDataBean.java
* @author
* @version 1.00 2008/7/18
// Class GuestDataBean makes a database connection and supports
// inserting and retrieving data from the database.
package com.deitel.jhtp6.jsp.beans;
import java.sql.SQLException;
import javax.sql.rowset.CachedRowSet;
import java.util.ArrayList;
import com.sun.rowset.CachedRowSetImpl; // CachedRowSet implementation
import java.sql.*;
public class GuestDataBean
   private CachedRowSet rowSet;
   // construct TitlesBean object
   public GuestDataBean() throws Exception
      // load the MySQL driver
      Class.forName( "org.gjt.mm.mysql.Driver" );
      // specify properties of CachedRowSet
      rowSet = new CachedRowSetImpl(); 
      rowSet.setUrl( "jdbc:mysql://localhost:3306/virsarmedia" );
      rowSet.setUsername( "root" );
      rowSet.setPassword( "" );
       // obtain list of titles
      rowSet.setCommand(
         "SELECT firstName, lastName, email,date,message FROM guest" );
      rowSet.execute();
   } // end GuestDataBean constructor
   // return an ArrayList of GuestBeans
   public ArrayList< GuestBean > getGuestList() throws SQLException
      ArrayList< GuestBean > guestList = new ArrayList< GuestBean >();
      rowSet.beforeFirst(); // move cursor before the first row
      // get row data
      while ( rowSet.next() )
         GuestBean guest = new GuestBean();
         guest.setFirstName( rowSet.getString( 1 ) );
         guest.setLastName( rowSet.getString( 2 ) );
         guest.setEmail( rowSet.getString( 3 ) );
         guest.setDate( rowSet.getDate( 4 ) );
         guest.setMessage( rowSet.getString( 5 ) );
         guestList.add( guest );
      } // end while
      return guestList;
   } // end method getGuestList
   // insert a guest in guestbook database
   public void addGuest( GuestBean guest ) throws SQLException
      rowSet.moveToInsertRow(); // move cursor to the insert row
      // update the three columns of the insert row
      rowSet.updateString( 1, guest.getFirstName() );
      rowSet.updateString( 2, guest.getLastName() );
      rowSet.updateString( 3, guest.getEmail() );
      rowSet.updateDate( 4, guest.getDate() );
      rowSet.updateString( 5, guest.getMessage() );
      rowSet.insertRow(); // insert row to rowSet
      rowSet.moveToCurrentRow(); // move cursor to the current row
      rowSet.commit(); // propagate changes to database
   } // end method addGuest
} // end class GuestDataBean

This isn't a JSP question, it better belongs in the JavaProgramming, or JDBC forums.
But the problem is because the updateDate method uses a java.sql.Date object and you are giving it a java.util.Date object. You have to convert from java.util.Date to java.sql.Date. See: [the api for java.sql.Date|http://java.sun.com/javase/6/docs/api/java/sql/Date.html] .
Edited by: stevejluke on Jul 21, 2008 5:43 PM

Similar Messages

  • Accidentally pressed "Diasgree" to update terms & conditions, now cannot find the io7 update. It's still on version 6.x and says software phone is up-to-date.

    Accidentally pressed "Diasgree" to update terms & conditions, now cannot find the io7 update. It's still on version 6.x and says software phone is up-to-date.

    You need to update iTunes to version 10.7. http://www.apple.com/itunes
    You also need to update you profile. It says you have an iPhone 3G with iOS 6.0.1. That is not physically possible.

  • Error: cannot find symbol method Text

    Hi
    I want to make an index for txt files by using Lucene, it got an error: cannot find symbol method Text. what is it about? Does it mean the Text is not in Field?
    thank you v much
    pls look into my code:
    package TestLucene;
    import java.io.File;
    import java.io.FileReader;
    import java.io.Reader;
    import java.util.Date;
    import org.apache.lucene.analysis.Analyzer;
    import org.apache.lucene.analysis.standard.StandardAnalyzer;
    import org.apache.lucene.document.Document;
    import org.apache.lucene.document.Field;
    import org.apache.lucene.index.IndexWriter;
    import org.apache.lucene.document.Fieldable;
    import java.io.Serializable;
    * This class demonstrate the process of creating index with Lucene
    * for text files
    public class Lucene {
         public static void main(String[] args) throws Exception{
              //indexDir is the directory that hosts Lucene's index files
            File   indexDir = new File("D:\\luceneIndex");
            //dataDir is the directory that hosts the text files that to be indexed
            File   dataDir  = new File("D:\\luceneData");
            Analyzer luceneAnalyzer = new StandardAnalyzer();
            File[] dataFiles  = dataDir.listFiles();
            IndexWriter indexWriter = new IndexWriter(indexDir,luceneAnalyzer,true);
            long startTime = new Date().getTime();
            for(int i = 0; i < dataFiles.length; i++){
                 if(dataFiles.isFile() && dataFiles[i].getName().endsWith(".txt")){
              System.out.println("Indexing file " + dataFiles[i].getCanonicalPath());
              Document document = new Document();
              Reader txtReader = new FileReader(dataFiles[i]);
              document.add(Field.Text("path",dataFiles[i].getCanonicalPath()));
              document.add(Field.Text("contents",txtReader));
              indexWriter.addDocument(document);
    indexWriter.optimize();
    indexWriter.close();
    long endTime = new Date().getTime();
    System.out.println("It takes " + (endTime - startTime)
    + " milliseconds to create index for the files in directory "
              + dataDir.getPath());

    Hal-.- wrote:
    I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
    I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
    What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
    But other than that I have no idea. Ask on a Lucene forum.

  • JAX-WS web service - "Cannot find dispatch method"

    I'm getting the same error response every time I send a request to my JAX-WS web service:
    <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
       <faultcode>ns2:Client</faultcode>
       <faultstring>Cannot find dispatch method for {http://www.w3.org/2003/05/soap-envelope}Envelope</faultstring>
    </ns2:Fault>I've tried using JAX-WS RI 2.1.7 and 2.2 on my Tomcat server, but both return the same error response. It will return the WSDL just fine (when "?wsdl" is appended to the endpoint URL). I used "wsimport" to generate the necessary Java classes from my WSDL--it used JAX-WS RI 2.1.6 (the one included with the JDK I guess) to generate the Java source files.
    Other people online have had similar problems, but never with the SOAP element "{http://www.w3.org/2003/05/soap-envelope}Envelope", always with things specific to their WSDLs like "{}reqParams" or "{http://www.telekom.at/eai/WSToCramerCSIRead}CSIRead". I set a debug breakpoint at the start of my SIB method and it doesn't even get that far.
    Any ideas? Thanks for your help.
    WSDL:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- This wsdl file is for an XDS-I.b Imaging Document Source Actor
         It can be used 'as is' to support Imaging Document Source Retrieve Imaging Document Set Transaction
         using Synchronous Web Services. 
         -->
    <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:ihe="urn:ihe:iti:xds-b:2007" xmlns:iherad="urn:ihe:rad:xdsi-b:2009" xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
      targetNamespace="urn:ihe:rad:xdsi-b:2009" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
      xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" name="ImagingDocumentSource">
      <documentation>IHE XDS-I.b Imaging Document Source</documentation>
      <types>
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:ihe:iti:xds-b:2007"
          xmlns:ihe="urn:ihe:iti:xds-b:2007">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/IHE/XDS.b_DocumentRepository.xsd"/>
        </xsd:schema>
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:ihe:rad:xdsi-b:2009"
          xmlns:ihe="urn:ihe:iti:xds-b:2007"
          xmlns:iherad="urn:ihe:rad:xdsi-b:2009">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/IHE/XDSI.b_ImagingDocumentSource.xsd"/>
        </xsd:schema>
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
          xmlns:rs="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/ebRS/rs.xsd"/>
        </xsd:schema>
        <!-- While no elements are directly used from these schema in the WSDL,
          they need to be present here in order for
          code generating toolkits to work properly -->
        <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0"
          xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/ebRS/lcm.xsd"/>
        </xsd:schema>
       <xsd:schema elementFormDefault="qualified"
          targetNamespace="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"
          xmlns:lcm="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0">
          <!-- Include the message schema -->
          <xsd:include schemaLocation="../schema/ebRS/rim.xsd"/>
        </xsd:schema>
      </types>
      <message name="RetrieveImagingDocumentSetRequest_Message">
        <documentation>Retrieve Imaging Document Set</documentation>
        <part name="body" element="iherad:RetrieveImagingDocumentSetRequest"/>
      </message>
      <message name="RetrieveDocumentSetResponse_Message">
        <documentation>Retrieve Document Set Response</documentation>
        <part name="body" element="ihe:RetrieveDocumentSetResponse"/>
      </message>
      <portType name="ImagingDocumentSource_PortType">
        <operation name="ImagingDocumentSource_RetrieveImagingDocumentSet">
          <input message="iherad:RetrieveImagingDocumentSetRequest_Message"
            wsaw:Action="urn:ihe:rad:xdsi-b:2009:RetrieveImagingDocumentSet"/>
          <output message="iherad:RetrieveDocumentSetResponse_Message"
            wsaw:Action="urn:ihe:iti:2007:RetrieveDocumentSetResponse"/>
        </operation>
      </portType>
      <binding name="ImagingDocumentSource_Binding" type="iherad:ImagingDocumentSource_PortType">
        <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="ImagingDocumentSource_RetrieveImagingDocumentSet">
          <soap12:operation soapAction="urn:ihe:rad:xdsi-b:2009:RetrieveImagingDocumentSet"/>
          <input>
            <soap12:body use="literal"/>
          </input>
          <output>
            <soap12:body use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="ImagingDocumentSource_Service">
        <port name="ImagingDocumentSource_Port_Soap12" binding="iherad:ImagingDocumentSource_Binding">
          <soap12:address location="http://localhost:8080/webservice-test/ridsService"/>
        </port>
      </service>
    </definitions>
    Request:
    <soap:Envelope
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
    xmlns:urn="urn:ihe:rad:xdsi-b:2009"
    xmlns:urn1="urn:ihe:iti:xds-b:2007"
    xmlns:a="http://www.w3.org/2005/08/addressing">
       <soap:Header>
         <a:Action soap:mustUnderstand="1">urn:ihe:rad:2009:RetrieveImagingDocumentSet</a:Action>
         <a:MessageID>urn:uuid:0fbfdced-6c01-4d09-a110-2201afedaa02</a:MessageID>
         <a:ReplyTo soap:mustUnderstand="1">
              <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
         </a:ReplyTo>
         <a:To>http://localhost:8080/webservice-test/ridsServer</a:To>
       </soap:Header>
       <soap:Body>
          <urn:RetrieveImagingDocumentSetRequest>
             <!--1 or more repetitions:-->
             <urn:StudyRequest studyInstanceUID="test1">
                <!--1 or more repetitions:-->
                <urn:SeriesRequest seriesInstanceUID="test2">
                   <!--1 or more repetitions:-->
                   <urn1:DocumentRequest>
                      <!--Optional:-->
                      <urn1:HomeCommunityId>test3</urn1:HomeCommunityId>
                      <urn1:RepositoryUniqueId>test4</urn1:RepositoryUniqueId>
                      <urn1:DocumentUniqueId>test5</urn1:DocumentUniqueId>
                   </urn1:DocumentRequest>
                </urn:SeriesRequest>
             </urn:StudyRequest>
             <urn:TransferSyntaxUIDList>
                <!--1 or more repetitions:-->
                <urn:TransferSyntaxUID>?</urn:TransferSyntaxUID>
             </urn:TransferSyntaxUIDList>
          </urn:RetrieveImagingDocumentSetRequest>
       </soap:Body>
    </soap:Envelope>
    Response (HTTP 500):
    <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
       <faultcode>ns2:Client</faultcode>
       <faultstring>Cannot find dispatch method for {http://www.w3.org/2003/05/soap-envelope}Envelope</faultstring>
    </ns2:Fault>

    I posted here to benefit anybody who is looking for a solution.
    The solution is to use WebServiceContext to get ServletContext, then use ServletContext to get parameters defined in web.xml.
    @Resource private WebServiceContext m_wsCxt;
    Then in method
    SOAPMessageContext soapCxt = (SOAPMessageContext) m_wsCxt.getMessageContext();
    ServletContext servletCxt = (ServletContext) soapCxt.get(javax.xml.ws.handler.MessageContext.SERVLET_CONTEXT);
    }

  • Error when trying to install the iSCSI target - Cannot find the Windows PowerShell data file 'ImportExportIscsiTargetConfiguration.psd1'

    Hi,
    I'm just attempting to setup an iSCSI target on a freshly installed Windows 2012r2 box, but I get the following error when attempting to Create and iSCSI virtual disk via the wizard after a successful
    installation of the iSCSI target role.
    The full error is:
    Cannot find the Windows PowerShell data file 'ImportExportIscsiTargetConfiguration.psd1' in directory 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget\en-GB\', or in any parent culture.
    I tried to uninstall, then reinstall the role but no go.
    The Server Locale and UI was all updated to en-GB but this folder does not appear to exist in this location. Rather, the folder I can see is:
    'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget\en-US\'
    I'm going to attempt to copy the 'en-US' folder to 'en-GB' to see what happens, but I would like to know why this has occurred in the first place? Other roles have installed (such as AD DS AD CS and
    IIS) on other machines with no issue.
    Many thanks
    Chris
    Chris

    Hi Chris,
    The error "Cannot find the Windows PowerShell data file 'ImportExportIscsiTargetConfiguration.psd1'" occured, because the file 'ImportExportIscsiTargetConfiguration.psd1' can't be loaded under the folder en-GB with current culture.
    I recommend you can copy this .psd1 file under  'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget'. Essentially if PowerShell can’t find the specified data file for the current culture it will “fallback” to the top-level data
    file in this case.
    For more detailed information, please refer to this article:
    Windows PowerShell 2.0 String Localization
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I cannot find the method in this interface!

    Is service an interface and query its method in the following scrips? But I cannot find the method query in this interface. What is the function of new?
    Map map = service.query(new FreeMemAgent(), null);
    Thank you
    Edited by: jetq on Jun 7, 2009 9:05 PM

    Hi Frank,
    service is a reference variable and refers to an instance of a class that implements the query() method that returns a reference to an instance of a class that implements the Map interface. If service happens to refer to an instance of a class that implements the InvocationService interface, you can find the Coherence 3.4.2 documentation of the method at InvocationService. The new keyword is a Java operator that creates an object. Continuing with the assumption that service refers to an instance of a class that implements the InvocationService interface, the FreeMemAgent class must implement the Invocable interface. A reference to a "new" FreeMemAgent object is being passed to the query() method.
    Regards,
    Harv

  • Static method throwing "cannot find symbol - method"

    This is an assignment for school. I'm in my second semester of object oriented programming. Here is the method causing the error when compiled in the test case:
        public void testRead()
            Company aCompany = buildCompany();
            aCompany.writeToFile("CompanyDatabase.txt");
            Company bCompany = new BooksAndMore();
            bCompany = readFromFile("CompanyDatabase.txt");
            assertTrue(aCompany.equals(bCompany));
        }Error thrown is "cannot find symbol - method readFromFile(java.lang.String). Here is the method being called:
    {code} public static Company readFromFile(String fileName)
    Company company = new BooksAndMore();
    FileInputStream fis = null;
    ObjectInputStream in = null;
    try
    fis = new FileInputStream(fileName);
    in = new ObjectInputStream(fis);
    company = (Company)in.readObject();
    in.close();
    catch (IOException ex)
    ex.printStackTrace();
    catch (ClassNotFoundException ex)
    ex.printStackTrace();
    return company;
    }{code}
    What am I doing wrong?

    are testRead() and readFromFile() in the same class?
    also, the first line is pointless:
    Company bCompany = new BooksAndMore();
    bCompany = readFromFile("CompanyDatabase.txt");Since the second line calls a method that creates a new BooksAndMore object, there's no point creating one in the first line...it will just be replaced by the new one.
    Company bCompany = readFromFile("CompanyDatabase.txt");...assuming that your readFromFile() method is in the same class. If not, you need to call the method on the class.

  • Pi 7.1: Exception when contacting WS - "Cannot find dispatch method"

    Hi All,
    I have been receiving the following error message as shown in ICM log, where the trace level is set to 3, when a request is sent to a Web Server.
    ...<SOAP:Faultmlns:SOAP='htt//schemas.xmlsp.org/soap/envope/'><faultco>SOAP:Client</ultcode><faultring>Cannot find dispatch method for arg0</faultstring/SOAP:Fault>..
    No error message is returned using a soap client (as soapUI), after loading the same wsdl file.
    About the configuration of the SOAP Communication Channel, no conversion parameter have been set and no SOAP Action has been set because the seme exception is also raised by setting "arg0" as SOAP Action.
    The structure of the response message is like this.
    <Field1>
       <arg0>
           <field2>
           <field3>
    Any help will be well appreciated.
    Many thanks in advacne for your kind support.
    Regards,
           Giovanni

    Hi All !!
    This problem has been solved with the last SAP_XI* Patches.
    We install:
    SAP_XIESR  SP06 Patch 11
    SAP_XIAF   SP06 Patch 11
    SAP_XITOOL SP06 Patch 10
    and the problem...... SOLVED !!!
    Regards,
    Juan.

  • How to find the last update date time and user of record field peoplecode

    how to find the last update date time record field peoplecode?
    Thank you.

    One can check the last update date time using the following query
    SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME'

  • Cannot find format type named Date/Time

    Running latest Dreamweaver on Vista - I get a nasty pop-up
    window if I try to edit one of the predefined date formats -
    "Cannot find format type named Date/Time."
    I've tried deleting configuration setting to no avail. Anyone
    else experienced this problem or have any suggestions ?

    Hello
    It looks like that you had not installed the ADS(Adobe Document server) for the PDF type reports. Please check with your basis team if you want to configure ADS.
    If you need the output as a sapscript then please do the sollowing steps:
    (1) Execute transaction SM30
    (2) Enter 'Table/View' as V_T5F99OCFT
    (3) Select 'Maintain' option.
    (4) Select 'New Entries' option from the Application Too
    (5) Enter following entries:
         Logical Form Name    = HR_IN_EPF12A_99M
         Form Variant         = (Leave this field blank)
         End Date             = 31.12.9999
         Start Date           = 01.01.1990
         Form Type            = SAP Script (SSC)
         Def. Type            = (This field should be checke
         PDF Form Name        = HR_IN_EPF12A_99M
         SAP Script Form Name = HR_IN_EPF12A_99M
         Smart Form Name      = (Leave this field blank)
    (6) Save the entries
    The above example I have given you is only for the form 12A.
    You have to make entries for all the reports sapscript in this table.
    Please goto SE71 -> F4 -> Payroll -> Payroll India here you will find
    all the sapscripts you require.
    Regards
    Ramana

  • How to find out last update date for business partner's marketing attribute

    How to find out last update date for business partner's marketing attribute??
    Im freshie for SAP Application and im assigned to find out last update date for marketing attribute changed
    which table is involved??
    Yours kindness will be appreciated
    thanks

    You can take a look at table AUSP as well as CRMD_AUSP_HIST.
    The "changed by" and "changed at" are logged on attribute level, not on attribute value level. When you change one specific value, the system does a "re-insert" of all existing values of this attribute.
    Take a look at the SAP notes 938426 and 966670  these may assit you in resolving the issue.
    Regards,
    William Laverde

  • Error to invoke service by soap  : Cannot find dispatch method

    i m using jdevelopper 11g and oracle 10g , i write a fonction soap like that:
    -- create or replace function get_naissance(id in varchar2, url in varchar2) return varchar2 as soap_request varchar2(30000);
    declare
    soap_request varchar2(30000);
    soap_respond varchar2(30000);
    http_req utl_http.req;
    http_resp utl_http.resp;
    resp XMLType;
    begin
    soap_request:= '<?xml version = "1.0" encoding = "UTF-8"?>
    *<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://communes/"> <env:Header/>*
    *<env:Body> <ns1:getNaissanceFindById> <arg0>272001</arg0> </ns1:getNaissanceFindById> </env:Body> </env:Envelope> ';*
    http_req:= utl_http.begin_request ( 'http://localhost:7101/naissances-Naissances-webapp/naissanceWS' , 'POST' , 'HTTP/1.1' );
    utl_http.set_header(http_req, 'Content-Type', 'application/soap+xml');
    utl_http.set_header(http_req, 'Content-Length', length(soap_request));
    utl_http.set_header(http_req, 'SOAPAction', '');
    utl_http.write_text(http_req, soap_request);
    http_resp:= utl_http.get_response(http_req);
    utl_http.read_text(http_resp, soap_respond);
    utl_http.end_response(http_resp);
    resp:= XMLType.createXML(soap_respond);
    DBMS_OUTPUT.PUT_LINE ('naissance is : '||soap_respond);
    resp:= resp.extract('//ns2:getNaissanceFindByIdResponse/return' , 'xmlns:ns2="http://communes/"' );
    -- dbms_output.put_line('naissance: '||resp.getStringVal());
    -- return resp.getStringVal();
    end;
    there generate an error
    *naissance is : <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope"><S:Body><S:Fault xmlns:ns4="http://schemas.xmlsoap.org/soap/envelope/"><S:Code><S:Value>S:Sender</S:Value></S:Code><S:Reason><S:Text xml:lang="fr">Cannot find dispatch method for {http://communes/}getNaissanceFindById</S:Text></S:Reason></S:Fault></S:Body></S:Envelope>*
    the method getNaissanceFindById is correctly implement , the web service run correctly :
    */** <code>select o from Naissance o where o.naissanceid like :id</code> */*
    *@RequestWrapper(className = "jaxws.overloaded.GetNaissanceFindById2")*
    *@ResponseWrapper(className = "jaxws.overloaded.GetNaissanceFindById2_Response")*
    *@WebMethod(operationName = "getNaissanceFindById_2")*
    *public Naissance getNaissanceFindById(String id) {*
    RETURN (Naissance)em.createNamedQuery("Naissance.findById").setParameter("id", id).getSingleResult();
    the result when i put id= 272001 when the service is running :
    *<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://communes/">*
    *<env:Header/>*
    *<env:Body>*
    *<ns1:getNaissanceFindById_2>*
    *<arg0>271002</arg0>*
    *</ns1:getNaissanceFindById_2>*
    *</env:Body>*
    *</env:Envelope>*
    *<?xml version = '1.0' encoding = 'UTF-8'?>*
    *<S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope">*
    *<S:Body>*
    *<ns2:getNaissanceFindById_2Response xmlns:ns2="http://communes/">*
    *<return>*
    *<addrid>1</addrid>*
    *<communeid>27100</communeid>*
    *<datnais>1962-11-09 00:00:00.0</datnais>*
    *<gender>f</gender>*
    *<idMere>270000</idMere>*
    *<idPere>270000</idPere>*
    *<naissanceid>271002</naissanceid>*
    *<nom>amamra</nom>*
    *<objectVersionId>0</objectVersionId>*
    *<prenom>zahia</prenom>*
    *</return>*
    *</ns2:getNaissanceFindById_2Response>*
    *</S:Body>*
    *</S:Envelope>*
    so i need your help to resolve this error it's amazing , if you want athers details i 'll give u
    thank you

    Please note you're on the SQL Developer forum, so I doubt you'll get answers here...
    Have fun,
    K.

  • Error : cannot find setter method....

    hi i am using Ant 1.6 and struts framework .....to run a simple program to print a name
    i have followed all the basic steps ....to create a struts application
    now the problem is
    when i am trying to acces the applicatin it is giving
    org.apache.jasper.JasperException: /index.jsp(9,2) Unable to find setter method for attribute: name
    the form tag in index.jsp is
    <html:form action="Name"name="nameForm" type="NameForm">
    the bean is
    package com;
    //import statements
    import javax.servlet.http.HttpServletRequest;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    public class NameForm extends ActionForm {
    String name = null;
    public String getName() {
        return name;
      public void setName(String name) {
        this.name = name;
      public void reset(ActionMapping mapping, HttpServletRequest request) {
        this.name = null;
    }  the struts-config.xml file...
    <?xml version="1.0" encoding="ISO-8859-1" ?>
        <!DOCTYPE struts-config PUBLIC
              "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
              "http://struts.apache.org/dtds/struts-config_1_3.dtd">
        <struts-config>
         <form-beans>
         <form-bean name="nameForm" type="com.NameForm"/>
         </form-beans>
         <action-mappings>
         <action path="/Name"
                   type="com.NameAction"
                   name="nameForm"
                   input="/index.jsp">
                   <forward name="success" path="/displayname.jsp"/>
                   <forward name="failure" path="/index.jsp"/>
         </action>
         </action-mappings>
        </struts-config>
       thanks....in advance

    Hal-.- wrote:
    I downloaded Lucene from its homepage, I have tried Lucene 2.3.0 and Lucene 2.2.0, but same errors occurs which is cannot find symbol method Text.
    I checked class Field under Lucene, it doesn't have Text function. Well there you go. You can't call methods that don't exist.
    What should I do to add two Fields "path" & "contents" into Document?It seems very likely that the object that represents an indexed document, has some way to express the concepts of "path" and "contents". You should probably just read the docs some more.
    But other than that I have no idea. Ask on a Lucene forum.

  • HT4623 I want to update my iOS software from version 4 to the latest available version, but I cannot find the software update tab in Settings- General. Pls help.

    I want to update my iOS software from version 4 to the latest available version, but I cannot find the software update tab in Settings->General. Pls help.

    http://support.apple.com/kb/ht4623
    Sometimes older devices must be plugged into iTunes to update.
     Jackson

  • Cannot find app to update

    My Ipad shows I have 1 update but I cannot find anything to update. It had 4 updates, I found 3 in the purchased but not currently on my ipad but I cannot find the last one and the 1 will  not go away.

    I have done exactly what you said. When I check "update", a screen  drops down that asks that I enter my email address to continue........but i cannot find any way to do this.
    In the past, all I would do is check "update", and the update would take place. Since I upgraded to Mountain Lion, this has changed, and i do not know how to do this simple thing.......the app store shows an update is due to be updated, but i cannot find out how to do it.

Maybe you are looking for