Error when casting to UserTransaction

Hi,
I encounter the error below which occur at the line 7 cos I dont' see the output of "33".
java.lang.ClassCastException: org.jboss.tm.usertx.client.ServerVMClientUserTransaction
1    UserTransaction userTransaction = null;
2      3    try {
4        System.out.println("11");
5        InitialContext ctx = new InitialContext();
6        System.out.println("22");
7        userTransaction = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
8        System.out.println("33");
9        userTransaction.begin();
10       System.out.println("44");Any idea what's wrong?
I'm running the application in Jboss4.0.3SP1. Any setting that I need to specify or activate?
Thank you.

We are getting the same error with JBoss 4.3. Were you able to resolve this issue?

Similar Messages

  • ClassCastException error when casting OAWebBean to OAQueryBean

    I'm on OAF 11.5.10 2CU. I recevive ClassCastException error when the following statement is used:
    OAQueryBean queryBean = (OAQueryBean) webBean;
    Any idea?
    Thanks
    Muhammet

    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    System.out.println("Here it will fail");
    OAQueryBean queryBean = (OAQueryBean) oawebbean.findIndexedChildRecursive("SrchRN");
    System.out.println("You cant see this message because of classcastexception error");

  • Why alert casting error when module url changed?

    Hi, everyone.
    I occurred a stranger error when click the item in DataGrid
    which is redirected by "ModuleLoader" url.
    Error #1034: Cast Error:Cannot cast
    mx.managers::DragManagerImpl@482f971 to
    mx.managers.IDragManager。
    at mx.managers::DragManager$/get
    impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:152]
    at mx.managers::DragManager$/get
    isDragging()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:18 7]
    at
    mx.controls.listClasses::ListBase/dragScroll()[E:\dev\3.0.x\frameworks\projects\framework \src\mx\controls\listClasses\ListBase.as:7148]
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at <anonymous>()
    at SetIntervalTimer/onTimer()
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    Actually I never modify about DragManagerImpl...
    In my main.mxml there is a
    <mx:ModuleLoader id="module"
    url="modules/DeviceRegisterSelectWizardModule.swf"/>
    this ModuleLoader control is to load a new swf module when
    change the url.
    Althought the first loaded module which included DataGrid is
    OK, it popup the error when this module is the second time switched
    by the url...
    The error is the above when click the item in it.
    Actually all cast operation is error as I tried:
    And is there any solution for it? ModuleLoader has such a
    bug?
    Thank you very much.

    Hi,
    Another way to "find" the URL for the oamconsole, that I use if I'm not familiar with the configuration I'm working on is to first log into the Adminserver WL Console, then go to "Deployments".
    Then, find "oamconsole" in the Deployments listed (on the right).
    Click on that, then on the next page, look for the "Testing" tab. Click on the "Testing" tab, which which show the /oamconsole app.
    Click on the "+" to expand the tree, and you should see a bunch of different URLs on the right, e.g., if you have OAM console deployed to managed servers, etc., there'll be different URLs for those, etc., and you can just click on the links to open up OAM Console in your browser.
    Jim

  • Getting error when running process flows in oem

    Hi all,
    I'm trying to run a process flow in oem (using oem_exec_template.sql script), but it keeps failing with error "nms-1013: sqlplus does not exist". I tried running a map too and it failed with same message.
    Any idea anyone?
    Thanks!
    Yanet

    Hi,
     Looks like you have an obvious code error, invalid cast operation in your code. Do you get this error when running in local emulator.
     You can try the following article on how to debug published cloud service, assuming you have VS ultimate.
     https://msdn.microsoft.com/en-us/library/azure/ff683671.aspx
    Regards,
    Nithin Rathnakar

  • Error when using filter on date column in interactive report

    Hi,
    I'm getting the following error when using the filter on a date column. None of the criteria in the filter list work. All give me the same error but when I use the filter on a column feature (in the search bar) and use ">" and "<" those work.
    Can someone please help me????
    " Settledate is in the last 2 years
    ORA-30175: invalid type given for an argument ORA-02063: preceding line from MAINDATA "

    I have a similar problem . I have an interactive report based on resultset stored in a collection; since all the columns of a collection are of string datatype, I convert the columns to appropriate datatypes before its returned to the user; everything works as desired except when I try to filter on a data column , I get a ORA-01858: a non-numeric character was found where a numeric was expected .
    I turned on debug mode and am copying the output here , column c009 which is aliased to 'C' is the one that I am trying to apply the filter on
    select
    ROWID as apxws_row_pk,
    "C001",
    "C002",
    "C003",
    "C004",
    "C005",
    "C006",
    "C007",
    "C008",
    "CHECKOUTTIMESTAMP",
    "C010",
    "C011",
    "TO_NUMBER(C012)",
    "TO_NUMBER(C013)",
    "TO_NUMBER(C014)",
    "C015",
    "C016",
    "C017",
    "TO_NUMBER(C018)",
    "C",
    count(*) over () as apxws_row_cnt
    from (
    select * from (
    Select c001,c002,c003,c004,c005,c006,c007,c008,to_date(c009,'dd-MON-yy HH24.MI') checkouttimestamp,
    cast(to_date(c009,'dd-MON-yy HH24.MI') as timestamp) c,
    --TO_TIMESTAMP(c009,'dd-MON-yy HH24.MI') c1 ,
    trunc(to_date(c009,'dd-MON-yy HH24.MI')) checkoutdate,
    c010,c011,to_number(c012),to_number(c013), to_number(c014),c015,c016,c017,to_number(c018) from apex_collections where collection_name = 'IR_BOOKSALES'
    ) r
    where ("C" between systimestamp - ((1/24) :APXWS_EXPR_1) and systimestamp)*
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by ROWID
    0.04: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="1"
    0.04: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="2000"
    ORA-01858: a non-numeric character was found where a numeric was expected
    I have tried to convert c009 to date, timestamp and timestamp with time zone datatypes ; they all return the same error ,but all 3 datatypes work fine with systimestamp when I run them in sqlplus. Any help would be appreciated.

  • Error when using instantiated mxml component in popupmanager

    Hi,
    Im getting the following error when trying to create a popup:
    Error #1007: Instantiation attempted on a non-constructor
    The code looks as follows
    var browserPop:CustomBrowser = new CustomBrowser();
    browserPop.targetType = "file";
    browserPop.fileType = "jpg";
    var pop:TitleWindow =
    PopUpManager.createPopUp(this,browserPop as Class, true) as
    TitleWindow;
    Where CustomBrowser is an MXML component extending
    TitleWindow.
    If i use:
    var pop:TitleWindow =
    PopUpManager.createPopUp(this,CustomBrowser, true) as TitleWindow;
    it works fine but i need to be able to set some public
    properties and therefore instantiate it first. Any help would be
    appreaciated.
    Thanks in advance
    Eric

    Create you component using the popupmanager, then cast it to
    the
    specific type to access it's public methods and/or variables.
    Like so for mxml component ExceptionPopup:
    var popup:IFlexDisplayObject;
    popup =
    PopUpManager.createPopUp(_parentPanel,ExceptionPopUp,true,null);
    (popup as ExceptionPopUp).addRecords(ev.errorMessage);
    (popup as ExceptionPopUp).title = "title";
    (popup as ExceptionPopUp).userText.text = "some user text"
    PopUpManager.centerPopUp(popup);

  • Error when starting Adobe Form

    I have an Adobe Form which works Ok in the development SAP Portal, but that, when I log in the production portal gives the following error:
    Error when reinitializing the form (I guess, it's Error al reinicializar el formulario, in Spanish)
    I think maybe there is something missing to transport, or some misconfiguration, but I haven't been able so far to find it...
    Can someone give me a hand?
    Thank you in advance,
    S.

    Hi,
    Can you tell me when does the error message comes? Does it comes when you are trying to open the Form or when you are trying to execute it.
    Please check if it is still working in the development box?
    Regards,
    Susanta

  • Report Generation Toolkit error when running exe not vi

    Unknown System Error in Get Report Settings.vi->Get Current Font.vi->Excel Easy Table (str).vi->insert table and save file.vi->80x test suite.vi
    1. The above is an error I get from my exe
    2. I do not get this error when just running the vi.
    3. On several report gen functions cohersion dots are on my refnum input.  Is this the cause of my problem with the exe? 
    I guess there is an another learning curve when dealing with the app builder. 
    Any suggestions would be appreciated.
    Thanks
    Brian
    CLAD
    Brian

    forget what i wrote. it was my vi. 
    funny, most of the time it aint LabVIEW causing the problem but the program itself.
    Brian

  • Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem net ti

    Have a  problem with Lightroom 5.4.  Since the program crashed yesterday it won't launch, it comes up with the message "Lightroom encountered an error when reading its preview cache and needs to quit".  "  Lightroom will attempt to fix this problem next time it launches".  Except that it doesn't, I keep getting the same message and the program closes.  Does anyone know what I  can do to repair it?  Can't back up, can't do anything.

    There are dozens of threads in this forum that describe the fix

  • Error when fetching into a variable of ROWTYPE

    I came across with a vied error when creating the body of a method.
    Problem:
    I have a Type called Emp_typ and a corresponding table Emp_tab.
    When I create the body of get method it gives the following error msg :
    Compilation errors for PACKAGE BODY CHAMITH.EMP_API
    Error: PLS-00386: type mismatch found at 'EMP_ROW' between FETCH cursor and INTO variables
    Line: 9
    Text: fetch get_emp_rec into emp_row;
    Get Method body :
    function get(id_ number) return emp_tab%rowtype IS
    cursor get_emp_rec IS
    select * from emp_tab;
    emp_row emp_tab%rowtype;
    begin
    open get_emp_rec;
    fetch get_emp_rec into emp_row;
    close get_emp_rec;
    return emp_row;
    end;
    However when I do the same without having a type upon the table emp_tab, it works fine.
    Pls give me a solution for that.
    Thanks,
    Chamith

    Hi,
    Let me know the Oracle Database Version.
    Regards,
    Sailaja

  • Error when trying to access a secured web service from Forms 10g 10.1.2.3

    Hello,
    I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:
    java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 UnauthorizeWhen i press the button a second time i got this error:
    javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missingThis is the code i have in my button:
    DECLARE
    jo ora_java.jobject;
    pdfObject ora_java.jobject;
    pdf     varchar2(900);
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SEARCHSOAPCLIENT.new;
    SEARCHSOAPCLIENT.setUsername(JO,'weblogic');
    SEARCHSOAPCLIENT.setPassword(JO,'welcome1');
    pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,'1234',NULL);
    pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
    message(pdf);
    message(' ');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    :error := Exception_.toString(ex);
    END;When i run it from JDeveloper it works, this is a portion of java code the proxy web service has:
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class SearchSoapClient {
        private webservicesproxywebcontent.proxy.SearchSoap _port;
        public SearchSoapClient() throws Exception {
            ServiceFactory factory = ServiceFactory.newInstance();
            _port = ((webservicesproxywebcontent.proxy.Search)factory.loadService(webservicesproxywebcontent.proxy.Search.class)).getSearchSoap();
            this.setUsername("weblogic");
            this.setPassword("welcome1");
            System.out.println("callling from _port "+ _port.quickSearch("1234234", null));
         * @param args
        public static void main(String[] args) {
            try {
                webservicesproxywebcontent.proxy.SearchSoapClient myPort = new webservicesproxywebcontent.proxy.SearchSoapClient();
                System.out.println("calling " + myPort.getEndpoint());
            } catch (Exception ex) {
                ex.printStackTrace();
         * delegate all operations to the underlying implementation class.
        public QuickSearchResult quickSearch(String queryText, IdcPropertyList extraProps) throws java.rmi.RemoteException {
            return _port.quickSearch(queryText, extraProps);
        }Also the secured web service was generated from Webcenter Content 11.1.1.6 that is why it's a secured web service.
    Kind Regards
    Carlos

    Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.

  • Error when creating a new Organization in Deployment Manager

    I am trying to create a new Organization to an existing CRM environment and I keep getting the error below. The user deploying the new Organization has full control on all the security groups and Admin rights on the servers that Host SQL and CRM
    application. The CRM environment is 2011 on Premise that has been setup for IFD.
    We currently have 2 other organizations that are already in the environment, so the new org would be a third. I am more than glad to provide any firther information that I have to anyone that can help us resolve this issue. I also have a log file that I
    saved after the failed creation attempt. I can provide the contents of the log file to anyoen who can help. Its too long to add here.
    The section of the log file that shows the error is just above the screen shot. It looks like a deletion error. My queston is why is there an attempt at deleting anything if all I am trying to do is create a new Organization. This is not an import or
    upgrade.
    15:03:16|  Error| System.Exception: Action Microsoft.Crm.Tools.Admin.ImportDefaultDataAction failed. ---> Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: No object matched the query: delete from [ConnectionRoleObjectTypeCodeBase]
     OUTPUT DELETED.[ConnectionRoleObjectTypeCodeId], 3233
     into SubscriptionTrackingDeletedObject (ObjectId, ObjectTypeCode)
     where ([ConnectionRoleObjectTypeCodeId] = '952fda76-2f70-e411-bfa3-005056b10f95')

    Hi All,
    I am also getting similar error 
    Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: No object matched the query: 
    delete from [CustomerAddressBase]
    OUTPUT DELETED.[CustomerAddressId], 1071
    into SubscriptionTrackingDeletedObject (ObjectId, ObjectTypeCode)
    where ([CustomerAddressId] = 'fbb57633-a54f-e411-80ca-005056947598')
    I am getting this error when I am trying to delete all existing customer address and then try to create a new address for a customer.
    So its a kind of blanket update to all existing one replaced with new one.
    Please let me know if any one having solution to this 

  • HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome

    HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome. Extra large font sizes and weird formatting issues only when printing emails from Gmail within Chrome. No problems when printing the same email from Gmail+Internet Exolorer or Thunderbird. Using the IE Tab extension in Chrome prints the email correctly but the style of Gmail's message window is completely weird ie: formatting bar is spread out vertically instead of horizontally. I believe it is clear that this is an application specific issue between the HP LASERJET CP1525nw printer and Google Chrome + Gmail. This printing scenario does not occur when printing anything else or when printing via another printer. I would appreciate receiving any suggestions to solve this issue.
    OS: Windows 7 Ultimate x64
    Browser: Google Chrome 15
    HP Print driver: HP Universal Print Driver for Windows PCL6 v5.4.0
    Printer is connected by WiFi to 4 computers

    Hi AbZu, 
    You need to contact Google Chromes technical support as this is only an issue with Chrome. You have indicated that the printer functions correctly everywhere else. Check out the link below for Google Chrome technical support. Let me know if you need additional assistance?
    http://support.google.com/chrome/?hl=en
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Error when starting work item

    Hi
    We are having SRM5.0.
    Trying to create Contract. Workflow Without approval of contract(WS1400086)is activated and start conditions also no workflow activated.
    Contract is created and getting message Contract created.
    But when tried to release the contract it shows "Awaiting approval".
    In Workflow log (SWI1)it shows error."Error when starting work item xxxx".
    What could be the reason. Please let me know the solution if anyone of you come across such error.
    Thanks in advance
    Jagadish

    Masa
    It is maintained as General task already.
    It seems the workflow task WS14000085 does not have definition.
    When checked in SWDD for the above teask there are no steps defined for that workflow.
    SAP says that we need to define and action for workflow WS14000085.
    But what is the procedure to define the workflow.
    I presume this is the standard workflow and it should be defined by default when it comes along with the SRM package.
    Anyone of you know how to define the workflow and activate the same?
    Regards
    Jagadish

  • Error when starting parser: timeout during allocate / CPIC-CALL:'TfSAPCMRC'

    Hello experts.
    When I try to preview or refresh a Crystal Report document built on a BEx query I get the following error msg:
    Database connector error: BAPI Error #0. Error when starting parser: timeout during allocate / CPIC-CALL: 'TfSAPCMRCV'.
    We have done as suggested in "SAP Note 1032461 - MDX parser does not start", but without success.
    This is what we've tried so far:
    replaced the file "librfc32.dll" (in C:\Windows\System32 and C:\Windows\SysWOW64)  with the new version mentioned in Note 413708.
    tested the connection in SM59 - non successful
    tested the report query with transaction MDXTEST - non successful
    tried to start the mdxparser manually on server - non succesful, error msg: "The application failed to initialise.."
    We have the following config:
    MS server 2003 SP2 x64 ed.
    SAP logon 7.20
    MS SQL server 2005
    CR 2008
    new librfc32.dll version 7200.1.39.6461
    Any ideas on what to try next would be highly appreciated!
    Cheers, IngA

    Hi Ingo.
    We have only one application server.
    I registered the new version of the file C:\windows\SysWOW64\librfc32.dll with regsvr32.exe successfully. I've also tried to copy the new file to the same directory as the mdxsvr.exe-file is located, but it made no difference.
    Should I remove all other copies of librfc32.dll and only keep the one in folder C:\Windows\SysWOW64, or maybe register them all with regsvr32.exe?
    --IngA
    Edited by: Ingeborg Andreassen on Nov 5, 2010 10:36 AM

Maybe you are looking for

  • How to consider internal transfer movement for material aging Z report

    Hello Expert , we are developing Z repot for material ageing .       In this we are using BSIM table  but in our case internal transfer movement such as ( 411 ,412 ,413 ,etc.) create debit credit entry in BSIM for this reason value of material gettin

  • When I open a link in a pdf file downloaded by Foxfire, it uses Safari, not Foxfire, although I have designated Foxfire as my default browser

    When I download a pdf file with Foxfire and then click on a link therein, it calls upon Safari, not Foxfire, to get that link. This causes some complications. I have designated Foxfire as my default browser, so this should not happen. Is this a fault

  • PowerBook G4 Startup Issue

    Hi, I did look thorugh the posts, but I can't seem to see anything similar (usuall I guess). I closed the lid on my laptop this morning (had a DVD in the drive and some photoshop files open. When I got to work, I opened the lid and it decided to not

  • AS Java Stack as Add-in to ABAP Stack

    We are upgrading SRM 3.0 to 5.0. We will need to install JAVA stack as add-in to ABAP stack. SRM 5.0 need both ABAP and JAVA stack. We have one box for DEV and QA and they are installed as separate instance (dual instance). Can we install JAVA stack

  • New iMac Maya freeze

    My new iMac 20" 4GB memory - freeze every time when Maya starts. Was tested Maya Unlimited 8 and 2008, same result. Maya was started with or w/o Rosette result the same. Maya freeze computer when shows "Learning Movies" dialog. After reformat HD inst