No such method found...

Hello everybody,
following exception...
java.lang.NoSuchMethodError: java/net/URL: method getQuery()Ljava/lang/String; not found
was thrown when I tried running a simple test applet in browsers IE 5 and 5.5! the same worked with Netscape 6.2!!
here is a part of the code...
=========================================
import java.net.*;
String s = getDocumentBase().getQuery();
System.out.println("s = "+s);
=========================================
is there something to do with the which version of JVM is running in IE?

The method getQuery() has only been around since 1.3 and unless you have the plugin installed and you are using it, IE only supports JVM 1.1.8

Similar Messages

  • No such method found for com.sun.jndi.toolkit.url.UrlUtil: method

    Hello,
    I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
    The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
    ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
    What is the problem? Where should I put my jndi.jar? Thanks.
    Regards
    CY Seah

    Hello,
    I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
    The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
    ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
    What is the problem? Where should I put my jndi.jar? Thanks.
    Regards
    CY Seah

  • No Such method found error

    I am getting this exception while deploying an ear file
    Any solution to solve this
    java.lang.NoSuchMethodError: IE.Iona.OrbixWeb.SSL.IT_SSL.init(Lorg/omg/CORBA/ORB;)LIE/Iona/OrbixWeb/SSL/IT_SSL;
    at com.ten.snt.SS.ei.Connection.initializeSSL(Connection.java:245)
    at com.ten.snt.SS.ei.Connection.init(Connection.java:148)
    at com.ten.snt.SS.ei.Connection.<init>(Connection.java:72)
    at com.ten.snt.SS.ei.StatusClient.<init>(StatusClient.java:40)
    at net.bls.services.soegservice.eis.Connect.makeStatusClient(Connect.java:159)
    at net.bls.services.soegservice.eis.Connect.createManagedConnection(Connect.java:128)
    at weblogic.connector.common.internal.ConnectionFactory.createResource(ConnectionFactory.java:127)
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1103)
    at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1040)
    at weblogic.common.resourcepool.ResourcePoolImpl.setInitialCapacity(ResourcePoolImpl.java:723)
    at weblogic.connector.common.internal.ConnectionPoolManager.updateInitialCapacity(ConnectionPoolManager.java:495)
    at weblogic.connector.common.internal.ConnectionPoolManager.preparePool(ConnectionPoolManager.java:140)
    at weblogic.connector.deploy.Deployer.preparePool(Deployer.java:618)
    at weblogic.connector.deploy.Deployer.prepare(Deployer.java:230)
    at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:248)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer.java:2962)
    at weblogic.j2ee.J2EEApplicationContainer.prepareModules(J2EEApplicationContainer.java:1534)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1188)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2602)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2552)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2474)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [java.lang.NoSuchMethodError: IE.Iona.OrbixWeb.SSL.IT_SSL.init(Lorg/omg/CORBA/ORB;)LIE/Iona/OrbixWeb/SSL/IT_SSL;]
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2491)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >

    Check the startweblogic script file for WLS and remove all the previous one-off patches added in the CLASSPATH, if they have been fixed in the current SP level installed. For example, if you have WLS 6.1 SP2 installed:
    In the startweblogic script, the following entry was added in the CLASSPATH :
    $WL_HOME/lib/CR059180_src610sp1.jar
    once this line is removed, the problem may be solved.
    I would suggest to locate all components within that file, and make sure to recompile them in WLS’s appropriate version and service pack that you are using. Once that's done, you will have to repackage the file, and deploy the newly compiled code. - Navaneeth

  • No such method error when launching the Interactive form

    Hi Experts,
    I have developed a simeple Java Webdynpro application and added an Interactive form without any controls in it. Created the context with one value node and a binary value attribute.
    I have assigned  value node to datasource and binary attribute to pdfSource. When I launch the application I am getting the following no such method error.
    java.lang.NoSuchMethodError: com/sap/tc/webdynpro/clientserver/uielib/adobe/api/IWDInteractiveForm.setTemplateSource(Ljava/lang/String;)V
    The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
    If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.*) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.
    My NWDS is of Version 7.0.06
    and J2EE Engine is of Version 6.40.
    any guess why I am getting this error.
    Thanks
    Chinna.

    Issue solved. Compatablility issue NWDS 2.0 Version should use for NW 2004.

  • In F110 I getting error No valid Payment method found but i did

    While doing intercompany clearance using Pay methd Y in F110 payment run in payment proposal system showing error "No valid payment method found" this is showing in vendor line item and if i am clicking customer line item showing debit bal still exit because system not picking my pay mthd Y in vendor line item which one i assigned in vendor master data. But for another vendor its posting clearing this error occur only for particular vendor. Any can help me to rectify my error.

    Hello,
    We were get the same error message and found that the solution was that the vendor must have an address.
    In OBVU, Payment method / country, the required master record specs had Street checked on.  This reqiured an address for the vendor.  Once we entered an address the F110 payment run was successful for this vendor.
    Rgds,
    Dan

  • Automatic payment error - no valid payment method found

    I created an invoice which i try to clear in f110. the vendor has the appropriate payment methods specified too but still I get this error "No valid payment method found " for that document.
    kindly assist, if anyone knows where can be the error.
    this is only for one company code.
    thanks

    Hi,
    Check the configuration of Automatic Payment Program.  Check "Bank Determination" and verify whether the paymetn method is set up for the House Bank determined by Automatic Payment Program configuration.
    If the payment method in invoice or vendor master does nto match with the payemnt method set up for the house bank, you may get this error.
    Regards,
    Chirag
    Pls. award points if this is useful.

  • F110 error - No Valid Payment Method found - Account ID missing

    Hello All,
    I am trying to clear some Vendor invoices in F110 using a Payment method. We have entered the House Bank at the time of posting the Vendor Invoice (Invoice is posted through an BAPI) and I am able to see the House Bank in BSEG - HBKID.
    Further for the Payment Method we are using only one House Bank and one Account ID - which has been configured correctly in FBZP - Bank Determination.
    However when we are running F110 for clearing the invoices - we are getting an error no valid payment method found. I am able to see the Payment Method & the House Bank while editing the Proposal - only Parameter which is missing is Account ID - though we have maintained it in Bank Determination configurartion.
    Any help will be appreciated a lot to fix this issue.
    Thanks and regards,
    Ankur

    Dear,
    Everything may be alright but payment method is assigned to Bank Account in Bank selection section FBZP. So, system will process payment from the bank account with assigned payment method. So, there is no Account ID system is not able to find the payment method. It is difficult to provide remedy. If house bank and account ID is not in the vendor master then update them.
    Just try it out....all the best.
    Regards,
    Chintan Joshi.

  • F110-Payment Run: No valid payment method found

    Hi,
    Whenever we execute F110 Automatic payment run with 'bank transfer' payment method, the  documents for a particular vendor goes into the exception list as 'No valid payment method found' and this document is posted thru' HR- payroll.
    But now I noticed that the document is not going into exception list and it is successfull eventhough I have not changed anything in the vendor master or the payment method.
    Kindly let me know what maybe the reason for the document  not going into the exception list.
    Regards,
    Suresh.

    Hi
    If you didnt assign the Payment Method in Vendor Master Data and  execute F110 Automatic payment run , what ever may be the payment method 'Check payment method' , 'Bank Transfer' , etc , .... you will get the message 'No valid payment method found'.
    With the particular payment method only the document is going to be picked and if the payment method is not found the document wont be picked. Then howcome a document will or willnot come into exception list.
    try to understand the logic.
    Regards
    Venkat

  • F110-No valid Payment method Found

    We have posted an invoice for a vendor in the month of March and the payment method was not assigned in the invoice, at that time the payment method assigned to the vendor master data was direct bank transfer. However now we have changed the payment method to check in vendor master data. And running the APP. The system says in the Proposal that No valid Payment method Found. So I went and gave the payment method in the invoice as check. But still the same message appears.
    Please advice.

    Do you not have information like this in your log:
    21.04.2009 13:45:16 >            Payment method selection additional log
    21.04.2009 13:45:16 > Payment method selection for items due now to the amount of EUR          119,00-
    21.04.2009 13:45:16 > Payment method "L" is being checked
    21.04.2009 13:45:16 > Payment method not defined for foreign currencies
    or
    21.04.2009 09:24:55 Due items with currency RON, pmnt method M - items total is > 0
    When you turn it on you should have it

  • F110 - No valid payment method found for Customer Direct Debits

    Hi All,
    I am running customer Direct debit pre-notifications payment run via F110.
    I am runnnig only for one customer and it appears as an exception with the message 'No valid payment method found
    We have used payment method D lots of times before so it is nothnig to do with the company code or payment method set up.
    It is however the first we've tried to run for this customer.
    I have checked everything I know:
    1) Payment method D selected in the F110 parameters
    2) Payment method D entered in the invoice line item
    3) Payment method D entered in the payment transactions tab on the customer master data
    4) Valid Direct Debit madate exists and check complete
    5) parameters are correct in the F110 selection - company code, payment method, dates, next payment date, invoice is well overdue, it was only entered today but was due back in 2014!, free selection, additional log etc.
    6_ Checked in SPRO in "Payment Method/Country" details and the following are required : Bank details including IBAN required, SWIFT code required, SEPA mandate required. These are all maintained in the customer master data.
    and still the customer invoice I want to pay is show as an exception in the log. In the payment proposal it shows as an exception No valid payment method found. In the log it shows as
    Customer/vendor does not have any allowed bank details Message class FZ Message no. 651
    No permitted payment method exists Message class FZ Message No. 608
    Information re. customer 131275 / paying company code N120 ... Message class FZ Message no. 306
    ... payment not possible because of reported error Message class FZ Message no. 311
    I am at a loss as to where to check next. Please help.
    thanks
    Jemma

    Hi Jenna,
    In the log I can see the message 'SEPA mandate & for bank xxx has been assigned to a contract' FZ788. This means: Mandates with contract cannot be used for the payment of any invoice. The invoice has to be assigned to the mandate or be assigned in the payment run.
    Please check the F1-help of the field 'SEPA Mandate: Contract Type' in the mandate.
    The Note http://service.sap.com/sap/support/notes/1874892 describes the various options.
    Regards,
    Emőke

  • No valid payment method found (T code F110 autoPayment)

    Dear All,
    When we define ranking order in bank determination for auto payment program. System issue no messages otherwise for not defining ranking order system issues error message
    No valid payment method found However, i have define payment method and house bank in vendor master record only.
    Kindly resolve the issue

    hi,
    Kindly check OBVCU whether the house bank has been assigned to payment method and check the tolerance limit for the vendor .

  • F110 ECC6.0 Upgrade from 4.6C : no valid payment method found

    Hello,
    We upgradeed from 4.6c to ECC6.0 last week. We're having issue with F110. In the payment run some of the vendors have not been selected in payment proposal and error message:no valid payment method found.
    When I checked all vendor master data, payment method"T" is there. Please advise how to fix this post go live issue.
    Thanks,
    Saeed

    HI,
        Check the definition of your payment method. It is possible that there is a condition preventing it from being used.
    ie In Method T  "no foreign vendors" could be set, and you are trying to pay a foreign vendor.
    Make sure when doing a proposal that the extended logs are activ, this may help analyzing the situation.
    Kind regards

  • Error during F110 - No Valid Payment Method found

    Hi SAP Gurus,
    During F110 (APP) i am getting the error msg as "No Valid Payment Method Found". In FBZP i have checked all the setting and which looks ok to me.
    But we i look at the log it says that (Payment must take place before 17 Aug 2010 next payment on 30 Sep 2010) Please note all the line items are entered on 17 Aug 2010 and Payment terms as 001 which is due immediately.
    In the Paramaters for F110 i have entered (Posting Date 25 Aug 2010) (Docs entered up to 25 Aug 2010) (Next P/Date 30 Sep 2010).
    The second error that is displayed in the LOG is (No amount has been scheduled for currency USD and at least 999 days' life).
    Kindly note in the value date field i have entered as 999 days.
    Please advice why this error are coming i have checked all the configuration
    Regards.

    Your first error is because no document has been found for the payment method you entered in the parameters tab.  This can be due to a wrong method entered here or a different/no method found in the payment due documents.
    Reg your second error, check the value date entry for the payment method and house bank account selected in the run.  I think the entry is missing for currency USD (or may be you have selected a wrong bank account which has currency USD) in that table.
    Ravi.

  • No method found for XML query element

    Hi,
    I have an EJB module which contains some entity beans.
    If I try to deploy it or verify it using the Sun One Verifier Tool I get the following exception...
    Error: ** Error trying to process file: java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid <query-method>
    java.lang.RuntimeException: No method found for XML query element: Ambiguous or invalid <query-method>
    at com.sun.enterprise.deployment.xml.EjbNode.parseQueries(EjbNode.java:700)
    at com.sun.enterprise.deployment.xml.EjbNode.completeLoadingDescriptor(EjbNode.java:671)
    at com.sun.enterprise.deployment.xml.EjbBundleNode.completeLoadingDescriptor(EjbBundleNode.java:524)
    at com.iplanet.ias.deployment.EjbBundleXmlReader.load(EjbBundleXmlReader.java:249)
    at com.iplanet.ias.deployment.EjbBundleXmlReader.loadStdAloneModule(EjbBundleXmlReader.java:162)
    at com.sun.enterprise.tools.verifier.Verifier.openEjbJar(Verifier.java:2421)
    at com.sun.enterprise.tools.verifier.Verifier.loadEjbJar(Verifier.java:1318)
    at com.sun.enterprise.tools.verifier.Verifier.loadJar(Verifier.java:866)
    at com.sun.enterprise.tools.verifier.gui.MainPanel.run(MainPanel.java:187)
    at java.lang.Thread.run(Thread.java:536)
    Look in file "EntityBeans.jar_verified.xml" for detailed results on test assertions.
    This problem can be resolved by un-installing the IDE, removing my user directory, and re-installing the IDE (I am using SunOne Studio 5 SE Update 1). The problem is that it returns with alarming regularity.
    Anyone else experiencing this? Any help would be much appreciated.

    Sometimes, but not always, this exception appears in the ide.log before the error first occurs.
    com.sun.forte4j.j2ee.packaging.PackagingIOException: package/EntityBeans.ejbjar
         at com.sun.forte4j.j2ee.packaging.PackagingUtil.writeJarFile(PackagingUtil.java:403)
         at com.sun.forte4j.j2ee.packaging.PackagingUtil.writeJarFile(PackagingUtil.java:67)
         at com.sun.forte4j.j2ee.ejbmodule.EJBModuleDataObject.writeEJBJar(EJBModuleDataObject.java:2673)
         at com.iplanet.ias.tools.forte.verifier.VerifierAction.performAction(VerifierAction.java:63)
         at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:431)
         at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:97)
         at org.openide.util.Task.run(Task.java:136)
         at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328)
         at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:670)

  • No method found error when calling java stored procedured

    hi:
    i am rather confused about this. i have written several
    java stored procedures and all of them work fine. but when i tried another one , the error message 'no method found 'occurs
    when i call the procedure from sqlplus.
    it' s a simple procedure . but it's very strange and happens
    from time to time
    my compile shell as following
    javac -classpath $ORACLE_HOME/jdbc/lib/classes12.zip GenFiles.java
    $ORACLE_HOME/bin/loadjava -u zw/zw@aixtest GenFiles.class
    and
    my definition as following
    create or replace procedure files(chargeCyckeID varchar2, cycleStart varchar2,cycleEnd varchar2,
    loginName varchar2, filePath varchar2, start1 number, end1 number, step number)
    AS LANGUAGE JAVA
    NAME 'GenFiles.genFile(String , String , String , String , String , int , int , int )';
    and my java code is here :
    import java.sql.*;
    import java.io.*;
    import oracle.jdbc.driver.*;
    public class GenFiles{
         public static void main(String[] args){
              04UU<F7QV\FZ#,V\FZ?*J<#,V\FZ=aJx#,5GB<C{#, ND<~B7>6#,Pr:E?*J<#,Pr:E=aJx#,2=3$#(Iz3IND<~5D<GB<J}#)
         public static void genFile(String chargeCycleID, String cycleStart, String cycleEnd, String loginName, String filePath, int start, int end, int step){
         try{
              String sqllist = "select customer_id,contract_code,     usercode,ani,ord,"
                        + " agent_code,linkman, customer_name , postcode,paymethod_category_id ,"
                        + " ltrim(to_char(cost,'999999990.99')) cost,call_duration,from listani_file where ord> ? and ord<? order by contract_code";
              String sqlcalls1 = "select a.ani || ',' || a.PASS || ',' || to_char(a.START_TIME,'yyyy-mm-dd hh24:mi:ss') stime || ',' || trunc(a.CALL_DURATION/60)||':'||ltrim(to_char(mod(a.CALL_DURATION,60),'09')) CALL_DURATION || ',' || ltrim(to_char((CALL_AMOUNT/ceil(CALL_DURATION/60)),'999999990.99')) RATE || ',' || ltrim(to_char(a.CALL_AMOUNT,'999999990.99')) CALL_AMOUNT"
                        +" from call_fact_mind a "
                        +" where a.usercode=?"
                        + " and a.ani=? "
                        + " and a.period_key<='" + end + "'"
                        + " and a.period_key>='" + start + "'"
                        + " and a.charge_flag='Y' "
                        + " and a.CALL_DURATION>6"
                        + " and a.CALL_AMOUNT>0"
                        +" order by a.period_key";                    
              String sqlcalls2 = "select a.ani || ',' || a.PASS || ',' || to_char(a.START_TIME,'yyyy-mm-dd hh24:mi:ss') stime || ',' || trunc(a.CALL_DURATION/60)||':'||ltrim(to_char(mod(a.CALL_DURATION,60),'09')) CALL_DURATION || ',' || ltrim(to_char((CALL_AMOUNT/ceil(CALL_DURATION/60)),'999999990.99')) RATE || ',' || ltrim(to_char(a.CALL_AMOUNT,'999999990.99')) CALL_AMOUNT "
                        + " from call_fact_mind a "
                        + " where a.usercode=?"
                        + " and a.period_key<='" + end + "'"
                        + " and a.period_key>='" + start + "'"
                        + " and a.charge_flag='Y' "
                        + " and a.CALL_DURATION>6"
                        + " and a.CALL_AMOUNT>0"
                        +" order by a.period_key";                    
              Connection con = new OracleDriver().defaultConnection();
              try{
                   int i = start;
                   //8y>]2=3$Q-;7
                   while( true){
                        if( i>=end ) break;
                        genFile(con, i , i+step, chargeCycleID, loginName, filePath, sqllist, sqlcalls1, sqlcalls2);
                        i += step;
              }catch(Exception ex){
              }finally{
                   if( con != null) con.close();
         }catch(Exception exx){}
              8y>]2=3$Iz3IND<~
         private static void genFile(Connection con, int start, int end, String chargeCycleID, String loginName, String filePath, String sqllist, String sqlcalls1, String sqlcalls2) throws Exception{
              PreparedStatement ps1 = null;
              PreparedStatement ps2 = null;
              PreparedStatement ps3 = null;
              ResultSet rs1 = null;
              ResultSet rs2 = null;
              String fileName = filePath + System.getProperty("file.separator") + start + "_" + end + ".txt";
              BufferedWriter writer = null;
              try{
                   writer = new BufferedWriter(new FileWriter(fileName));
                   ps1 = con.prepareStatement(sqllist);
                   ps2 = con.prepareStatement(sqlcalls1);
                   ps3 = con.prepareStatement(sqlcalls2);
                   ps1.setInt(1, start);
                   ps1.setInt(2, end);
                   rs1 = ps1.executeQuery();
                   //Iz3Ibuffer,V;SPR;6(<GB<J12EP4HkND<~
                   StringBuffer strBuffer = new StringBuffer();
                   int i =0;
                   //Q-;7:OM,=a9{</
                   String preContractCode = "";
                   String currentContractCode = "";
                   while( rs1.next()){
                        currentContractCode = rs1.getString("contract_code");
                        if( rs1.getString("ani") == null){
                             ps2.setString( 1, rs1.getString("usercode"));
                             rs2 = ps2.executeQuery();
                        }else{
                             ps1.setString(1, rs1.getString("usercode"));
                             ps1.setString(2, rs1.getString("ani"));
                             rs2 = ps1.executeQuery();
                        //Hg9{3vOVPB5D:OM,:E#,<SHk:OM,OnM7,contract_costJG:OM,On7QSC
                        if( ! preContractCode.equals(currentContractCode)){                     
                             //TZG0Cf<SHk?UPP
                             strBuffer.append("\r\n");
                             String contractHead = "\"1\"" + ",\"" + rs1.getString("linkman") + "\",\"" + rs1.getString("customer_name")
                                            + "\",\"" + rs1.getString("contract_code") + "\",\"" + rs1.getString("agent_code")
                                            + "\",\"" + chargeCycleID + "\",\"" + rs1.getString("contract_cost") + "\"";
                             strBuffer.append(contractHead);
                        while( rs2.next()){
                             if( i<1000){
                                  i++;
                                  strBuffer.append("\"2\"" + rs2.getString(1));
                             }else{
                                  String str = strBuffer.toString();
                                  writer.write(str, 0, str.length());
                                  strBuffer = new StringBuffer();
                                  strBuffer.append(rs2.getString(1));
                                  i = 1;
                        //<SHk7QSC:O<F
                        if( rs1.getString("ani") == null){
                             String trail = "\"2\"" + ",\"" + "ani: " + "\",\"" + rs1.getString("ani") + "\",\"" + "Total Amount: " + "\",\"" + rs1.getString("cost") + "\"\r\n";
                             strBuffer.append(trail);
                        }else{
                             String trail = "\"2\"" + ",\"" + "usercode: " + "\",\"" + rs1.getString("usercode") + "\",\"" + "Total Amount: " + "\",\"" + rs1.getString("cost") + "\"\r\n";
                             strBuffer.append(trail);
                        preContractCode = currentContractCode;     
                        writer.close();
                        rs2.close();
              }catch(Exception ex){
              }finally{
                   if( rs1 != null) rs1.close();
                   if( rs2 != null) rs2.close();
                   if( ps1 != null) ps1.close();
                   if( ps2 != null) ps2.close();
    i need your help!
    regards
    daniel wang

    Hi again, Daniel,
    I'm only guessing here, but unless you've made lots of mistakes when
    you copied your code to your post to the forum, your method signatures
    don't match. The definition of "genFile" in your java class is quite
    different to what you wrote in your PL/SQL wrapper.
    Also, you have defined "genFile" to be a private method -- I think it
    needs to be public.
    Also, I think the "main" method doesn't need to be in the "GenFiles"
    class -- perhaps you should remove it.
    Also, I think in your PL/SQL wrapper you need to use fully qualified
    names, so use "java.lang.String" and not just "String".
    Lastly, I think you should use the "-force" and "-resolve" flags
    with the "loadjava" command.
    Good Luck,
    Avi.

Maybe you are looking for