Why MATLAB Language Syntax Return Error 1048?

Why Does My Script Written in The MathWorks, Inc. MATLAB® Language Syntax Return Error 1048?
x = (0:0.1:10)';
y = sin(2*x)./exp(x/5);
trnData = [x y];
numMFs = 5;
mfType = 'gbellmf';
epoch_n = 20;
in_fis = genfis1(trnData,numMFs,mfType);
out_fis = anfis(trnData,in_fis,20);
aa = evalfis([x x1],out_fis);
http://www.mathworks.com/help/fuzzy/anfis.html

What do you get if you define the output as a 2D array?
(Or transpose the vector. Remember that matlab has a distinction between row and column vectors and LabVIEW does not). If you create a 2D array, it can be 1xN or Nx1 and you get all elements either way.)
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Why do I have a error 1048?

    When I run my programme , I have a error 1048. I have remove the old matscript.dll and paste the new matscript.dll in the LabVIEW>>resource>>script, but I also have the error. Please tell me the solution,thank you !

    jljl,
    There are a number of other posts on this error, so you may want to search for those. But most of the solutions offered have to do with having a variable name that is the same as a function name in Matlab. We have a knowledgebase on our website that discusses this at:
    http://digital.ni.com/public.nsf/websearch/3770DDA​4593BF5D6862567D0007A31E6?OpenDocument
    I hope this helps!
    Tyler S

  • Why Does My MATLAB Script Return Error 1048?

    I am running Matlab 6.5, and the matlab scrip is
    M_thred2=M > Thred;
    M is 2 dimensional array and Thred is a constant, so M_thred2 will have thresholded array from M.
    If I make M as output, it works fine, but M_thred2 doesn't.

    Hi,
    This error can occur if your variable name is the same as a function name in MATLAB. For instance, using the variable name disp and then trying to return this variable will generate this error. To fix this, choose variable names that are not reserved names used by MATLAB. See the MATLAB online help or user manual for a list of reserved function names.
    This error can also be generated if the Clear All function is used in your MATLAB script. To resolve the error, simply remove this function from your script. For more information on creating and using MATLAB scripts in LabVIEW, refer to LabVIEW's VI, Function, & How-To Help.
    Hope this helps,
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • Why do I keep getting Error 519: Server interface error" - Server interface error "no component returned from creativewidget' Line: 479 - var test = parent.add('statictext', undefined, text)  when I try to use pattern fill/scripted patterns.  I have unin

    Why do I keep getting Error 519: Server interface error" - Server interface error "no component returned from creativewidget' Line: 479 -> var test = parent.add('statictext', undefined, text)  when I try to use pattern fill/scripted patterns.  I have uninstalled and re-installed PS CC.  I have opened holding down shift to disable third party plug-ins.  I have moved 3rd party plugins to a temp location outside of ps and it still doesn't help.  It worked once, and only once and now won't work at all.

    Unless your Photoshop question has to do with a download/install error, you should ask in Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Why do i get an error ( language code suply is not valid) while trying to sync with my ipad2

    why do i get an error ( language code suply is not valid) while trying to sync with my ipad2
    i'm using macbook pro and trying to share some photos with my ipad2. when i try to register my ipad i get this error.
    tnx,
    Dani.

    AMDS for Windows
    http://support.apple.com/kb/TS1567

  • Error 1048 Matlab Script depends on string length

    Using: Labview 8.2, Matlab 2007a, Windows XP (AMD X2 4200+ 3GB RAM).
    I'm having an issue with MATLAB script server, Error 1048 failed to get variable from script server.  I've read the forums, but most posts are years old and don't address variable size issues.  I have no problem with these strings inside the MATLAB command window.  I'm somewhat inexperienced with LabView, so maybe this VI could have been simplified.
    I'm writing data files with a tab header, using MATLAB to perform some operations on data (I have a library written to do certain things and can't really spend the time to recode in Labview).  When I try to pass out the new header string, I get error 1048 only when the string length goes above a certain size range.  I have iterations because I want to process hundreds of files in a similar fashion to this VI.
    Header length ~ 1300 chars has always been fine, regardless of number of iterations within the VI.
    Header length ~ 2600 chars presents some errors; not deterministic.
    Header length ~ 5200 chars has many errors; not deterministic.
    Header length ~ 7800 chars has many errors, fails almost all the time.
    Also, timing delay after reading in the file seemed to do nothing to help.  Pausing at the end of the MATLAB script did not seem to help. Clearing MATLAB/restarting LabView did not seem to help.  Is there a way to catch variable-specific errors from the script window?  Notice that the output variable is not cleared when it fails to be obtained from the MATLAB window.  I could wrap the whole thing in a while loop until there are no errors, but that doesn't help when the length is so large none of them succeed.   I can split the string inside matlab, but I'd have to create n strings and then concatenate them outside, which still gives me a lack of scalability.  Is there any better way to handle this kind of non-deterministic error?
    Thanks very much for reading.
    Attachments:
    header6001.txt ‏8 KB
    Matlab Script Server Test1.vi ‏38 KB
    header1001.txt ‏2 KB

    Does NI monitor these forums for bug reports to fix?  Here's a non-scalable hack solution I mentioned earlier, creating n string outputs and concatenating them in Labview.  I've checked this in Matlab using the code below.  I've included the VI if anyone has the same issue and wants it.
    Note that I chose to throw the size error if the string is too large for the n you choose.  I prefer this to trying to check the string output to see if it was truncated.
    hcols = size(hstring,2);
    for k = 1:8
        hvar = strcat('h', sprintf('%d',k));
        if( hcols >  k*1000 & k < 8 )
            hcom = sprintf('%s = ''%s'';', hvar, hstring(1, ((k-1)*1000+1):k*1000 ));
        %if size < k*1000, or we're at the end with leftovers, copy what's left
        elseif( hcols >= (k-1)*1000+1  &  (hcols <= k*1000 | k == 8 ))
            hcom = sprintf('%s = ''%s'';', hvar, hstring(1, ((k-1)*1000+1):end));
        else
            hcom = sprintf('%s = '''';', hvar);
        end  
        eval(hcom);
    end
    %Matlab validation code.  Do not use strcat, as it will chop tabs at the endpoints.
    newh = sprintf('%s%s%s%s%s%s%s%s', h1, h2, h3, h4, h5, h6, h7, h8);
    strcmp(hstring, newh)
    Attachments:
    Matlab Script Server Test2.vi ‏40 KB

  • Why it returns ERROR after I changed some Standard Reports output to XML?

    Our EBS is a 11.5.10 CU2 instance.
    We just upgrated the XML Publisher to 5.6.1 and did all the work described in section "Post-install Steps" of "About Oracle XML Publisher 5.6.1"(Doc ID: Note:357308.1)
    Now we are do the testing.
    I changed the Standard Report "Journals - General (132 Char)" output type to XML, then ran it.
    It returns ERROR
    Logs is as flows:
    General Ledger: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    GLGENJRN module: Journals - General(132 Char)
    Current system time is 25-AUG-2006 11:39:25
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_SET_OF_BOOKS_ID='1001'
    P_KIND='L'
    P_POSTING_STATUS='U'
    P_CURRENCY_CODE='CNY'
    P_PERIOD_NAME='AUG-06'
    P_PAGESIZE='132'
    XML_REPORTS_XENVIRONMENT is :
    /global/d01/applprod/oracle/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /global/d01/applprod/oracle/prodora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_AMERICA.UTF8
    REP-1401: 'beforereport': Fatal PL/SQL error occurred.
    ORA-06502: PL/SQL: numeric or value error
    Report Builder: Release 6.0.8.25.0 - Production on Fri Aug 25 11:39:26 2006
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 301650.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 25-AUG-2006 11:39:27
    Anybody know why?
    Thanks!

    Hi,
    The log file says that the RDF report actually errored out
    and its not a problem in XML Publisher.
    REP-1401: 'beforereport': Fatal PL/SQL error occurred.
    ORA-06502: PL/SQL: numeric or value error
    what you can do to debug is change the output type to text and run the report.
    See, if the report runs successfully. I guess, there might be some problem with the report itself.
    If the text report runs fine, change the output type to xml and run it.
    Hope it helps

  • ATZ returning ERROR (N95 8GB)

    I'm connecting to my N95 8GB via Bluetooth from a laptop running Ubuntu Linux. I had it working fine, but for the last few days whenever I dial out, it seems that the 'ATZ' command in the chat script is returning 'ERROR' instead of 'OK'.
    I just can't see any reason for it. I've disabled/re-enabled Bluetooth on both sides, rebooted the phone, rebooted the laptop, turned any connectivity-related services off/on on the phone, but still no joy.
    Does anyone have any suggestions as to why 'ATZ' might return 'ERROR' on an N95?
    Thanks.
    Ross

    OK, ignore that. Thinking a little clearer this morning and it looks like I had inadvertently broke my /etc/bluetooth/rfcomm.conf file at some point. I had the 'rfcomm0' port bound to Channel 1 (Hands-free Audio Gateway), instead of Channel 4 (Dial-up Networking).
    Not sure how/when I broke that, but the fact that it was returning 'OK' to my 'AT' commands had me convinced I was still talking to the modem service!
    Sorry for the noise,
    Ross

  • Syntax check error in the standard include

    Hi,
    I have modified one standard include using access key to insert one logic as per businness requirements.Now after inserting that code iam getting syntax error but while activating it is not showing the error and getting activated.
    The include is V05XZZMO in that i have inserted code is as follows
    FORM MOVE_USERFIELDS USING ZP.
      CASE ZP.
        WHEN 'VBRK'.
        header
        MOVE LVBRK-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        1
              MOVE LVBRK-ZUONR TO LFAMTV-ZZZUONR.
    *}   INSERT
        WHEN 'VBRP'.
        item
        MOVE LVBRP-XXXXX TO LFAMTV-ZZXXXXX.
    *{   INSERT         GDVK934083                                        2
       MOVE LVBRP-MATWA TO LFAMTV-ZZMATWA.
    *}   INSERT
      ENDCASE.
    ENDFORM.
    now it is throwing error saying that LFAMTV doesn't exist...when I double click on that it is taking me to the FM RV_INVOICE_VIEW_2 where it is defined....
    Can anyone know the reason why it is throwing the error when we go for the syntax check but when u activate the program it is getting activated.. so can this error can be neglected?
    Any help on this will be appreciated..
    Regards,
    Rohan.

    Hi,
    First comment ur code and then activate the include.
    Now put a break point in the form and then in the debug mode check the structre LFAMTV is visible or not.
    if yes then once again add ur code and then activate the whole program.
    and now once again debug it and see...., whether the values are updated to the strurure LFAMTV.
    Regards,
    Nagaraj

  • NcSetAttr.vi returns error for setting Transciver mode with USB8472 hardware

    I am using a NI-USB 8472 (low speed CAN @ 33333kbps) device and am trying to set it up for the wakeup mode which states in the devices spec that it has this capability.  However, attached is the quick test code that returns and error when using the ncSetAttr.vi to change the transciver mode from normal to wakeup
    The error returned from the ncSetAttr.vi is 0xBFF62104: The property ID, attribute ID, or operation code that you provided is invalid.  Solution: Read the function description and verify that you provide ad valid ID.
    As far as I can see I have everything configured and set appropriately for it to work.  Anyone that could help out with why the hardware is not properly being configured for this mode would be appreciated.
    Attachments:
    ncSetAttr-example3.vi ‏27 KB

    That may have been generating that error and yes it does work as long as the value is set to 0.  However, if I try to set it to a value of 2 or 3 in your example I get the following error:
    Possible reason(s):
    NI-CAN:  (Hex 0xBFF6211E) You set a transceiver mode that is not supported by your CAN hardware. For example, Single-Wire modes are not supported for High-Speed or Low-Speed / Fault-Tolerant transceivers. Solutions: Consult the manual to determine the valid transceiver modes for your hardware.
    I notice in MAX that my hardware is listed as Low-Speed/Fault Tolerant so that is why it is generating that error.  However, all documentation for the USB-8472 states that sleep mode/wakeup mode is supported for this device so why does it not allow it.  Can the type be changed from Low-Speed / Fault tolerant to  Single-Wire or is this a hardware component (i.e. transciever) inside the hardware. 
    Also if this is not supported for this device then why does it state so in documentation (copied below)?  If not supported for this device, the documentation is very misleading!
    CAN Interfaces
    USB-847x CAN interfaces feature the industry-standard Philips SJA1000
    CAN controller, which implements ISO 11898 CAN functionality. The
    SJA1000 offers additional features to aid in system development,
    including listen-only mode, sleep/wakeup mode, error counter access,
    and self-reception (echo) mode. USB-847x CAN interfaces recognize
    standard (11-bit) and extended (29-bit) arbitration IDs and are compatible
    with J1939 networks.

  • Please help with SSL POST: Servlet returns Error 500

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

  • Jdev EA1 return error in running an already tested war file (imported war )

    Hi
    Thank you for reading my post.
    I have an Odd problem with Jdev EA1
    I have a war file , I import it into Jdev (new /project/projects from war file)
    I should mention that this war file developed in Rational application developer (Struts based ,database, higly use of other Taglibs)
    Now when i try to run my imported application , it does not run at all, it stops with some errors :
    for example in compiler log it return error for following line :
         <logic:redirect page="<%=session.getAttribute("LastPage").toString() %>" />
    [/Code]
    the  error is :
         Error(29): Attribute: LastPage").toString() is not a valid attribute name
            Error(29): Attribute: % is not a valid attribute name
            Error(30): Encountered end tag </logic:present> without corresponding start tag.
    Also it returns :
         Error(32): Tag attempted to define a bean which already exists: currentModel
            Error(33): Tag attempted to define a bean which already exists: currentName
    for the following code :
    [CODE]
    <logic:equal name="Language" value="en">
         <SCRIPT SRC="language-en.js"></SCRIPT>    /////line 32
         <SCRIPT SRC="ctst.js"></SCRIPT>               ////line 33          
    </logic:equal>I import it into netbeans and it run correctly on tomcat, i deploy it inot sun Java apps and it works ok.
    Even i tried Jboss , geronimo to test my application corectness
    Can you tell me what is wrong ?

    Hi
    I think its serious , Jdev Does not works correctly with a correct war file ,
    some one from Jdev team should think about it.

  • LSOpenApplication returned error -10810

    Can anyone help explain why I am getting this error message in the system.log?
    Jun 24 13:15:23 ns1 loginwindow[60]: spawnvialaunchd() failed, errno=22 label=[0x0-0x15015].com.apple.finder path=/System/Library/CoreServices/Finder.app/Contents/MacOS/Finder flags=0
    Jun 24 13:15:23 ns1 loginwindow[60]: LSOpenApplication returned error -10810, path=/System/Library/CoreServices/Finder.app
    Jun 24 13:15:23 ns1 com.apple.loginwindow[60]: LSOpenApplication returned error -10810, path=/System/Library/CoreServices/Finder.app

    Try a google search for *error 10810* which brings up many hits, including http://discussions.apple.com/message.jspa?messageID=6074977 wherein MarkDouma® describes the error in detail. Simplest thing to do is reset the LS database and restart. Run this one-line command in the Terminal app. Copy & paste and hit the return key:
    +/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user+

  • Native SQL - Runtime Error: DBIF_DSQL2_SQL_ERROR (OCI returned error code)

    Hi,
    I have sometimes a problem with a NATIVE SQL-Statement.
    Runtime Error text:
    Database error text........: "OCI returned error code -2."
    Database error code........: "-2"
    Triggering SQL statement...: "FETCH NEXT "
    Internal call code.........: "DBDS/NEW DSQL"
    Sometimes it works and sometimes we have this error.
    Can anyone help me on this error?
    Best Regards
    André

    Hi !
    also a my job that runs every day, gets the same error in the production system at least once a month ! and nobody could help me to find out why.
    Regards
    Graziano Cortese

  • Why am I getting this error?

    Hello,
    I am trying to call my Java class from a JSP page. I am getting this error:
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\em\jsp\Test_0005fSummarySBU_0005fscreen$jsp.java:82: Wrong number of arguments in constructor.
    strQuery=new ListReturn(strEssUser, strProcessingMonth, strProcessingYear);
    I don't understand why I am getting this error as I pass three paramters to the Java class, and I accept three parameters in the constructor.
    JSP:
    <!-- META TAG is necessary to ensure page recompiles--------------->
    <META Http-Equiv="Expires" Content="0">
    <META Http-Equiv="Pragma" Content="no-cache">
    <HTML>
    <!-- The two Java Classes used to build the AlphaBlox query -->
    <%@ page import="com.home.tool.reporting.*" %>
    <%@ page errorPage="run_error.jsp" %>
    <%@ page import="java.util.List,
                     java.util.Collection,
                java.net.URLDecoder" %>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <TITLE>Economic Model - Summary SBU Report</TITLE>
    <!--Run the onload here, re-retrieve params BM and Breport, pass to onload---------->
    <BODY bgcolor=#ffffff>
    <%
                    Collection strQuery = null;
                    String strEssUser = "test";
                    String strProcessingMonth = "JUL";
                    String strProcessingYear = "2002";
                    strQuery=new ListReturn(strEssUser, strProcessingMonth, strProcessingYear);
                    System.out.println(strQuery);
    %>
    </BODY>
    </HTML>Java class:
    package com.home.tool.reporting;
    import java.net.URL;
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    public class ListReturn extends ReportQueryBuilder
            public void ListReturn()
            public Collection ListReturn(String userID, String pMonth, String pYear)
                throws ReportQueryBuilderException
                //declare Collection store Value-Object pairs
                Collection c = new ArrayList();
                //declare and initialize variables
                CallableStatement cs = null;
                ResultSet rs = null;
                // declare call for stored procedure to pass in three parameters
                String pass = "{Call dbo.p_rep_srSbuList(?, ?, ?)}";
                try
                    //open CallableStatement using JDBC connection to SQL database
                    cs = con.prepareCall(pass);
                    //set IN parameters
                    cs.setString(1, userID);
                    cs.setString(2, pMonth);
                    cs.setString(3, pYear);
                    //execute call and return result set
                    rs = cs.executeQuery();
                    //loop through result set storing each record as a Value-Object pair
                    while(rs.next())
                        c.add(new ListBoxValueObjects(rs.getString(1), rs.getString(2)));
                catch (SQLException sqle)
              throw new ReportQueryBuilderException(replaceToken("Problems executing query: "+sqle.getMessage(), "'", "\\'"));
                finally
                    try
                        //close the Result Set and CallableStatement
                        rs.close();
                        cs.close();
                    catch(Exception e)
                        System.out.print("\nFATAL   : " + e);
                        System.out.print("\nFATAL   : " + e);
                return c;
    }Does anyone see whay I am getting this error??
    I can't figure out the problem!

    change this:
    <%
         Collection strQuery = null;
         String strEssUser = "test";
         String strProcessingMonth = "JUL";
         String strProcessingYear = "2002";
         strQuery=new ListReturn(strEssUser, strProcessingMonth, strProcessingYear);
         System.out.println(strQuery);
    %>To this:
    <%
         Collection strQuery=null;
         String strEssUser="test";
         String strProcessingMonth="JUL";
         String strProcessingYear="2002";
         lr=new ListReturn(strEssUser, strProcessingMonth, strProcessingYear);
         System.out.println(lr.getQuery())
    %>Then make a new public method in your Java called getQuery()
    public Collection getQuery();Do what you need to do to process it and return the value in getQuery. You will also probably need to make private variables in you declaration to do the processing on.

Maybe you are looking for

  • How to install plugin and exta filter in photoshop cs ? and any special filter for special effects ?

    how to install plugin and exta filter in photoshop cs ? and any special filter for special effects ? kindly recommend me any best one and tel me step by step how i will add more plugins n filters

  • Powerbook g4/400 power on porblems

    Ok, ive got a g4/4oo pb, it recently had its monitors power cable short and burn. So last night i used a guide to replace the monitor on my own wih a new one from my spare parts (from another powerbook g4/400 mind you) i put it all the way back toget

  • HT1430 unlock a disabled Ipod touch

    How do I enable a disabled Ipod Touch?  It tells me to connect to Itunes and I am, but what now?

  • Can I use the old iphone as  an ipod touch?

    My buddy wants to upgrade to the new iphone, so if I get his old iphone can I use it basically as an ipod touch? I don't want to pay the $80+ for phone service but love all the touch features. Please help with this question.

  • N95 8gb Calender

    I have recently updated the phone software to version 15.0.015, and since this update the calender information is no longer shown on the active standby. Previously items were shown there upto 5 days in advance or a comment that there were no calender