Using XML as datasource of JList

Hi,
I new with java and trying to figure out how to create guis with netbeans 5.5.
I have dragged and dropped a jlist but I couldn't find out how to put a datasource on it. There were ways to use a database (create a connection then connect to it) but I want to use an xml file as datasource instead of a database.
How can I do it? Both drag and drop options and writing my own code is appreciated. If you can point me to a tutorial that is also welcome.
Thank you for your time
Roy Simkes

1. Parse the xml
2. Add the nodes from the parsed xml into any of the following
2.1 Array of objects (Object[])
2.2 Vector
2.3 ListModel (preferred)
3. Create the JList using the appropriate constructor.
voila ...
Hope this helps,
PS.

Similar Messages

  • CrystalReports Subreports Demo Using XML As DataSource , Java As Tool

    Hello,
        Im New to CrystalReports.Can any one send me (or) explain me Regarding "CrystalReports Subreports Demo Using XML As DataSource , Java As Tool" .
    Thanks,
    RadhaKrishna K

    ok

  • When to use XML file Datasource

    Hi,
    I would like to know under what scenario we have to use the XML file as a datasource?
    Is it possibe to extract data from a email.
    The client is getting data in email everyday and is it possible to upload this data directly from the email.
    or do i have to convert this data in the form of  a .csv flat file and upload.
    please give an idea if i can use the XML file upload facility provided in BI, whether i can use this in my
    scenario.
    regards,
    man

    Hello Man,
    Please see this doc for sending XML data to BW
    [How to Send XML Data to BW|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/21d8aa90-0201-0010-5e83-a3798b9a5ee0]
    [How to… Push Data into BW from XI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/18dfe590-0201-0010-6b8b-d21dfa9929c9]
    [SAP BW Data Retrieval|http://www.sap-press.de/download/dateien/939/sappress_sap_bw_data_retrieval.pdf]
    For Transfering data using XML see this SAP Help Page [SOAP-Based Transfer of Data |http://help.sap.com/saphelp_nw04/helpdata/en/fd/8012403dbedd5fe10000000a155106/content.htm]
    Thanks
    Chandran

  • Using XML as datasource.

    Post Author: gronkette
    CA Forum: Data Connectivity and SQL
    With CRXI I'm able to connect to a "specific" XML file - the "folder" option does not work.  Anyway, when I view the data fields I only see the first 2 columns:
    Asset Name  Asset Value 1
    I should see:  Asset Name, Asset Value 1, Asset Value 2, Asset Value 3 ..........Asset Value 24
    I've been usint the Database Expert > ODBC RDO, it's also the only way I've been able to load any XML files.
    thanks!

    1. Parse the xml
    2. Add the nodes from the parsed xml into any of the following
    2.1 Array of objects (Object[])
    2.2 Vector
    2.3 ListModel (preferred)
    3. Create the JList using the appropriate constructor.
    voila ...
    Hope this helps,
    PS.

  • Quiz app in jsp using xml as datasource

    Hi if one wants to set up a simple application like a quiz app that stores all its question in an xml file.
    The basic structure is like a java class reading from the xml using DOM/SAX then writing the info in the bean then getting that info in a jsp file.
    But i am having some problem with the code.
    First problem is how do i read a set of records from the xml file to the bean and then transfer it to the jsp page. I am using a simple java bean no EJB's
    Any help appreciated

    Does the javabean represent one question or does it represent all the questions (so - do you have QuestionBean or QuestionsBean)?
    For the sake of discussion, let's say that you have a QuestionBean - it represents one question; (it may also contain answers, too?)
    Let's also create an object that will hold the questions. How about calling this QuizBean?
    Your Parser.java would use jdom to read in the xml file. For each question node it finds, it creates a QuestionBean and sets the properties.
    hi steve until here its quite clear...
    but why do we need to create another quiz bean, cant we read each time from the xml file, yes the xml file has questions and answers.
    suppose there is a next button in the jsp page and each time its hit this happens
    xml >> parser.jsp ( fetches a question with answer ) >> bean.java >> jsp
    sorry steve i am kind of newbie in jsp, i have always used microsoft technologies, so ..... :)
    questions.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Subject>
              <Topic Name="science">
              <Questions>
                   <Ques>What is the color of the sky?</Ques>
                   <wrong>green</wrong>
                   <wrong>yellow</wrong>
                   <wrong>brown</wrong>
                   <correct>blue</correct>
              </Questions>
              <Questions>
                   <Ques>what is xml?</Ques>
                   <wrong>i dont know</wrong>
                   <wrong>we dont know</wrong>
                   <wrong>you dont know!!!</wrong>
                   <correct>use google :)</correct>
              </Questions>
              <Questions>
                   <Ques>where is delhi ?</Ques>
                   <wrong>bombay</wrong>
                   <wrong>pakistan LOL</wrong>
                   <wrong>usa</wrong>
                   <correct>near noida</correct>
              </Questions>
         </Topic>
         </Subject>

  • How to create Entity objects using xml as a datasource

    Hi All,
    How to create EO(ADF Business components) using XML as a datasource instead of database tables..Pls do reply..Its an urgent requirement
    Thanks in Advance
    Edited by: 1000899 on Apr 25, 2013 12:01 AM
    Edited by: 1000899 on Apr 25, 2013 12:02 AM

    There is nothing 'urgent' in this forum. We are all volunteers spending our spare time helping out other users. If you have an urgent matter, you have to open an SR with sopport.oracle.com
    If it's urgent, then why don't you provide information needed to answer the question.
    Which jdev version do you use?
    What is the use case?
    To answer your question: A look into the docs http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcadvvo.htm#sm0341 and http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcadvvo.htm#sm0338 holds the answer to it.
    Timo

  • Using XML as a Data Source

    In http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10540/datasource.htm#CHDBCAIJ it states you can use XML as your data source and mentions...
    URLs can include repository or session variables, providing support for HTTP data sources that accept user IDs and passwords embedded in the URL. For example:
    http://somewebserver/cgi.pl?userid=valueof(session_variable1)&password=valueof(session_variable2)
    I'm trying to pass this:
    http://somewebserver/cgi.pl?userid=valueof(NQ_SESSION.USER)
    but when I try that I can see in my web server logs that the content of the userid variable is 'valueof(NQ_SESSION.USER)' so it's not passing the results to the web server, just the text. Any ideas what's going on? Is my syntax correct? Thanks!

    Hey,
    There are a few things to look at when using session and repository variables within the RPD.
    One of the first documents you need to reference is the "What is the Syntax for Referencing Variable?" section within the OBI documentation. In addition look at this section on how to use variables in the RPD, http://download.oracle.com/docs/cd/E14571_01/bi.1111/e10540/variables.htm#BIEMG3104
    Basically you are trying to use NQ_SESSION.USER which is the syntax for trying to show the user name is Presentation Services. Of course you can see this in your web server logs because that is the correct syntax for presentation services web tier but not the RPD where you define your XML Source.
    You need to try either use VALUEOF("USER") or you are simply forgeting to put the syntax surrounded by single-quotes like, http://somewebserver/cgi.pl?userid='valueof(NQ_SESSION.USER)' to pull the system session variable into the XML URL as needed.
    Try those options and let me know if that works.
    Please mark this as the correct answer or helpful.
    Cheers,
    Christian
    http://www.artofbi.com
    Edited by: Christian Screen on May 8, 2011 10:32 AM

  • VO using WS as datasource ?

    I'd like to use webservice as datasource for static VO deployed locally.
    Trying to implement datasourse methods like shown in the article
    http://radio.weblogs.com/0118231/stories/2003/03/03/gettingAViewObjectsResultRowsFromARefCursor.html
    , I've found that I need to create ResultSet object from retrieved xml -
    or setUserDataForCollection in some other way.
    Could someone suggest how to do this ? Thanks.
    Arkady

    I am pretty sure the XML generated is correct. It is a well-known service and I have tried some other as well. The XML looked fine when I looked at it.
    Know any public (simple) web services to test with?

  • Report XML as datasource

    Is it possible to use the xml for individual reports taken from the catalog manager as a datasource? The idea being that this could be used to augment the level of detail available when reporting on the structure of the rpd, in addition to the usual Document Repository feature to create an excel file to use as a datasource.
    I have tried to use the xml from one report but when importing I get an error saying the structure of the XML is not supported, could this be edited to make it acceptable, all we really need is the names of the columns used.
    thanks
    Ed

    Have you tried to create a separate connection pool and use it as a source?

  • Update a system form using XML

    Hi all,
    I'm trying to update a system form by adding a tab (folder). The form is Customer Equipment Card (nb 60150), in the service menu.
    I just want to add a folder called Counter.
    When I load the XML file below, I get the following error :
    System.Runtime.InteropServices.COMException (0xFFFFFFFE): Function not supported on current SBO Version - upgrade is required
    If I want to add a button, it's working, but not a folder.
    Something's false in this XML file (I add the good uid before I load it) ?
    Thanks for your help
    Sébastien

    > - Drop the datasource section
    > The error is gone, but I don't see the folder in
    > in the form
    You could try and check wether it's there but invisible (access it in your code and wait for an exception).
    > - Linkto Objet
    > If you look at the XML code of the form, you can
    > can see that all the folder are links to this item.
    > Moreover, when I add the form using VB (it's working
    > that way), the XML result will show linkto = "54"
    I believe. I analyzed another system form and my own forms: None of the tabs are linked to anything. Is this documented? What does it mean?
    > - the data source is SYS_71 for all the folder of the
    > form. I don't understand what you mean when you want
    > me to set the val_on to this datasource
    I looked at the XML source of another system form and the tabs had val_on="SYS_whatever". With my own forms I set val_off="N" and val_on="Y". I remember having had some problems there, but I can't put my finger on it now.
    > - item group
    > I'm using SBO 6.5, I can't find help on that, maybe
    > it's only on 2004.
    No, it's 6.5. It's not in the documentation but you will find it somewhere inside the guts of this forum. As I said, I once had trouble adding tabs cleanly to a custom form using XML.
    Of course, all this is just blindly stabbing into the dark. What else can we do?

  • Loading Matrix using XML Data Source

    Hi Experts,
    I'm working on an addon where i need to fill up matrix with a set of data,
    i'm doing that using 'for loop'. my question is can v fill matrix using XML File i.e, using XML as Data Source.
    Thanks in Advance
    Jaideep

    Hi Jaideep !!!!
    here is the sample code which could help u n solve ur problem.
    if u got ny problem then please tell me ....
    Public Sub CreateLoad()
            Try
                ''' Load form
                Dim xml As Xml.XmlDocument
                xml = New Xml.XmlDocument
                xml.Load("C:\Temp\update data to the base table\Allowance\Abacus.srf")
                SBO_Application1.LoadBatchActions(xml.InnerXml)
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
            AddDataSourcetoform()
            BindataSource()
            GetDatafromDB()
        End Sub
        Public Sub AddDataSourcetoform()
            Try
                oForm = SBO_Application1.Forms.Item("Allowance")
                DBtable = oForm.DataSources.DataTables.Add("Supplier")
                SQL = "SELECT [@Supplier].* FROM [@Supplier] ORDER BY Cast( [@Supplier].Code AS INT)"
                DBtable.ExecuteQuery(SQL)
                'oDBDataSource = oForm.DataSources.DBDataSources.Item("@Supplier")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
                'System.Windows.Forms.MessageBox.Show("Not Added Data Source to the Form")
            End Try
        End Sub
        Private Sub BindataSource()
            Try
                oForm = SBO_Application1.Forms.Item("Allowance")
                MatrixBind()
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Private Sub MatrixBind()
            Try
                'Dim txt As SAPbouiCOM.EditText
                o_Matrix = oForm.Items.Item("MatAllow").Specific
                oColumns = o_Matrix.Columns
                oColumn = oColumns.Item("ColCode")
                oColumn.DataBind.Bind("Supplier", "Code")
                oColumn = oColumns.Item("ColName")
                oColumn.DataBind.Bind("Supplier", "Name")
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub
        Public Sub GetDatafromDB()
            Try
                oForm = SBO_Application1.Forms.Item("Allowance")
                o_Matrix = oForm.Items.Item("MatAllow").Specific
                Dim Code As String = 1
                o_Matrix.Clear()
                o_Matrix.LoadFromDataSource()
            Catch ex As Exception
                SBO_Application1.MessageBox(ex.Message)
            End Try
        End Sub

  • Is it possible to use xml publisher with xml document as data source ?

    I have an application that have to publish document from xml document that are not part a oracle 10g database but will be stored into Oracle Berkeley XML database insteed. Is it possible to use server and/or desktop to publish these documents ?
    I test the desktop edition using the source xml document but it render no data when the template is executed (vizualization)
    I installed the server edition and i'm not able to declare xml document as a data source
    So i have a doubt that xml publisher is able to publish something from a xml datasource
    Thanks

    Yes, it is possible.
    The problem should come from your template. Refer to "edit a RTF template" in the docs.
    A fact is that XML Publisher server edition is not very adapted to an XML file datasource. In order to use it, you should use an HTTP datasource, with the URL of your XML document (that you should place on a web server...). The problem is that this URL is fixed and point always on the same reference...so XML Publisher server edition is not very good for that use.
    I choose to use the XML Publisher Java API which is better for this task.

  • Problem pushing XML as DataSource to report

    Post Author: biiz
    CA Forum: JAVA
    Hello!
    I have a report which uses xml and xsd as datasource. I have now the requirement to dynamically set the xml-data into the report.
    I do this via reportClientDocument.getDatabaseController().setDataSource(xml_ds, "ObjectSpace", "") but I receive following exception although data in xml_ds is not null:
    Error occured: com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: The data source object cannot be null.---- Error code:-2147024809 Error code name:failed
    The ReportClientDocument is retrieved from Crystal Report Server XI R2 .
    In crystalras log I have found following error-msg: ErrorLog 2008  5 29 10:56:40.784 1992 828 (\servers\ras\dtsagent\cdtsagent.cpp:3177): CDTSagent::doOneRequest reqId=272: CSResultException thrown.   ErrorSrc:"Analysis Server" FileName:"\servers\ras\dtsagent\reporthandler.cpp" LineNum:16948 ErrorCode:-2147024809 ErrorMsg:"The data source object cannot be null." DetailedErrorMsg:""
    Can you please help me?
    Regards,
    Gerald Spitzer
    Here is my code:
      CrystalEnterprise objCE = new CrystalEnterprise();  ISessionMgr objCESessionMgr = objCE.getSessionMgr();  objCESession = objCESessionMgr.logon("Administrator", "", this.getServletContext().getInitParameter("RAS"), "secEnterprise");  objTokenMgr = objCESession.getLogonTokenMgr();    cstrLogonToken = objTokenMgr.createLogonToken("", 60, 500);
       IInfoStore objInfoStore = (IInfoStore) objCESession.getService("InfoStore");
      java.lang.String cstrStatement;
      cstrStatement = "";  cstrStatement = cstrStatement + "SELECT SI_ID, SI_NAME";  cstrStatement = cstrStatement + "  FROM CI_INFOOBJECTS";  cstrStatement = cstrStatement + " WHERE SI_NAME = '" + reportName + "'";  cstrStatement = cstrStatement + "   AND SI_INSTANCE = 0";
      IInfoObjects objInfoObjects = objInfoStore.query(cstrStatement);
      if (objInfoObjects.getResultSize() > 0) {
       IInfoObject objInfoObject = (IInfoObject) objInfoObjects.get(0);
       IReportAppFactory objRASFactory = (IReportAppFactory) objCESession.getService("", "RASReportFactory");   ReportClientDocument objReport = (ReportClientDocument) objRASFactory.openDocument(objInfoObject,0,java.util.Locale.ENGLISH);
       FileInputStream fin = new FileInputStream("C:
    fragebogen_dokument_ohneADesc.xsd");   ByteArrayOutputStream baos = new ByteArrayOutputStream();   byte&#91;&#93; bytes = new byte&#91;1024&#93;;   for(;;) {    int count = fin.read(bytes);    if(count < 0)     break;    baos.write(bytes, 0, count);   }   final byte&#91;&#93; xsdBytes = baos.toByteArray();   fin.close();    fin = new FileInputStream("C:
    fragebogen_dokument_ohneADesc.xml");   baos = new ByteArrayOutputStream();   bytes = new byte&#91;1024&#93;;   for(;;) {    int count = fin.read(bytes);    if(count < 0)     break;    baos.write(bytes, 0, count);   }   final byte&#91;&#93; xmlBytes = baos.toByteArray();   fin.close();
       IXMLDataSet xml_ds = new IXMLDataSet() {    private IByteArray xmlData = null;    public void setXMLData(IByteArray xmlData) {     this.xmlData = xmlData;    }    public IByteArray getXMLData() {     return this.xmlData;    }    private IByteArray xmlSchema = null;    public void setXMLSchema(IByteArray xmlSchema){     this.xmlSchema = xmlSchema;    }    public IByteArray getXMLSchema() {     return this.xmlSchema;    }    };
       xml_ds.setXMLData(new IByteArray() {    public void fromString(String arrayValue){}    public String toString() { return ""; }    public byte&#91;&#93; getBytes() { return xmlBytes; }   });
       xml_ds.setXMLSchema(new IByteArray() {    public void fromString(String arrayValue){}    public String toString() { return ""; }    public byte&#91;&#93; getBytes() { return xsdBytes; }   });
       System.out.println("####bytes.length" + xml_ds.getXMLData().getBytes().length);
       objReport.getDatabaseController().setDataSource(xml_ds, "ObjectSpace", "");

    Post Author: Ted Ueda
    CA Forum: JAVA
    Below is sample RAS SDK XML datasource injection code.Sincerely,Ted Ueda<%@ page import = "com.crystaldecisions.sdk.exception.SDKException,                   com.crystaldecisions.sdk.framework.,                   com.crystaldecisions.sdk.occa.infostore.,                   com.crystaldecisions.sdk.occa.managedreports.,                   com.crystaldecisions.sdk.occa.report.application.,                   com.crystaldecisions.sdk.occa.report.data.,                   com.crystaldecisions.sdk.occa.report.definition.,                   com.crystaldecisions.sdk.occa.report.document.,                   com.crystaldecisions.sdk.occa.report.lib.,                   com.crystaldecisions.sdk.occa.report.exportoptions.,                   com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,                   com.crystaldecisions.sdk.plugin.desktop.common.,                   java.io.,                   java.util."%><%/* * Environment variables - modify to suit your deployment  */String username = "";String password = "";String cmsname  = "<cms name here>";String authType = "secEnterprise";String reportName = "Test XML";   // Report name as published on EnterpriseString xmlFilePath = "C:
    XMLData
    new_test_data.xml";  // Path to XML datasource String xsdFilePath = "C:
    XMLData
    new_test_data.xsd";  // Path to XSD for XML datasource IEnterpriseSession boSession = null;try {    IInfoStore infoStore;    IInfoObjects infoObjs;    IInfoObject report;    IReportAppFactory raFactory;    ReportClientDocument doc;    byte&#91;&#93; xmlBytes;    byte&#91;&#93; xsdBytes;    IXMLDataSet xml_ds;    ByteArrayInputStream exportByteArrayStream;    byte&#91;&#93; exportByteArray;    boSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authType);    infoStore = (IInfoStore)boSession.getService("", "InfoStore");    infoObjs = (IInfoObjects) infoStore.query("SELECT TOP 1 * FROM CI_INFOOBJECTS "                                               + "WHERE SI_KIND = 'CrystalReport' "                                              + " AND SI_INSTANCE=0 "                                              + " AND SI_NAME='" + reportName + "'" );    report = (IInfoObject) infoObjs.get(0);    raFactory  = (IReportAppFactory) boSession.getService("", "RASReportService");    doc = raFactory.openDocument(report, 0, Locale.ENGLISH);    xmlBytes = bytesFromFile(xmlFilePath);    xsdBytes = bytesFromFile(xsdFilePath);    xml_ds = new XMLDataSet(new ByteArray(xmlBytes), new ByteArray(xsdBytes));    doc.getDatabaseController().setDataSource(xml_ds, "schema1/People", "schema1/People");    exportByteArrayStream = (ByteArrayInputStream)doc.getPrintOutputController().export(ReportExportFormat.PDF);    exportByteArray = new byte&#91;exportByteArrayStream.available()&#93;;    response.reset();    response.setHeader("Content-disposition", "inline;filename=crreport.pdf");    response.setContentType("application/pdf");    int bytesRead = 0;    while((bytesRead = exportByteArrayStream.read(exportByteArray)) != -1) {        response.getOutputStream().write(exportByteArray, 0, bytesRead);        }            response.getOutputStream().flush();    response.getOutputStream().close();} finally {  if(boSession != null)       boSession.logoff();}%><%!byte&#91;&#93; bytesFromFile(String path) throws IOException {    FileInputStream fin;    ByteArrayOutputStream byteOStream = new ByteArrayOutputStream();    byte&#91;&#93; bytes;    fin = new FileInputStream(path);    bytes = new byte&#91;1024&#93;;    for(;;) {        int count = fin.read(bytes);        if(count < 0)            break;        byteOStream.write(bytes, 0, count);    }    bytes = byteOStream.toByteArray();    fin.close();    return bytes;}%>

  • Updating Items in a form using XML

    Hello all,
    I have a form loaded in SBO. In some conditions I want to disable some items like EditTexts, CheckBoxes, ComboBoxes in the form. Some times I have to enable them.. Since there are more controls in the form I would like to use an XML for doing this.
    But when I tried an XML, it did not work for the Enabled property. But it is working for Visible Property.
    Do anybody know how to update the XML so that it will work fine?
    This is the sample XML used for this purpose.
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
    <forms>
      <action type="update">
       <form FormType="MYFORM" uid="MYFORM_1">
        <items>
         <action type="update">
          <item uid="cmbSlsPr" type="113" left="125" enabled="0" visible="1" />
          <item uid="txtCustRef" type="16" left="125" enabled="0" visible="1" />
         </action>
        </items>
       </form>
      </action>
    </forms>
    </Application>
    Thanks in advance.
    Anoop
    Edited by: Anoop Krishnan on Aug 8, 2009 12:43 PM

    Hi Anoop,
    Yes, I update forms using XML.
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
         <forms>
              <action type="update">
                   <form FormType="133" uid="">
                        <datasources>
                             <userdatasources>
                                  <action type="add">
                                      <datasource uid="DSItemUID" type="9" size="100"></datasource>
                                       <datasource uid="DSDocNum" type="0"></datasource>
                                  </action>
                             </userdatasources>
                        </datasources>
                        <items>
                             <action type="update">
                            <item uid="FldEDI" type="99" left="384" tab_order="0" width="64" top="98" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="0">
                                <AutoManagedAttribute></AutoManagedAttribute>
                                <specific caption="EDI" AffectsFormMode="0" val_on="8" val_off="0">
                                    <databind databound="1" table="" alias="SYS_208"></databind>
                                </specific>
                            </item>
                            <item uid="FldOther" type="99" left="448" tab_order="0" width="74" top="98" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="0">
                                <AutoManagedAttribute></AutoManagedAttribute>
                                <specific caption="Outra Info." AffectsFormMode="0" val_on="2" val_off="0">
                                    <databind databound="1" table="" alias="SYS_208"></databind>
                                </specific>
                            </item>
                                 <item uid="ExportEDI" type="4" left="300" tab_order="0" width="80" top="150" height="20" visible="1" enabled="1" from_pane="8" to_pane="8" disp_desc="0" right_just="0" description="" linkto="rtgEDI" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Exportar EDI"></specific>
                                  </item>
    Regards,
    Vítor Vieira

  • Using XQSL w/Datasource : ClassCastException

    I'm attempting to use XSQL in a Websphere 5.1 test server (WSAD) and I am getting this error:
    Oracle XML Developers Kit 10.1.0.2.0 - Production
    XML-25017: Unexpected Error Occurred
    java.lang.ClassCastException: com.ibm.ejs.cm.proxy.OracleCallableStatementProxy
    at oracle.xml.xsql.actions.XSQLRefCursorFunctionHandler.handleAction(XSQLRefCursorFunctionHandler.java:102)
    The datasource in question is setup correctly since it works as implemented in the web app. XSQL appears setup correctly because it works with using XSQLConnectionManagerFactoryImpl and <connectiondefs>, and it also works using a AS400JDBCDriver Datasource with XSQLOracleDatasourceConnectionManager.
    I'm using classes12.jar (and have tried it with the latest 3 versions). I'm using jdbc:oracle:thin with oracle.jdbc.pool.OracleConnectionPoolDataSource.
    Finally, (not sure if this helps) when I decompile XSQLRefCursorFunctionHandler, line 102 appears to bomb here (see below), so I added a "date-format" attribute and value just for funzzies, without change in result:
    if(s1 != null && !s1.equals(""))
    oraclexmlquery.setDateFormat(s1);
    boolean flag1 = s9 != null
    && (s9.equalsIgnoreCase("yes")
    || s9.equalsIgnoreCase("y"));
    I'd would greatly appreciate some help.
    Thanks in advance!
    Monte

    One possible reason is that i am using javax.sql.datasource in the source code but the DataSource has been defined with "com.evermind.sql.DriverManagerDataSource" throwing the classcast exception.
    any idea in which jar the "com.evermind.sql.DriverManagerDataSource" class can be found ?

Maybe you are looking for