Set SelectItem not supported by RI 1.2 (IllegalArgumentException)

When using a Set (TreeSet) of SelectItems to populate a h:selectOneMenu, selecting an entry in the select box results in an IllegalArgumentException:
java.lang.IllegalArgumentException
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:177)
     javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:60)
     javax.faces.component.UISelectOne.matchValue(UISelectOne.java:177)
     javax.faces.component.UISelectOne.validateValue(UISelectOne.java:150)
     javax.faces.component.UIInput.validate(UIInput.java:875)
     javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
     javax.faces.component.UIInput.processDecodes(UIInput.java:642)
     javax.faces.component.UIForm.processDecodes(UIForm.java:209)
     javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1015)
     javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1015)
     javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:504)
     org.ajax4jsf.component.AjaxViewRoot.access$001(AjaxViewRoot.java:57)
     org.ajax4jsf.component.AjaxViewRoot$1.invokeRoot(AjaxViewRoot.java:260)
     org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
     org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
     org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:276)
     com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
     com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
     com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
     org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
     org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
     org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
     be.banksys.tams.mmi.ForceUTF8Filter.doFilter(ForceUTF8Filter.java:50)
     org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)However, the javadoc of UISelectItems (http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/javax/faces/component/UISelectItems.html) states that the value can be of type "Collection of SelectItem" .
I'm migrating from Myfaces 1.1.5 to RI 1.2 (jsf-1_2_07). (Myfaces does support Set<SelectItem>...)
We use (a lot of) TreeSets with a comparator to be shure that our selectOneMenus are sorted.
It seems to me that adding something like the following code to the next() method of javax.faces.component.SelectItemsIterator would do the trick:
            } else if (value instanceof Set) {
                items = TypedCollections.dynamicallyCastSet((Set) value, SelectItem.class).iterator();
                return (next());Is there a workaround or can this be fixed?
Jo�l

Fix checked in which will be available in tonight's nightly [1], and ultimately will be in 1.2_08.
[1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=1703&expandFolder=1703&folderID=0

Similar Messages

  • OBIEE 11.1.1.7 compatibility setting is not supported

    Hi,
    This was happened on OBI Enterprise Manager login page after upgrade OBIEE version from 11.1.1.5 to 11.1.1.7
    Message from webpage
    The current compatibility setting is not supported. Disable Compatibility View before running this web page.
    I was tried to configure setting on IE8, 9 and 10 but still the same.
    So, is it a known issue and anyone has solution on this?

    its common issue and the solution is, in IE go to tools -> compatibility view settings you will see a pop-up window from here uncheck the boxes which has Display intranet sites in compatibility view or display all websites in compatibility view(better to uncheck all three check boxes) and also check if you have added any domain to allow the compatible view eg: URL which ends with Oracle.com in http://scjq02.oracle.com:7001/em
    after un-checking those above check boxes and removing the domain now reload the page and see

  • Error:  Bitdepth and / or color space not supported by threshhold set.  Fatal Error!

    Running Mac OSX 10.6.4 and using HP Laserjet 1022.  When trying to print a .pdf opened by Adobe Reader I get ther above error.  Document prints if opened with Preview.  Any suggestions?  Thanks.

    I am trying to use ResultSet.TYPE_SCROLL_SENSITIVE and
    CONCUR_UPDATABLE (using IBM DB2 JDBC 2.0) but I get
    run time error :
    SQL Exception.SQLState = null Error code = 0 Error
    message = Updatable result set is not supported by
    this version of the DB2 JDBC 2.0 driver.
    Any suggestion or help is appreciated.
    Has anyone heard that IBM DB2 implementation does not
    support updatable and scroll_sensitive?It gave you a precise error message, and you don't believe the error message, thinking somehow you can get around it anyway, making it support updatable result sets...
    You should check out this link:
    http://www.hov-hov.dk/you.htm

  • Read-only connections not supported

    We trying to set the JDBC connection as "read-only" and we are getting the following SQLException when calling Connection.setReadOnly( true ):
    setReadOnly: Read-only connections not supported
    We are running Oracle 8i (8.1.7.4.0) with JDBC driver version 8.1.7.2.0.
    Why this setting is not supported?
    Thanks in advance,
    - N. Thomassin

    N. Thomassin,
    I wonder if a setting on the server has to change
    to "enable" this feature...Sorry, I don't know. I suggest searching the Oracle documentation, the MetaLink Web site and the Ask Tom Web site.
    Good Luck,
    Avi.

  • Not supported: indent-number

    boldNot supported: indent-number*bold*
    I opened the sample SynchronousApplication given in netbeans 6.0 beta samples. And I ran the test case but I got the following exception can any body help me out?
    ------------- Standard Output ---------------
    {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_13\jre\bin, java.vm.version=1.5.0_13-b05, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD, user.country=US, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\Profiles\vhbx76\My Documents\NetBeansProjects\SynchronousSample\SynchronousSampleApplication, java.runtime.version=1.5.0_13-b05, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, inDebug=${inDebug}, java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_13\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=D:\Profiles\vhbx76\LOCALS~1\Temp\, line.separator=
    , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=C:\Program Files\Java\jdk1.5.0_13\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\scripts;c:\ntutils;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, os.version=5.1, user.home=D:\Profiles\vhbx76, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.5, java.class.path=D:\NetBeans6.0\soa1\modules\org-netbeans-modules-compapp-manager-jbi.jar;D:\NetBeans6.0\soa1\modules\ext\jbi\catd.jar;D:\NetBeans6.0\soa1\modules\ext\jbi\xmlunit1.0.jar;D:\NetBeans6.0\java1\modules\ext\junit-3.8.2.jar;D:\NetBeans6.0\java1\modules\ext\jaxws21\api\saaj-api.jar;D:\NetBeans6.0\java1\modules\ext\jaxws21\saaj-impl.jar;D:\NetBeans6.0\java1\modules\ext\jaxws21\FastInfoset.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-xdm.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-xam.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor-lib.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-text.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor-util.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-core.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor-lib2.jar;D:\NetBeans6.0\platform7\lib\org-openide-modules.jar;D:\NetBeans6.0\platform7\lib\org-openide-util.jar;D:\NetBeans6.0\platform7\modules\org-openide-options.jar;D:\NetBeans6.0\platform7\modules\org-openide-text.jar;D:\NetBeans6.0\platform7\modules\org-openide-loaders.jar;D:\NetBeans6.0\platform7\modules\org-openide-nodes.jar;D:\NetBeans6.0\platform7\modules\org-netbeans-modules-editor-mimelookup.jar;D:\NetBeans6.0\platform7\core\org-openide-filesystems.jar;D:\lib\xalan-j_2_7_0\xalan.jar;D:\NetBeans6.0\java1\ant\lib\ant-launcher.jar;D:\NetBeans6.0\java1\ant\lib\ant.jar;D:\NetBeans6.0\java1\ant\lib\ant-junit.jar, user.name=vhbx76, java.vm.specification.version=1.0, java.home=C:\Program Files\Java\jdk1.5.0_13\jre, sun.arch.data.model=32, user.language=en, java.specification.vendor=Sun Microsystems Inc., NetBeansUserDir=D:\Profiles\vhbx76\.netbeans\6.0beta2, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, sharing, java.version=1.5.0_13, java.ext.dirs=C:\Program Files\Java\jdk1.5.0_13\jre\lib\ext, sun.boot.class.path=C:\Program Files\Java\jdk1.5.0_13\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_13\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=}
    Test TestCase0\Concurrent.properties Failed.
    Testcase: TestCase0(org.netbeans.modules.compapp.catd.ConfiguredTest):     Caused an ERROR
    Not supported: indent-number
    java.lang.IllegalArgumentException: Not supported: indent-number
            at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:574)
            at org.netbeans.modules.compapp.catd.ConfiguredTest.replyAsByteArrayOS(ConfiguredTest.java:2330)
            at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput(ConfiguredTest.java:2067)
            at org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest(ConfiguredTest.java:756)

    boldNot supported: indent-number*bold*
    I opened the sample SynchronousApplication given in netbeans 6.0 beta samples. And I ran the test case but I got the following exception can any body help me out?
    ------------- Standard Output ---------------
    {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_13\jre\bin, java.vm.version=1.5.0_13-b05, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, sun.java.launcher=SUN_STANDARD, user.country=US, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=D:\Profiles\vhbx76\My Documents\NetBeansProjects\SynchronousSample\SynchronousSampleApplication, java.runtime.version=1.5.0_13-b05, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, inDebug=${inDebug}, java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_13\jre\lib\endorsed, os.arch=x86, java.io.tmpdir=D:\Profiles\vhbx76\LOCALS~1\Temp\, line.separator=
    , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, sun.jnu.encoding=Cp1252, java.library.path=C:\Program Files\Java\jdk1.5.0_13\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\scripts;c:\ntutils;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Hummingbird\Connectivity\10.00\Accessories\;, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, os.version=5.1, user.home=D:\Profiles\vhbx76, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.5, java.class.path=D:\NetBeans6.0\soa1\modules\org-netbeans-modules-compapp-manager-jbi.jar;D:\NetBeans6.0\soa1\modules\ext\jbi\catd.jar;D:\NetBeans6.0\soa1\modules\ext\jbi\xmlunit1.0.jar;D:\NetBeans6.0\java1\modules\ext\junit-3.8.2.jar;D:\NetBeans6.0\java1\modules\ext\jaxws21\api\saaj-api.jar;D:\NetBeans6.0\java1\modules\ext\jaxws21\saaj-impl.jar;D:\NetBeans6.0\java1\modules\ext\jaxws21\FastInfoset.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-xdm.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-xam.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor-lib.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-text.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor-util.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-xml-core.jar;D:\NetBeans6.0\ide8\modules\org-netbeans-modules-editor-lib2.jar;D:\NetBeans6.0\platform7\lib\org-openide-modules.jar;D:\NetBeans6.0\platform7\lib\org-openide-util.jar;D:\NetBeans6.0\platform7\modules\org-openide-options.jar;D:\NetBeans6.0\platform7\modules\org-openide-text.jar;D:\NetBeans6.0\platform7\modules\org-openide-loaders.jar;D:\NetBeans6.0\platform7\modules\org-openide-nodes.jar;D:\NetBeans6.0\platform7\modules\org-netbeans-modules-editor-mimelookup.jar;D:\NetBeans6.0\platform7\core\org-openide-filesystems.jar;D:\lib\xalan-j_2_7_0\xalan.jar;D:\NetBeans6.0\java1\ant\lib\ant-launcher.jar;D:\NetBeans6.0\java1\ant\lib\ant.jar;D:\NetBeans6.0\java1\ant\lib\ant-junit.jar, user.name=vhbx76, java.vm.specification.version=1.0, java.home=C:\Program Files\Java\jdk1.5.0_13\jre, sun.arch.data.model=32, user.language=en, java.specification.vendor=Sun Microsystems Inc., NetBeansUserDir=D:\Profiles\vhbx76\.netbeans\6.0beta2, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, sharing, java.version=1.5.0_13, java.ext.dirs=C:\Program Files\Java\jdk1.5.0_13\jre\lib\ext, sun.boot.class.path=C:\Program Files\Java\jdk1.5.0_13\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_13\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_13\jre\classes, java.vendor=Sun Microsystems Inc., file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.desktop=windows, sun.cpu.isalist=}
    Test TestCase0\Concurrent.properties Failed.
    Testcase: TestCase0(org.netbeans.modules.compapp.catd.ConfiguredTest):     Caused an ERROR
    Not supported: indent-number
    java.lang.IllegalArgumentException: Not supported: indent-number
            at org.apache.xalan.processor.TransformerFactoryImpl.setAttribute(TransformerFactoryImpl.java:574)
            at org.netbeans.modules.compapp.catd.ConfiguredTest.replyAsByteArrayOS(ConfiguredTest.java:2330)
            at org.netbeans.modules.compapp.catd.ConfiguredTest.checkExpectedOutput(ConfiguredTest.java:2067)
            at org.netbeans.modules.compapp.catd.ConfiguredTest.testConcurrentSOAPRequest(ConfiguredTest.java:756)

  • Message uses a character set that is not supported by the internet service

    Does any one have any advice on how to fix this problem?
    E-mails sent from my iphone 3G periodically arrive in an unreadable form at the recipient. The body of the e-mail has been replaced with the message "This message uses a character set that is not supported by the internet service...." The problem e-mails also include an attachment that contains an unformatted text file containing the original message surrounded by what appears to be lots of formatting data that is displayed as gibberish.
    This occurs sometimes, but not always, even with the same recipients. I am sending e-mail through a G-mail account that is configured on the iphone using IMAP. I have tried the gmail account to use the two available formatting options for mail, but neither fixes the problem.
    I have also upgraded to 2.01 and restored a few times without impact.

    Hi,
    I got somewhat similar problem with special charecters(German umlaud �,�,�..).
    I create a file with java having special charecters in it. Now if I open this file I am able to view the special charecters in it.But If I attach this file send it using following code then receiver can not see the umlaud charecters in it.They get replaced by _ or ?
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource(fileName);
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(output.getName());
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    Transport.send(msg);
    From you message it looks like you are able to send the mail attachment correctly(by preserving special charecters).
    Can you tell me what might be wrong in my code.
    I appriciate your efforts in advance.
    Prasad

  • Getting compilation error: java.util.Set is an interface. This interface is not supported.

    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

    Hello,
    Generic java collections can only be handled in a very generic, weakly
    typed manner.
    Take a look at the
    http://workshop.bea.com/xmlbeans/guide/conXMLBeansSupportBuiltInSchemaTypes.html
    and also
    http://workshop.bea.com/xmlbeans/guide/conJavaTypesGeneratedFromUserDerived.html
    You might also ask your question to the XMLBeans newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.xmlbeans
    Regards,
    Bruce
    Sanjay wrote:
    >
    Hi Folks,
    Is there a limitation in BEA's web services implementation? I have a simple web
    service that returns an array of java objects. However I am calling another middle
    tier API that returns a Set. I convert this Set into array of object and return
    it via the web service.
    However the .jws file that implements the webservice does not compile. I get the
    following error message:
    java.util.Set is an interface. This interface is not supported.
    Is there a limitation on using Collections within the .jws file? If that is the
    case it is a severe limitation.
    Note my Web Service API returns an array of java objects with no collections in
    them.
    Sanjay

  • JDBC-ODBC Bridge to SPSS data files - Result Set Type is not supported

    Hello,
    As mentioned in the subject I am trying to read SPSS data files using the SPSS 32-Bit data driver, ODBC and the JDBC-ODBC Bridge.
    Using this SPSS Driver I manged to read the data directly into an MS-SQL Server using:
    SELECT [...] FROM
    OPENROWSET(''MSDASQL.1'',''DRIVER={SPSS 32-BIT Data Driver (*.sav)};DBQ=' SomePathWhereTheFilesAre';SERVER=NotTheServer'', ''SELECT 'SomeSPSSColumn' FROM "'SomeSPSSFileNameWithoutExt'"'') AS a
    This works fine!
    Using Access and an ODBC System DNS works for IMPORTING but NOT for LINKING.
    It is even possible to read the data using the very slow SPSS API.
    However, when it comes to JDBC-ODBC the below code does only work in part. The driver is loaded successfully, but when it comes to transferring data into the resultset object the error
    SQLState: null
    Result Set Type is not supported
    Vendor: 0
    occurs.
    The official answer from SPSS is to use .Net or to use their implementation with Python in their new version 14.0. But this is obviously not an option when you want to use only Java.
    Does anybody have experience with SPSS and JDBC-ODBC??? I have tried the possible ResultSet Types, which I took from:
    http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/rjvdsprp.htm
    and none of them worked.
    Thank you in advance for your ideas and input & stay happy!
    Here the code without all the rest of the class arround it:
    // Module:  SimpleSelect.java
    // Description: Test program for ODBC API interface.  This java application
    // will connect to a JDBC driver, issue a select statement
    // and display all result columns and rows
    // Product: JDBC to ODBC Bridge
    // Author:  Karl Moss
    // Date:  February, 1996
    // Copyright: 1990-1996 INTERSOLV, Inc.
    // This software contains confidential and proprietary
    // information of INTERSOLV, Inc.
    public static void main1() {
      String url   = "jdbc:odbc:SomeSystemDNS";
      String query = "SELECT SomeSPSSColumn FROM 'SomeSPSSFileName'";
      try {
        // Load the jdbc-odbc bridge driver
        Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
        DriverManager.setLogStream(System.out);
        // Attempt to connect to a driver.  Each one
        // of the registered drivers will be loaded until
        // one is found that can process this URL
        Connection con = DriverManager.getConnection (url);
        // If we were unable to connect, an exception
        // would have been thrown.  So, if we get here,
        // we are successfully connected to the URL
        // Check for, and display and warnings generated
        // by the connect.
        checkForWarning (con.getWarnings ());
        // Get the DatabaseMetaData object and display
        // some information about the connection
        DatabaseMetaData dma = con.getMetaData ();
        System.out.println("\nConnected to " + dma.getURL());
        System.out.println("Driver       " +
          dma.getDriverName());
        System.out.println("Version      " +
          dma.getDriverVersion());
        System.out.println("");
        // Create a Statement object so we can submit
        // SQL statements to the driver
        Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY ,ResultSet.CONCUR_READ_ONLY);
        // Submit a query, creating a ResultSet object
        ResultSet rs = stmt.executeQuery (query);
        // Display all columns and rows from the result set
        dispResultSet (rs);
        // Close the result set
        rs.close();
        // Close the statement
        stmt.close();
        // Close the connection
        con.close();
      }

    Thank you for your reply StuDerby!
    Actually the above script was before, as you suggested, leaving the ResultSetTeype default. This did not work...
    I am getting gray hair with SPSS - in terms of connectivity and "integratebility" none of their solutions offered is sufficient from my point of view.
    Variable definitions can only be read by the slow API, data can only be read by Python or Microsoft Products... and if you want to combine both you are in big trouble. I can only assume that this is a company strategy to sell their Dimensions Platform to companies versus having companies developping their applications according to business needs.
    Thanks again for any furthur suggestions and I hope, that some SPSS Developper will see this post!
    Cheers!!

  • I have air port express 802.11n and imac ver 10.7.5.  When I try to set up my wifi I get error message 'that the version mac os x is not supported' Help?

    I am trying to set up wifi using air port express 802.11n version 1.3 on my imac os x ver 10.7.5.  Get error message Air port can't be installed on this disk that the ver of mac not supported - Help????

    Please check the model number on the side of the AirPort Express in the faint print. It will start with an "A" followed by four numbers, as in A x x x x.
    Post back with your findings.

  • Server does not support setting more than 5 shared access policy identifiers on a single container

    Hi,
    I upload a video file to a new Asset. I then attempt to create a streaming URL by creating an Access Policy and then a Locator, which I use to generate the URL used for streaming.This works great. Until the 6th time you execute
    that code against the same Asset. Then you receive this error:
    "Server does not support setting more than 5 shared access policy identifiers on a single container."
    So, that's fine. I don't need to create a new AccessPolicy everytime, I can reuse the one I've created previously, build a Locator using that same policy. However, even then, I get the error about 5 shared access policies on a single container.
    Is this the Lmitation of media service? or am I missing something?
    Following is the code I used for this:
    if (AssetId != "")
                    inputAsset = (from a in _context.Assets
                                  where a.Id == AssetId
                                  select a).FirstOrDefault();
                    policy= (from a in _context.AccessPolicies where a.Name==inputAsset.Name select a).FirstOrDefault();
                    var assetFile = inputAsset.AssetFiles.Create(Path.GetFileName(singleFilePath));
                    var locator = _context.Locators.CreateLocator(LocatorType.Sas, inputAsset, policy);
                    assetFile.Upload(singleFilePath);
                    locator.Delete();
                    MediaElement media = new MediaElement();
                    media.AssetId = inputAsset.Id;
                    media.Title = Path.GetFileName(singleFilePath);
                    var result = Save(media, singleFilePath);
                    return inputAsset;
                else
                    inputAsset = _context.Assets.Create(User.Identity.Name, AssetCreationOptions.None);
                     policy = _context.AccessPolicies.Create(
                                        inputAsset.Name,
                                        TimeSpan.FromDays(30),
                                        AccessPermissions.Write | AccessPermissions.List
    | AccessPermissions.Read | AccessPermissions.Delete);
                     var assetFile = inputAsset.AssetFiles.Create(Path.GetFileName(singleFilePath));
                     var locator = _context.Locators.CreateLocator(LocatorType.Sas, inputAsset, policy);
                     assetFile.Upload(singleFilePath);
                     locator.Delete();
                     policy.Delete();
                     MediaElement media = new MediaElement();
                     media.AssetId = inputAsset.Id;
                     media.Title = Path.GetFileName(singleFilePath);
                     var result = Save(media, singleFilePath);
                     return inputAsset;

    Hi,
    I found some information related to
    Stored Access Policy , Shared Access Signatures   please check if it helps.
    Regards,
    Shirisha Paderu.

  • The requested operation is not supported on forward only result sets.

    hi,
    com.microsoft.sqlserver.jdbc.SQLServerException: The requested operation is not supported on forward only result sets when using rs.relative() method. this exception occurs when using com.microsoft.sqlserver.jdbc
    st = con.createStatement();
    rs= st.executeQuery("select * from emp1");
    rs.relative(2);
    regards,
    gopi

    I suggest you use the following instead of 'relative'. Its a more standard way of doing it.
    while(rs.next()){
    String x1=rs.getString("firstName");
    }

  • Migration from 9i to 11g Transparent Gateway results in a) ORA-12704: character set mismatch b) ORA-02070: database ... does not support SYS_OP_C2C in this context

    Migration from 9i to 11g Transparent Gateway results in a) ORA-12704: character set mismatch b) ORA-02070: database ... does not support SYS_OP_C2C in this context
    What Transparent Gateway (TG) 11g configuration steps prevent the following errors?:
    a) ORA-12704: character set mismatch
    b) ORA-02070: database <DB_link_name> does not support SYS_OP_C2C in this context
    Hints:
    The current 9i TG works with the existing views and packages.  These same db objects will not compile using the new 11g TG.
    The db objects are on an Oracle 10g database linked to an SQL Server 2008 R2 database.
    Since the 9i TG works I assume a configuration to the 11g TG will get it working same as before.  But what...
    Is is something controlled by these parameters?  (Sorry, I don't know how this stuff works.  I'm the application developer.  My DBAs setup the Transparent Gateways.):
      Parameters in the Gateway Startup Shell script:
        ORA_NLS33
        NLS_LANG
      Parameters in the initsid.ora file:
        HS_LANGUAGE
        HS_NLS_DATE_FORMAT
        HS_NLS_DATE_LANGUAGE
    I'm avoiding the known workaround to refactor the VIEWS and PACKAGES to contain CAST() statements to explicitly match the data types.  A server side fix to the 11g TG is preferred. 
    Sample code:
    a) ORA-12704: character set mismatch
       ... is caused by SQL that works with my 9i TG but not with my 11g TG.  It's a snippit from my view that won't compile:
                      select status_code                  -- Oracle VARCHAR2(30)
                      from   ora_app_interfaces
                     UNION
                      select "StatusCode" as status_code  -- SQL Server NVARCHAR(30)
                      from   SqlAppInterfaces
       Example workaround that I'm avoiding:
                      select status_code
                      from   ora_app_interfaces
                     UNION
                      select CAST("StatusCode" as VARCHAR(30)) as status_code
                      from   SqlAppInterfaces
    b) ORA-02070: database <DB_link_name> does not support SYS_OP_C2C in this context
       A line of code in the procedure that compiles correctly but fails to execute:
               -- Insert into SQL Server from Oracle
               insert into PatientMedRecNum ( 
                  "PatID",         -- SQL Server INT
                  "MedRecNum",     -- SQL Server NVARCHAR(11)
                  "Hospital")      -- SQL Server NVARCHAR(30)
               values (
                  pi_pat_id,       -- Oracle NUMBER
                  pi_med_rec_num,  -- Oracle VARCHAR2
                  pi_hospital);    -- Oracle VARCHAR2
    I'd guess the errors are caused by the TG's implicit conversion between the Oracle VARCHAR2 and the SQL Server NVARCHAR... but this works fine on the 9i TG... how do I set it up to work on the 11g TG? 
    Thanks!

    Trace of 11g TG... generating errors due to lack of automatic mapping from SQL NVARCHAR to Oracle NVARCHAR, where the previous 9g TG mapped from SQL NVARCHAR to Oracle VARCHAR2.
    Oracle Corporation --- MONDAY    SEP 22 2014 13:35:08.186
    Heterogeneous Agent Release
    11.2.0.4.0
    Oracle Corporation --- MONDAY    SEP 22 2014 13:35:08.186
    Version 11.2.0.4.0
    Entered hgogprd
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "DEBUG"
    Entered hgosdip
    setting HS_OPEN_CURSORS to default of 50
    setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
    setting HS_FDS_RECOVERY_PWD to default value
    setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
    setting HS_IDLE_TIMEOUT to default of 0
    setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
    setting HS_NLS_NCHAR to default of "UCS2"
    setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
    setting HS_FDS_DATE_MAPPING to default of "DATE"
    setting HS_RPC_FETCH_REBLOCKING to default of "ON"
    setting HS_FDS_FETCH_ROWS to default of "100"
    setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
    setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
    setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
    setting HS_FDS_MAP_NCHAR to default of "TRUE"
    setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
    setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
    setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
    setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
    setting HS_FDS_QUERY_DRIVER to default of "FALSE"
    setting HS_FDS_SUPPORT_STATISTICS to default of "TRUE"
    setting HS_FDS_QUOTE_IDENTIFIER to default of "TRUE"
    setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
    setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
    setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
    setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
    setting HS_FDS_DELAYED_OPEN to default of "TRUE"
    setting HS_FDS_WORKAROUNDS to default of "0"
    setting HS_FDS_ARRAY_EXEC to default of "TRUE"
    Exiting hgosdip, rc=0
    ORACLE_SID is "xxxDEV"
    Product-Info:
      Port Rls/Upd:4/0 PrdStat:0
    Agent:Oracle Database Gateway for MSSQL
    Facility:hsa
    Class:MSSQL, ClassVsn:11.2.0.4.0_0019, Instance:xxxDEV
    Exiting hgogprd, rc=0
    Entered hgoinit
    HOCXU_COMP_CSET=1
    HOCXU_DRV_CSET=178
    HOCXU_DRV_NCHAR=1000
    HOCXU_DB_CSET=178
    HS_LANGUAGE not specified
    rc=1239980 attempting to get LANG environment variable.
    HOCXU_SEM_VER=102000
    Entered hgolofn at 2014/09/22-13:35:08
    RC=-1 from HOSGIP for "PATH"
    Setting PATH to "C:\oracle\product\11.2.0\tg_2\dg4msql\driver\lib"
    Exiting hgolofn, rc=0 at 2014/09/22-13:35:08
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
    HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
    HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
    HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
    HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
    treat_SQLLEN_as_compiled = 1
    Exiting hgoinit, rc=0 at 2014/09/22-13:35:08
    Entered hgolgon at 2014/09/22-13:35:08
    reco:0, name:abaccess, tflag:0
    Entered hgosuec at 2014/09/22-13:35:08
    uencoding=UTF16
    Entered shgosuec at 2014/09/22-13:35:08
    Exiting shgosuec, rc=0 at 2014/09/22-13:35:08
    shgosuec() returned rc=0
    Exiting hgosuec, rc=0 at 2014/09/22-13:35:08
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
    HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    HOSGIP for "HS_FDS_DEFAULT_OWNER" returned "dbo"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    Entered hgocont at 2014/09/22-13:35:08
    HS_FDS_CONNECT_INFO = "sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV"
    RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
    Entered hgogenconstr at 2014/09/22-13:35:08
    dsn: sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV, name:xxx_admin
    optn:
    Entered hgocip at 2014/09/22-13:35:08
    dsn:sqlserverxxx/sqlinstancexxx/SQL_Server_2008_xxx_DEV
    Exiting hgocip, rc=0 at 2014/09/22-13:35:08
    Entered shgogohn at 2014/09/22-13:35:08
    ohn is 'OraGtw11g_home2'
    Exiting shgogohn, rc=0 at 2014/09/22-13:35:08
    RC=-1 from HOSGIP for "HS_FDS_ENCRYPT_SESSION"
    using 0 as default value for "HS_FDS_ENCRYPT_SESSION"
    RC=-1 from HOSGIP for "HS_FDS_VALIDATE_SERVER_CERT"
    using 1 as default value for "HS_FDS_VALIDATE_SERVER_CERT"
    Entered hgocont_OracleCsidToIANA at 2014/09/22-13:35:08
    Returning 2252
    Exiting hgocont_OracleCsidToIANA at 2014/09/22-13:35:08
    Exiting hgogenconstr, rc=0 at 2014/09/22-13:35:08
    Entered hgopoer at 2014/09/22-13:35:08
    hgopoer, line 231: got native error 5701 and sqlstate 01000; message follows...
    [Oracle][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Changed database context to 'Xxx_XXX_DEV'. {01000,NativeErr = 5701}[Oracle][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Changed language setting to us_english. {01000,NativeErr = 5703}
    Exiting hgopoer, rc=0 at 2014/09/22-13:35:08
    hgocont, line 2764: calling SqlDriverConnect got sqlstate 01000
    Entered hgolosf at 2014/09/22-13:35:08
    Exiting hgolosf, rc=0 at 2014/09/22-13:35:08
    DriverName:HGmsss23.dll, DriverVer:07.01.0093 (B0098, U0065)
    DBMS Name:Microsoft SQL Server, DBMS Version:10.00.2531
    Exiting hgocont, rc=0 at 2014/09/22-13:35:08 with error ptr FILE:hgocont.c LINE:2764 ID:SQLDriverConnect
    SQLGetInfo returns Y for SQL_CATALOG_NAME
    SQLGetInfo returns 128 for SQL_MAX_CATALOG_NAME_LEN
    Exiting hgolgon, rc=0 at 2014/09/22-13:35:08
    Entered hgoulcp at 2014/09/22-13:35:08
    Entered hgowlst at 2014/09/22-13:35:08
    Exiting hgowlst, rc=1 at 2014/09/22-13:35:08
    SQLGetInfo returns Y for SQL_PROCEDURES
    SQLGetInfo returns 0x1f for SQL_OWNER_USAGE
    TXN Capable:2, Isolation Option:0xf
    SQLGetInfo returns 128 for SQL_MAX_SCHEMA_NAME_LEN
    SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
    SQLGetInfo returns 134 for SQL_MAX_PROCEDURE_NAME_LEN
    HOSGIP returned value of "TRUE" for HS_FDS_QUOTE_IDENTIFIER
    SQLGetInfo returns " (0x22) for SQL_IDENTIFIER_QUOTE_CHAR
    13 instance capabilities will be uploaded
    capno:1992, context:0x0001ffff, add-info:        0
    capno:3042, context:0x00000000, add-info:        0, translation:"42"
    capno:3047, context:0x00000000, add-info:        0, translation:"57"
    capno:3049, context:0x00000000, add-info:        0, translation:"59"
    capno:3050, context:0x00000000, add-info:        0, translation:"60"
    capno:3066, context:0x00000000, add-info:        0
    capno:3067, context:0x00000000, add-info:        0
    capno:3068, context:0x00000000, add-info:        0
    capno:3069, context:0x00000000, add-info:        0
    capno:3500, context:0x00000001, add-info:       91, translation:"42"
      capno:3501, context:0x00000001, add-info:       93, translation:"57"
    capno:3502, context:0x00000001, add-info:      107, translation:"59"
    capno:3503, context:0x00000001, add-info:      110, translation:"60"
    Exiting hgoulcp, rc=0 at 2014/09/22-13:35:08
    Entered hgouldt at 2014/09/22-13:35:08
    NO instance DD translations were uploaded
    Exiting hgouldt, rc=0 at 2014/09/22-13:35:08
    Entered hgobegn at 2014/09/22-13:35:08
    tflag:0 , initial:1
    hoi:0x12ee18, ttid (len 32) is ...
      xxx
      xxx
    tbid (len 10) is ...
      0: 09000F00 0FAC1E00 010A [..........]
    Exiting hgobegn, rc=0 at 2014/09/22-13:35:08
    Entered hgodtab at 2014/09/22-13:35:08
    count:1
      table: XXX_INTERFACE
    Allocate hoada[0] @ 0000000005F58270
    Entered hgopcda at 2014/09/22-13:35:08
    Column:1(InterfaceID): dtype:2 (NUMERIC), prc/scl:20/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:2(TableName): dtype:-9 (WVARCHAR), prc/scl:30/0, nullbl:0, octet:60, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:3(TableID): dtype:4 (INTEGER), prc/scl:10/0, nullbl:0, octet:0, sign:1, radix:10
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:4(StatusCode): dtype:-9 (WVARCHAR), prc/scl:30/0, nullbl:0, octet:60, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:5(StatusTimestamp): dtype:93 (TIMESTAMP), prc/scl:23/3, nullbl:0, octet:0, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    Entered hgopcda at 2014/09/22-13:35:08
    Column:6(InterfaceLog): dtype:-9 (WVARCHAR), prc/scl:400/0, nullbl:1, octet:800, sign:1, radix:0
    Exiting hgopcda, rc=0 at 2014/09/22-13:35:08
    The hoada for table XXX_INTERFACE follows...
    hgodtab, line 1073: Printing hoada @ 0000000005F58270
    MAX:6, ACTUAL:6, BRC:1, WHT=6 (TABLE_DESCRIBE)
    hoadaMOD bit-values found (0x40:TREAT_AS_NCHAR,0x400:UNICODE_COLUMN)
    DTY NULL-OK  LEN  MAXBUFLEN   PR/SC  CST IND MOD NAME
      3 DECIMAL N         22         22 20/  0    0   0   0 InterfaceID
    12 VARCHAR N         60         60 128/ 30 1000   0 440 TableName
      4 INTEGER N          4 4   0/  0    0   0   0 TableID
    12 VARCHAR N         60         60 128/ 30 1000   0 440 StatusCode
    91 DATE N         16         16 0/  0    0   0   0 StatusTimestamp
    12 VARCHAR Y        800        800 129/144 1000   0 440 InterfaceLog
    Exiting hgodtab, rc=0 at 2014/09/22-13:35:08
    Entered hgodafr, cursor id 0 at 2014/09/22-13:35:08
    Free hoada @ 0000000005F58270
    Exiting hgodafr, rc=0 at 2014/09/22-13:35:08
    Entered hgotcis at 2014/09/22-13:35:08
    Calling SQLStatistics for XXX_INTERFACE
    IndexType=SQL_TABLE_STAT: cardinality=0
    IndexType=1: PK_XXX_Interface
    IndexType=3: IX_TableID
    IndexType=3: IX_TableName
    Calling SQLColumns for dbo.SQL_app_INTERFACE
    #1 Column "InterfaceID": dtype=2, colsize=20, decdig=0, char_octet_length=0, cumulative avg row len=15
    #2 Column "TableName": dtype=-9, colsize=30, decdig=0, char_octet_length=60, cumulative avg row len=60
    #3 Column "TableID": dtype=4, colsize=10, decdig=0, char_octet_length=0, cumulative avg row len=64
    #4 Column "StatusCode": dtype=-9, colsize=30, decdig=0, char_octet_length=60, cumulative avg row len=109
    #5 Column "StatusTimestamp": dtype=93, colsize=23, decdig=3, char_octet_length=0, cumulative avg row len=125
    #6 Column "InterfaceLog": dtype=-9, colsize=400, decdig=0, char_octet_length=800, cumulative avg row len=725
    3 Index(es) found:
      Index: PK_XXX_Interface, type=1, ASCENDING, UNIQUE, cardinality=0
    #1 Column 1: InterfaceID
      Index: IX_TableID, type=3, ASCENDING, NON-UNIQUE, cardinality=0
    #1 Column 3: TableID
      Index: IX_TableName, type=3, ASCENDING, NON-UNIQUE, cardinality=0
    #1 Column 2: TableName
    Exiting hgotcis, rc=0 at 2014/09/22-13:35:08

  • Setting transaction isolation upon enlistment for XA driver not supported !!?!!?

    Hi !
    I've been developping a simple webapplication with a few Entity CMP EJB, Struts
    and some JSP.
    I registred a Pointbase XA JDBC driver in Weblogic 8.1.
    When I want to create a new post in the database via one of my EJB, I get "Due
    to vendor limitations, setting transaction isolation upon enlistment for "Pointbase
    XA" JDBC XA driver is not supported".
    What do I have to add in my xml files to make it work ?
    Something with <transaction-isolation> in the weblogic-ejb-jar.xml ?
    I'll appreciate some help here...
    Extract of my code (CustomerEditAction.java):
    <<
    CustomerHomeLocal chome = (CustomerHomeLocal) Locator.getHome("CustomerHomeLocal");
    prop = chome.create(cform.getName(), cform.getAddress(), cform.getZipcode(), cform.getCity(),cform.getCountry(),
    cform.getEmail(), cform.getPhone(), cform.getHomepage());
                             And the error message and stack is:
    <<
    javax.ejb.TransactionRolledbackLocalException: EJB Exception:; nested exception
    is: javax.ejb.EJBException: nested exception is: java.sql.SQLException: XA error:
    XAER_RMERR : A resource manager error has occured in the transaction branch start()
    failed on resource 'CaciPool - Pointbase - XA': XAER_RMERR : A resource manager
    error has occured in the transaction branch javax.transaction.xa.XAException:
    start failed for XAResource 'CaciPool - Pointbase - XA': Due to vendor limitations,
    setting transaction isolation upon enlistment for "PointBase XA" JDBC XA driver
    is not supported. at weblogic.jdbc.wrapper.XA.createException(XA.java:104) at
    weblogic.jdbc.jta.DataSource.start(DataSource.java:631) at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1069)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1001)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:203)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:419)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1230) at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1193)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:371) at weblogic.jdbc.jta.DataSource.connect(DataSource.java:329)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:1841)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.execGenKeyNamedSequenceTableUpdateAndQuery(RDBMSPersistenceManager.java:2392)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getNextGenKeyPreFetch(RDBMSPersistenceManager.java:2174)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getNextGenKeyNamedSequenceTable(RDBMSPersistenceManager.java:2147)
    at com.caci.ejb.CustomerEJB_6i2zhv__WebLogic_CMP_RDBMS.ejbCreate(CustomerEJB_6i2zhv__WebLogic_CMP_RDBMS.java:5403)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324) at weblogic.ejb20.manager.DBManager.create(DBManager.java:1139)
    at weblogic.ejb20.manager.DBManager.localCreate(DBManager.java:1118) at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:171)
    at com.caci.ejb.CustomerEJB_6i2zhv_LocalHomeImpl.create(CustomerEJB_6i2zhv_LocalHomeImpl.java:133)
    at com.caci.ui.CustomerEditAction.execute(CustomerEditAction.java:58) at
    >>
    Regards,
    Olivier

    Hi !
    I've been developping a simple webapplication with a few Entity CMP EJB, Struts
    and some JSP.
    I registred a Pointbase XA JDBC driver in Weblogic 8.1.
    When I want to create a new post in the database via one of my EJB, I get "Due
    to vendor limitations, setting transaction isolation upon enlistment for "Pointbase
    XA" JDBC XA driver is not supported".
    What do I have to add in my xml files to make it work ?
    Something with <transaction-isolation> in the weblogic-ejb-jar.xml ?
    I'll appreciate some help here...
    Extract of my code (CustomerEditAction.java):
    <<
    CustomerHomeLocal chome = (CustomerHomeLocal) Locator.getHome("CustomerHomeLocal");
    prop = chome.create(cform.getName(), cform.getAddress(), cform.getZipcode(), cform.getCity(),cform.getCountry(),
    cform.getEmail(), cform.getPhone(), cform.getHomepage());
                             And the error message and stack is:
    <<
    javax.ejb.TransactionRolledbackLocalException: EJB Exception:; nested exception
    is: javax.ejb.EJBException: nested exception is: java.sql.SQLException: XA error:
    XAER_RMERR : A resource manager error has occured in the transaction branch start()
    failed on resource 'CaciPool - Pointbase - XA': XAER_RMERR : A resource manager
    error has occured in the transaction branch javax.transaction.xa.XAException:
    start failed for XAResource 'CaciPool - Pointbase - XA': Due to vendor limitations,
    setting transaction isolation upon enlistment for "PointBase XA" JDBC XA driver
    is not supported. at weblogic.jdbc.wrapper.XA.createException(XA.java:104) at
    weblogic.jdbc.jta.DataSource.start(DataSource.java:631) at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1069)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1001)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:203)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:419)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1230) at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1193)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:371) at weblogic.jdbc.jta.DataSource.connect(DataSource.java:329)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:1841)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.execGenKeyNamedSequenceTableUpdateAndQuery(RDBMSPersistenceManager.java:2392)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getNextGenKeyPreFetch(RDBMSPersistenceManager.java:2174)
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getNextGenKeyNamedSequenceTable(RDBMSPersistenceManager.java:2147)
    at com.caci.ejb.CustomerEJB_6i2zhv__WebLogic_CMP_RDBMS.ejbCreate(CustomerEJB_6i2zhv__WebLogic_CMP_RDBMS.java:5403)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324) at weblogic.ejb20.manager.DBManager.create(DBManager.java:1139)
    at weblogic.ejb20.manager.DBManager.localCreate(DBManager.java:1118) at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:171)
    at com.caci.ejb.CustomerEJB_6i2zhv_LocalHomeImpl.create(CustomerEJB_6i2zhv_LocalHomeImpl.java:133)
    at com.caci.ui.CustomerEditAction.execute(CustomerEditAction.java:58) at
    >>
    Regards,
    Olivier

  • Failed to load Sorce Model: Encoding or code set not supported

    Hello,
    I have tried to migrate an informix-db with error "Failed to load Sorce Model: Encoding or code set not supported".
    Informix: 7.3.1
    Unix: Reliant-Unix 5.45
    Repository: Oracle 8.1.7 (64bit) EE     [tested with the same output 8.1.6]
    Unix: Reliant-Unix 5.44
    error.log:
    ** Oracle Migration Workbench
    ** Release 2.0.2.0.0 Production
    ** ( Build 20011121 )
    ** ORACLE_HOME: D:\wntapp\omwb
    ** user language: de
    ** user region: DE
    ** user timezone: ECT
    ** file encoding: Cp1252
    ** java version: 1.1.8.10
    ** java vendor: Oracle Corporation
    ** o.s. arch: x86
    ** o.s. name: Windows NT
    ** o.s. version: 4.0
    ** Classpath:
    D:\wntapp\omwb\Omwb\olite\Oljdk11.jar;D:\wntapp\omwb\Omwb\olite\Olite40.jar;C:\Programme\Oracle\jre\1.1.8\lib\rt.jar;C:\Programme\Oracle\jre\1.1.8\lib\i18n.jar;D:\wntapp\omwb\Omwb\jlib;D:\wntapp\omwb\Omwb\jlib\Omwb.jar;D:\wntapp\omwb\jlib\oembase-9_0_1.jar;D:\wntapp\omwb\jlib\netcfg.jar;D:\wntapp\omwb\Omwb\plugins\SQLServer6.jar;D:\wntapp\omwb\Omwb\plugins\SQLServer7.jar;D:\wntapp\omwb\Omwb\plugins\SQLServer2K.jar;D:\wntapp\omwb\Omwb\plugins\Sybase11.jar;D:\wntapp\omwb\Omwb\plugins\Sybase12.jar;D:\wntapp\omwb\Omwb\plugins\MSAccess.jar;D:\wntapp\omwb\Omwb\plugins\MySQL.jar;D:\wntapp\omwb\Omwb\drivers\mm.mysql.jdbc-1.2a;D:\wntapp\omwb\Omwb\plugins\Informix7.jar;D:\wntapp\omwb\Omwb\drivers\ifxjdbc.jar;D:\wntapp\omwb\lib\xmlparserv2.jar;D:\wntapp\omwb\rdbms\jlib\xsu111.jar;D:\wntapp\omwb\jdbc\lib\classes111.zip;D:\wntapp\omwb\lib\vbjorb.jar;D:\wntapp\omwb\jlib\ewt-swingaccess-3_3_18.jar;D:\wntapp\omwb\jlib\ewt-3_3_18.jar;D:\wntapp\omwb\jlib\ewtcompat-3_3_15.jar;D:\wntapp\omwb\jlib\share-1_1_9.jar;D:\wntapp\omwb\j
    lib\help-3_2_9.jar;D:\wntapp\omwb\jlib\ice-5_06_3.jar;D:\wntapp\omwb\jlib\kodiak-1_2_1.jar
    ** Started : Mon Feb 18 13:39:24 CET 2002
    ** The following plugins are installed:
    ** Informix Dynamic Server 7.3 Release 2.0.2.0.0 Production
    EXCEPTION : LoadTableData.run() : IDS7_SYSCOLUMNS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSTABLES Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSUSERS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSBLOBS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSVIEWS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSCOLDEPEND Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSREFERENCES Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSOBJSTATE Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSTRIGGERS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSTRIGBODY Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSSYNONYMS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSSYNTABLE Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSDEFAULTS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSCONSTRAINTS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSCHECKS Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSPROCEDURES Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSINDEXES Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSTABAUTH Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSROLEAUTH Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSPROCAUTH Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSCOLAUTH Encoding or code set not supported.
    EXCEPTION : LoadTableData.run() : IDS7_SYSPROCBODY Encoding or code set not supported.
    Please help.
    Thanks
    G. Grosche

    Looks like this error is comming from the Informix JDBC Driver.
    what version of the JDBC Driver are you using and is there anything special
    about the character set you used to create your database?
    Can you build a simple Java app to connect to the same database with the same JDBC Driver?
    Jim.

  • Character Set not supported

    Hi,
    I use Repository Administrative to create a new repository, but i got a error: "process aborted"
    Then i checked the log file, which is Character Set not support from type 31 to type 852
    anybody knows any solution about that
    Thanks in advance

    Just ran into this myself yester day.
    There is a Metalink Note on it.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showFrameDocument?p_database_id=NOT&p_id=190281.1
    Problem Description
    You are using OC4J and trying to connect to a database using JDBC OCI and
    are getting:
    "java.sql.SQLException: Character Set Not Supported !!: DBConversion"
    Solution Description
    Replace the <OC4J_HOME>\jdbc\lib\classes12dms.jar with
    <ORACLE_HOME>\jdbc\lib\classes12.jar and rename it with classes12dms.jar.
    Explanation
    It seems there is a mismatch of classes12.zip supplied with OC4J 9.0.2
    and the Oracle9i client libraries ocijdbc8.dll or ocijdbc8.so.
    OC4J 9.0.2 does not use jdbc\lib\classes12.jar instead it uses
    jdbc\lib\classes12dms.jar. So, in order to use the 9.0.1 client with OC4J, you
    will need to make a copy of classes12.jar and rename it to classes12dms.jar
    References
    [NOTE:108876.1] Creating Connection gives "No ocijdbc8 in java.library.path"
    [NOTE:174808.1] JDev9i and OCI Connections
    I copied and renamed the jar (classes12.jar) as they stated.
    Note: It should be in the directory you set in the JDev.conf, mine is
    AddNativeCodePath D:\OraNT\9iDS\bin
    Didn't try the other reply's suggestion of setting an environment variable.

Maybe you are looking for

  • Sub-Region in a query

    Hi All, I have to write a query wherein I have to use Divisions in the rows. Now in my system I have these Divisions defined. But furthermore the requirement says that the data should be displayed at sub-region level. these sub regions of a region ar

  • With Multiple Users--Can One User Change The Download Location of iTunes?

    Hi Everyone-- We have separate user accounts on our computer so that my dh and I can each have our own iTunes accts. However, we've run out of room on our C: drive. Now I know you can move where iTunes downloads--either external hd or the D: drive. B

  • Mac Mini running my home network

    I have a MacMini, a Mac Book Pro, and an iMac. I would like my iTunes, iPhoto, and all archived documents stored on the Mac Mini I also want my mobile devices iPhone and iPad to be synced to the MacMini? On this kind of networking configuration my kn

  • If I add ipod udater to my ipod now what will happen?

    I have a whole lot of songs on my ipod right now, But if I add ipod updater to it now, will that delete any of my songs

  • Questions about VD06

    Hi experts, After marking deletion flag for customer, why the customer's sales orders can be saved? Is it correct that customer with deletion flag can be processed like normal customers do? The system just throws the msg "Customer 0001000106 is marke