Xa transaction sample doesn't workk

I've tried to work through the java example concerning xa transaction, but it doesn't work.
The program cannot create the resource, a null value is always returned.
Sample code from oracle :
// Create a XADataSource instance
OracleXADataSource ds = new OracleXADataSource();
ds.setURL("jdbc:oracle:thin:@dolphin:1521:TEST");
ds.setUser("sel");
ds.setPassword("poivre");
// get a XA connection
XAConnection xaConn = ds.getXAConnection();
// Get a logical connection
Connection conn1 = xaConn.getConnection();
Xid xid1 = createXid(111,111);
until this everything work but the following get XA Resource doesn't work.
// Get XA resource handle
XAResource res = xaConn.getXAResource();
If someone knows about this, thank you in advance for help.
youcef.

A transaction timeout will not and cannot terminate user code as there
is no Java API for doing so. If you wish the user code to timeout, try
using the "setQueryTimeout()" method on the SQL statement. The WebLogic
JTS will timeout the transaction using another thread and will prevent
any JDBC activity associated with the global transaction from being
commited.
Sincerely,
Charlie Therit
Developer Relations Engineer
BEA Support
hjkuob wrote:
"Dear Support,
We encounter problems with transaction timeout and details as follows:
A swing UI calls a session bean in which a DAO(Data Access Object) is invoked,
In this DAO, it try to invoke a store procedure like following :
dateSource = getTxDataSource();
conn = (Connection)dataSource.getConnection();
cstmt = conn.prepareCall("{call PK_AP_OO_CATCH_UP.P_AP_MAIN(?,?) }");
cstmt.registerOutParameter(...........);
cstmt.execute();
When a irrevalent guy carelessly locked the table , the swing keep running for 5 hours and
the transaction never throws exception ( both JTA and trans-timeout-seconds are set).
I've also survey docments , however, we are not sure about the definition of Container-managed transactions
and Bean-managed transactions. So there are two problems to be solved :
1. How to solve the timeout problem as the sample code above for calling store procedures,
and what kind of transctions it uses according to the definition ?
2. If a normal sql statement is executed as follows , should we declare explicit transaction ( begin and commit) ? %

Similar Messages

  • [svn:osmf:] 11205: Fix bug FM-169: Trait support for data transfer sample doesn' t display bytes loaded and bytes total for SWF element

    Revision: 11205
    Author:   [email protected]
    Date:     2009-10-27 15:04:26 -0700 (Tue, 27 Oct 2009)
    Log Message:
    Fix bug FM-169: Trait support for data transfer sample doesn't display bytes loaded and bytes total for SWF element
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-169
    Modified Paths:
        osmf/trunk/apps/samples/framework/PluginSample/src/PluginSample.mxml
        osmf/trunk/apps/samples/framework/PluginSample/src/org/osmf/model/Model.as

    The bug is known, and a patch has been submitted: https://bugs.freedesktop.org/show_bug.cgi?id=80151. There's been no update since friday, so I wonder what the current status is, or if it's up for review at all.
    Does anyone know how we can be notified when this patch hits the kernel?

  • Transactions Sample RMI-IIOP Code

    Hi,
              Looking to the link below it appears that we can have RMI-IIOP applications
              and clients that use JTA.
              http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
              Does anyone know of a RMI-IIOP sample that illustrates how transactions are
              propagated from RMI-IIOP clients to RMI-IIOP applications?
              Regards,
              Dan Cimpoesu
              

    But if you look to the diagram:
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1040200
    it suggests that transactional context is passed from clients to RMI-IIOP
    servers.
    Am I wrong?
    Dan
    "Andy Piper" <[email protected]> wrote in message
    news:[email protected]..
    "Dan Cimpoesu" <[email protected]> writes:
    Transactions over IIOP are not supported or implemented in WLS 6.1 or
    previous. This is a feature of WLS 7.0. In 7.0 we implement OTS.
    andy
    Hi,
    Based on the links below:
    http://e-docs.bea.com/wls/docs61/jta/trxrmi.html#1018506
    http://e-docs.bea.com/wls/docs61/jta/gstrx.html#1067532
    It appears that is possible to have distributed transactions across
    RMI-IIOP
    clients and RMI-IIOP applications (servers).
    I followed up the "Transactions Sample RMI Code" section but it appearsthat
    the transaction context is not propagated from client to server. I amalso
    surprised by the note:
    Note: These code fragments do not derive from any of the sampleapplications
    that ship with WebLogic Server. They merely illustrate the use of the
    UserTransaction object within an RMI application.
    The above note suggests that there is no sample code available.
    Is there anyone who successfully had RMI-IIOP applications (servers)
    participating in distributed transactions?
    Is there any sample code that illustrates RMI-IIOP applications(servers)
    participating in distributed transactions?
    If anyone thinks that this should work I will post my code that does not
    work.
    Regards,
    Dan Cimpoesu

  • Weblogic sample doesn't work properly ( failed to serialize ) ?

    Dear all,
    I am running the sample dom.zip which doesn't run properly from http://dev2dev.bea.com/direct/webservice/index.html.
    Server
    =======================================================
    package examples.dom;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    public final class EchoDom {
    public Document echoDom(Document doc) {
    System.out.println("The dom on the server is[");
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) doc);
    System.out.println("]");
    return doc;
    Client
    =======================================================
    package examples.dom;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.HandlerInfo;
    import javax.xml.rpc.handler.HandlerRegistry;
    import javax.xml.soap.SOAPConstants;
    import weblogic.xml.stream.XMLInputStream;
    import weblogic.xml.stream.XMLInputStreamFactory;
    import weblogic.xml.schema.binding.TypeMapping;
    import weblogic.xml.schema.binding.TypeMappingFactory;
    import weblogic.utils.Debug;
    import weblogic.apache.xerces.parsers.DOMParser;
    import java.util.ArrayList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Document;
    import org.w3c.dom.Comment;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.ProcessingInstruction;
    import org.w3c.dom.NamedNodeMap;
    import org.xml.sax.InputSource;
    * @author Copyright (c) 2002 by BEA Systems. All Rights Reserved.
    public final class Client {
    public static Document getDocument(String filename)
    throws Exception
    DOMParser parser = new DOMParser();
    parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",
    false );
    parser.setFeature( "http://xml.org/sax/features/validation",
    false);
    parser.setFeature( "http://xml.org/sax/features/namespaces",
    true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema",
    true);
    parser.parse(weblogic.xml.babel.baseparser.SAXElementFactory.createInputSource(filename));
    Document doc =parser.getDocument();
    return doc;
    public static void main( String[] args ) throws Exception{
    Dom d = new Dom_Impl("http://localhost:7001/dom/EchoDomService?WSDL");
    DomPort port = d.getdomPort();
    Document request = getDocument(args[0]);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) request);
    try {
    Document newDoc = port.echoDom(request);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) newDoc);
    } catch (javax.xml.rpc.JAXRPCException e) {
    System.out.println(e.getLinkedCause());
    e.getLinkedCause().printStackTrace();
    Run-time Exception
    =========================================================
    C:\JDEV903\jdk\bin\javaw.exe -ojvm -classpath C:\MyStudy\java\WS3\classes;D:\bea\weblogic700\server\lib\webserviceclient+ssl.jar;D:\bea\weblogic700\server\lib\weblogic.jar;C:\JDEV903\jdev\lib\jdev-rt.jar;C:\JDEV903\soap\lib\soap.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\jlib\javax-ssl-1_2.jar;C:\JDEV903\jlib\jssl-1_2.jar;C:\JDEV903\j2ee\home\lib\activation.jar;C:\JDEV903\j2ee\home\lib\mail.jar;C:\JDEV903\j2ee\home\lib\http_client.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\lib\xmlcomp.jar;C:\MyStudy\java\1\dom\client.jar
    -Dweblogic.webservice.verbose=true wl.client.wsServletClient
    java.rmi.RemoteException: web service invoke failed; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
         void weblogic.webservice.core.DefaultPart.toXML(javax.xml.soap.SOAPElement, java.lang.Object,
    weblogic.xml.schema.binding.SerializationContext, boolean, javax.xml.rpc.encoding.TypeMapping)
              DefaultPart.java:260
         void weblogic.webservice.core.DefaultMessage.toXML(javax.xml.soap.SOAPMessage,
    java.lang.Object[])
              DefaultMessage.java:455
         java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[], java.io.PrintStream)
              DefaultOperation.java:403
         java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[])
              DefaultOperation.java:359
         java.lang.Object weblogic.webservice.core.rpc.StubImpl._invoke(java.lang.String,
    java.util.Map)
              StubImpl.java:225
         java.lang.Object examples.dom.EchoDomServicePort_Stub.echoDom(java.lang.Object)
              EchoDomServicePort_Stub.java:33
         void wl.client.wsServletClient.main(java.lang.String[])
              wsServletClient.java:78
    Process exited with exit code 0.
    Please help.
    mindterm

    Hello,
    I just save the dom example a spin and it worked OK for me. RU using the latest service pack? Does the dom.ear build correctly and deploy on the server without errors? Can U see the webservice test page from http://localhost:7001/dom/EchoDomService ?
    Thanks,
    Bruce
    mindterm wrote:
    Dear all,
    I am running the sample dom.zip which doesn't run properly from http://dev2dev.bea.com/direct/webservice/index.html.
    Server
    =======================================================
    package examples.dom;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    public final class EchoDom {
    public Document echoDom(Document doc) {
    System.out.println("The dom on the server is[");
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) doc);
    System.out.println("]");
    return doc;
    Client
    =======================================================
    package examples.dom;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.handler.HandlerInfo;
    import javax.xml.rpc.handler.HandlerRegistry;
    import javax.xml.soap.SOAPConstants;
    import weblogic.xml.stream.XMLInputStream;
    import weblogic.xml.stream.XMLInputStreamFactory;
    import weblogic.xml.schema.binding.TypeMapping;
    import weblogic.xml.schema.binding.TypeMappingFactory;
    import weblogic.utils.Debug;
    import weblogic.apache.xerces.parsers.DOMParser;
    import java.util.ArrayList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Document;
    import org.w3c.dom.Comment;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.ProcessingInstruction;
    import org.w3c.dom.NamedNodeMap;
    import org.xml.sax.InputSource;
    * @author Copyright (c) 2002 by BEA Systems. All Rights Reserved.
    public final class Client {
    public static Document getDocument(String filename)
    throws Exception
    DOMParser parser = new DOMParser();
    parser.setFeature( "http://apache.org/xml/features/dom/defer-node-expansion",
    false );
    parser.setFeature( "http://xml.org/sax/features/validation",
    false);
    parser.setFeature( "http://xml.org/sax/features/namespaces",
    true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema",
    true);
    parser.parse(weblogic.xml.babel.baseparser.SAXElementFactory.createInputSource(filename));
    Document doc =parser.getDocument();
    return doc;
    public static void main( String[] args ) throws Exception{
    Dom d = new Dom_Impl("http://localhost:7001/dom/EchoDomService?WSDL");
    DomPort port = d.getdomPort();
    Document request = getDocument(args[0]);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) request);
    try {
    Document newDoc = port.echoDom(request);
    weblogic.xml.babel.stream.DOMInputStream.printNode((Node) newDoc);
    } catch (javax.xml.rpc.JAXRPCException e) {
    System.out.println(e.getLinkedCause());
    e.getLinkedCause().printStackTrace();
    Run-time Exception
    =========================================================
    C:\JDEV903\jdk\bin\javaw.exe -ojvm -classpath C:\MyStudy\java\WS3\classes;D:\bea\weblogic700\server\lib\webserviceclient+ssl.jar;D:\bea\weblogic700\server\lib\weblogic.jar;C:\JDEV903\jdev\lib\jdev-rt.jar;C:\JDEV903\soap\lib\soap.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\jlib\javax-ssl-1_2.jar;C:\JDEV903\jlib\jssl-1_2.jar;C:\JDEV903\j2ee\home\lib\activation.jar;C:\JDEV903\j2ee\home\lib\mail.jar;C:\JDEV903\j2ee\home\lib\http_client.jar;C:\JDEV903\lib\xmlparserv2.jar;C:\JDEV903\lib\xmlcomp.jar;C:\MyStudy\java\1\dom\client.jar
    -Dweblogic.webservice.verbose=true wl.client.wsServletClient
    java.rmi.RemoteException: web service invoke failed; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.schema.binding.SerializationException:
    type mapping lookup failure on class=class weblogic.apache.xerces.dom.DeferredDocumentImpl
    TypeMapping=TYPEMAPPING SIZE=0
    void weblogic.webservice.core.DefaultPart.toXML(javax.xml.soap.SOAPElement, java.lang.Object,
    weblogic.xml.schema.binding.SerializationContext, boolean, javax.xml.rpc.encoding.TypeMapping)
    DefaultPart.java:260
    void weblogic.webservice.core.DefaultMessage.toXML(javax.xml.soap.SOAPMessage,
    java.lang.Object[])
    DefaultMessage.java:455
    java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[], java.io.PrintStream)
    DefaultOperation.java:403
    java.lang.Object weblogic.webservice.core.DefaultOperation.invoke(java.util.Map,
    java.lang.Object[])
    DefaultOperation.java:359
    java.lang.Object weblogic.webservice.core.rpc.StubImpl._invoke(java.lang.String,
    java.util.Map)
    StubImpl.java:225
    java.lang.Object examples.dom.EchoDomServicePort_Stub.echoDom(java.lang.Object)
    EchoDomServicePort_Stub.java:33
    void wl.client.wsServletClient.main(java.lang.String[])
    wsServletClient.java:78
    Process exited with exit code 0.
    Please help.
    mindterm

  • Transaction AFAR doesn't check for authorization

    Hi,
    I've added transaction code AFAR in one of the role that has Check/Maintain for authorization object A_PERI_BUK which should restrict on company code. Ive even check the associated program RAAFAR00 which has the authority chekc statement.
    But, when I restrict the access to a specific company code in the role, the transaction is still allowing the users to execute it with other company codes. User doesn't have any other roles assigned and all the other tcodes such as AFAB, AFBP are giving authorization errors.
    Can some one help!!
    Regards,
    Raghu

    Hi,
    it is not throwing failed authority check error but should work just fine.
        AUTHORITY-CHECK   OBJECT  'A_PERI_BUK'
                          ID      'AM_ACT_PER'      FIELD con_31
                          ID      'BUKRS'           FIELD x093c-bukrs.
        IF sy-subrc NE 0.
    *       WRITE: / text-f08, x093c-bukrs. commented by C5053255
          CONTINUE.
        ELSE.
    *      Rücklesen des eingegebenen Geschäftsjahres pro Buchungskreis
          p_gjahr = sav_gjahr.                                  "> 627533
        ENDIF.
    CONTINUE statement executed in case of failed authority-check causes loop to skip processing for this item ... so only elements for which user has proper authorizations are processed. Try debugging to confirm
    Best regards,
    FS

  • Transaction MD01 doesn't planify articles

    Hi experts!
    I am having some trouble with transaction MD01 in my system: It doesn't planify any article. I have done the following customizing:
    - It's supply source is 4
    - It has a source list defined with the relevant vendor for the MRP
    - The vendor is defined as "Regular Vendor"
    - It is in the store's assortment
    When I run MD02 the purchase requisition is correctly generated, but it doesn't work with MD01 and MDW1. In customizing, the MRP has the option “Activate requirement planning” activated.
    Do you have any clue why this transaction is not working?
    Thank you very much once again.

    What is the value for availability check in your material master?
    What MRP type do you use?
    Do you have a planning file entry > check MD21

  • Distributed Transaction sample

    This fails with the following message:
    Error :Unable to load DLL (OraOps10.dll).
    Same as my previous post.
    The sample code is included in 10G with a compile date of 2/10/2004 in directory C:\oracle\product\10.1.0\db_1\ODP.NET\samples\Transaction\DistributedTransaction\src
    Is this a problem with 10g??

    Turns out that you need to manually grant permissions on the Oracle Home directory and subdirectoried for IIS. This was never necessary in 8 or 9 but a requirement for 10g.

  • In UPGRADE from 4.7c to ecc6.0 ME21N  Transaction PO doesn't print

    Hello Guru's,
    Will anyone give answer while upgrading(4.7C to ECC 6.0) in ME21N transction PO doesn't printing.  will you provide which OSS will support to rectify the problem.
    Full points for the answer.
    Regards, PV

    Hi,
    Can you clear whether you are in the process of upgrading to ECC6 or you have already completed the Upgrade to ECC6 ?
    Regards
    Suhas

  • Creating a transaction variant doesn't catch the selection screen

    Hi,
    I am trying to create a transaction variant for RERAPP transaction, which calls the report RFRERAPP on selection screen 1000.
    I have used SHD0, specifying the t. code and a name for a transaction variant, then pressed the "Create" button. the selection screen is displayed, I enter the relevant values for the transaction, and press enter. the system prompts me to create some screen variants, but none of them have fields listed, and none of them is for the screen 1000.
    SAP Release 600.
    Any hint on the reason behind this behavior?
    I found another related, unanswered [topic|Transaction Variant for a standard report without transaction code;

    Hi,
    I have faced similar problem..
    Here is the work around.. Might be useful for you..
    1. Create Selection screen variant for report (Modify selection screen 1000 for display/hide in variant maintaince)
    2. Then create "parameter Transaction" with report on Transaction START_REPORT
    D_SREPOVARI-REPORT = <Your Report Name>
    D_SREPOVARI-VARIANT = <Newly created variant>
    Nag
    Edited by: Naga Mohan Kummara on Dec 31, 2009 10:46 AM
    Edited by: Naga Mohan Kummara on Dec 31, 2009 10:49 AM

  • "Providing interactive database lookup from forms" sample doesn't work with Acrobat Reader 7

    I have downloaded and tested the Adobe sample "Adobe LiveCycle Designer 7.0, Providing interactive database lookup from forms". Everything works great in Acrobat Professional Full version, however, when I tested it in Acrobat Reader 7.0.5, it generated a "script failed..." message.
    Did anybody have the same problem? You can download the sample from here:
    http://partners.adobe.com/public/developer/en/livecycle/lc_designer_db_lookup_tip.pdf
    Thanks a lot in advance!
    Jie

    Hi Jie,
    Database connectivity is a feature supported in Acrobat only , not Reader--unless the PDF has been extended with Adobe LiveCycle Reader Extensions.
    http://www.adobe.com/products/server/readerextensions/main.html
    See "Table 3: Form capability support for Adobe Acrobat and Adobe Reader" at:
    http://partners.adobe.com/public/developer/en/tips/lc_combine_server_tip.pdf
    Evangelos

  • Preview of Transaction iVew doesn't work

    Hi,
    I have created a very simple transaction iView to allow users to call transaction SM30 in my BI system from the Portal.  I have the iView assigned to a role and everything works fine when I log in as my demo user. 
    However when I preview the iView as an administrator, the gui loads up the "easy access" menu, not the SM30 transaction code.
    - Single signon / user mapping are working correctly; when I preview the iView I can see my admin user has an rfc connection to my BI system
    - The admin user has the authorisation in BI to run transaction SM30, in fact once the iView has loaded the easy access menu, I can then manually call the transaction and maintain the required table.
    So I can't see this as either a connectivity or an authorisation error.  Does anyone have any idea what else I could have missed here??
    Thanks,
    Sue

    Hi Michael,
    No, the preview of the page as the administrator does not work either.  And I double checked the patch levels with my basis admin - he confirmed that the portal is actually still on patch 18.  On my BW system, the SAP_ABA and SAP_BASIS components are patch 17 while SAP_BW is patch 19.
    Do you think this is simply a feature of my current patch levels that should be fixed in future versions?
    Thanks,
    Sue

  • Optimizer Dynamic Sampling doesn't work in our DB

    Hi,
    I'm trying to explore Optimizer Dynamic Sampling functionality,but it seems that database use this feature only if I use /*+ optimizer_dynamic_sampling */ hint.
    There is optimizer_dynamic_sampling=2 set on system level (init.ora) and I also set this parameter on session level. But dynamic sampling is fired only with hint. I would like to use this feature transparently without any hints needed.
    Could it be some kind of bug or I'm doing something wrong?
    Thanks. Filip
    See example below.
    DB version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    OS version: AIX-Based Systems (64-bit)
    /* Check parameter setting*/
    select name,value,isdefault from v$parameter p
    where p.NAME='optimizer_dynamic_sampling';
    NAME VALUE ISDEFAULT
    optimizer_dynamic_sampling 2 TRUE
    /* Create table without STATS*/
    create table test_sampling as select * from all_objects;
    /* Create index */
    create index ix_tstsam on test_sampling (object_name, owner);
    /* Check if statistics exists*/
    select table_name,num_rows,last_analyzed from all_tables a where a.table_name= 'TEST_SAMPLING';
    TABLE_NAME NUM_ROWS LAST_ANALYZED
    TEST_SAMPLING NULL NULL
    /* Setting Dynamic sampling on session level* /
    Alter session set optimizer_dynamic_sampling=2;
    /************ Explain plan - Select without hint ************/
    explain plan set statement_id='TST_NOHINT' for
    select sa.object_name from test_sampling sa where sa.owner = 'X';
    PLAN_TABLE_OUTPUT
    Plan hash value: 2834243581
    | Id | Operation | Name |
    | 0 | SELECT STATEMENT | |
    |* 1 | TABLE ACCESS FULL| TEST_SAMPLING |
    Note
    - rule based optimizer used (consider using cbo)
    /************ Explain plan - Select WITH hint ************/
    explain plan set statement_id='TST_HINT' for
    select /*+ dynamic_sampling(2) */ sa.object_name from test_sampling sa where sa.owner = 'X';
    PLAN_TABLE_OUTPUT
    Plan hash value: 3916830885
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
    | 0 | SELECT STATEMENT | | 8 | 272 | 86 (2)| 00:00:02
    |* 1 | INDEX FAST FULL SCAN| IX_TSTSAM | 8 | 272 | 86 (2)| 00:00:02
    Note
    - dynamic sampling used for this statement (level=2)

    Yes, this was the cause. Optimizer mode was set to CHOOSE. If I change it to ALL_ROWS, Optimizer Dynamic Sampling works.
    Thank you !

  • AdvancedMedia Sample doesn't run video (MediaPlayer)

    Hi!
    Running the AdvancedMedia sample from JavaFX everything works OK.
    Using MediaPlayer class it shows the flash video from http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv
    The problem is if I try to read other flash video... There is no video!
    Looking at the video file example oow2010-2.flv the properties say it is a FLV4 video with format VP6.
    And with this configuration it works fine.
    I've tried to convert a several MP4 videos in to Flash(flv) but I never found a FLV4/VP6 format option to do it.
    So, is there anyway to read "normal" FLVs files using the AdvancedMedia sample ?
    Regards
    Pedro

    >
    Here is an old thread explaining FLV and the format you need: Playing video media
    Can you give us a self contained example of what you are doing between  tags?
    >
    Thanks for your answer.
    First I did the example reading the video file from the Web.
    To be more comprehensive I show a small code reading the file locally with the same problem.
    Here is the Java code that I use:
    package mediaplayer;
    import java.io.File;
    import javafx.application.Application;
    import javafx.collections.ListChangeListener;
    import javafx.collections.MapChangeListener;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaView;
    import javafx.scene.media.Track;
    import javafx.stage.Stage;
    * A sample media player which loops indefinitely over the same video
    public class MediaPlayer extends Application {
        @Override
        public void start(Stage stage) {
            stage.setTitle("Media Player");
            // This file flv/VP6 from Oracle works fine.
            String filename = "C://VideoFromOracle.flv";
            Media media = new Media(new File(filename).toURI().toString());
            javafx.scene.media.MediaPlayer mediaPlayer = new javafx.scene.media.MediaPlayer(media);
            mediaPlayer.setAutoPlay(true);
            mediaPlayer.setCycleCount(javafx.scene.media.MediaPlayer.INDEFINITE);
    // Print track and metadata information
            media.getTracks().addListener(new ListChangeListener<Track>() {
                public void onChanged(Change<? extends Track> change) {
                    System.out.println("Track> " + change.getList());
            media.getMetadata().addListener(new MapChangeListener<String, Object>() {
                public void onChanged(MapChangeListener.Change<? extends String, ? extends Object> change) {
                    System.out.println("Metadata> " + change.getKey() + " -> " + change.getValueAdded());
    // Add media display node to the scene graph
            MediaView mediaView = new MediaView(mediaPlayer);
            Group root = new Group();
            Scene scene = new Scene(root, 520, 200);
            root.getChildren().add(mediaView);
            stage.setScene(scene);
            stage.show();
        public static void main(String[] args) {
            Application.launch();
        }This code is working OK opening the application and showing the video.
    It reads the Oracle video example in the root "C:\" downloaded before from [https://blogs.oracle.com/javafx/entry/mpeg_4_multimedia_support_in].
    The problem is I can´t read any other videos FLV or MP4.
    All the videos I created/converted to FLV or MP4 never work!
    Edited by: 986488 on 7/Fev/2013 13:30

  • HP Deskjet 5940, Properties, "give print sample'' doesn't work right.

    When I want to see a print sample before the real print will be started - I did define this- then I see an old print sample. When I ignore this and make the real print, it is the print that I really wanted. When I repeat this action then I get the real print sample. Only after a restart of the computer the problem is there again: I see the same old print sample, only the first time. So that old print sample sticks in the memory and I see it always and only when I order the first print after the startup of the computer. The real print will be given anyway. 
    This question was solved.
    View Solution.

    What OS are you using?
    What program are you trying to print from?
    HP designed a quick and easy tool that diagnoses and resolves many printing, scanning, and connectivity problems: The HP Print and Scan Doctor. HP recommends that you download and install the Print and Scan Doctor any time you need to troubleshoot a problem with your HP printer from the link below.
    Let me know what errors you receive?
    HP Print Utilities Page
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Transaction iView doesn't appear

    Hi all,
    I've created a Transaction iView in EP 6.0 connected to a ECC 5.0 system and I've assigned it to a custom Role: <b>My_Role</b> (My_Role -> My_WorkSet -> My_Page -> My_iView).
    When I show a preview (as EP system admin) of that iView it works fine, but when I assign My_Role to the simple User I obtain an error into the iView:
    <b>com.sap.portal.appintegrator.sap.Transaction::Transaction/WebGuiSSOLayer</b>
    If I assign to that user the <b>super_admin_role</b> it works fine.
    How can I solve this issue, without assigning to that user the super_admin_role ?
    Thank you.
    Best regards,
    Gianluca Barile

    Hi Gianluca,
    looks like you have got a problem with permissions there. Check if you have given end user permission for your custom role to iView and system object that is used by the iView.
    Best regards,
    Martin

Maybe you are looking for

  • Getting list item ID in PL/SQL

    Hi Guys, Does anybody know how to get #LIST_ITEM_ID# value in PL/SQL expression for a condition? I have a function that returns boolean value to check user has right to see menu item or not. But I need to send Item_ID value to that function... I foun

  • Interface with SHBrowseForFolder Function (shell32.dll)

    Dear OTN members, Anyone there know how to interface with SHBrowseForFolder Function in "shell32.dll" Windows NT's library ? Regards Khoo null

  • Http proxy not working with 8.1

    Morning, all Ever since updating to 8.1, I can no longer use an http proxy with my iPhone 4s.  This worked fine with 8.0 and earlier, but now I get network errors or Safari says "Safari cannot open the page because the network connection was lost." T

  • Starting from outlook link Firefox is a tiny little sqare in left upper corner

    In this update from 5.0 to 7.0 I hate .o versions, said that net frame 1.0 was invalid and was updating to 1.3.1 which never finished, I killed after an hour, and now have no net frame but a gray one. I was lead to net frame 3.5 SP1 which I already h

  • My Dreamweaver CS3 crashes

    For now reason at all, my Dreamweaver CS3 crashes, when I load the application up. Its the same error message but repeated for three different locations: Adobe Creative Suite 3 Web Standard, Adobe Dreamweaver CS3, Share components. The error message: