FOTY0001: type error

Hi,
I have a case where I have to read a database table and in that table I have a field of long type (contains a xml payload). I have to parse the payload and assign it to another variable so that it updates in another table.
I am using the parseEscapedXML() and getting the following error..
<Faulthttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>ORABPEL-09500 XPath expression failed to execute. Error while processing xpath expression, the expression is "ora:parseEscapedXML(bpws:getVariableData('Invoke_CERSelect_OutputVariable','CERCollection','/ns3:CERCollection/ns3:CER/ns3:payload'))", the reason is FOTY0001: type error. Please verify the xpath query. </faultstring>
<detail>
<hostnamehttp://xml.apache.org/axis/>DEVRA</hostname>
</detail>
</Fault>
appreciate your help in this regard.
Thanks,
mamtha

check for "&" character in your string and change to "and". we figured out this causes problem by elimination:)

Similar Messages

  • Inconsistent FOTY0001: type error while  using translateFromNative

    I am getting FOTY0001: type error while using translateFromNative function in assign activity.
    This error happens only in the below scenarios:
    1. Create a BPEL process with file input adapter that accepts simple xml string as input and accepts files like input*.txt.
    2. Create a simple XSD(Fixed Length native XSD) and convert the simple string to XML using translateFromNative function and copy it into a variable.
    3. Switch off the process
    4. Put atleast 10 input*.txt files in the folder and switch on the process.
    This error doesn't happen when I put one file at time.. Even when I put multiple files, the error happens for few instances inconsitently.
    Here is our assign activity
    <assign name="Assign_1">
    <copy>
    <from variable="PlantChemMsg" part="Chemistry"
    query="/ns2:Chemistry/ns2:chemistryString"/>
    <to variable="tempChemistryString"/>
    </copy>
    <copy>
    <from expression="ora:translateFromNative(bpws:getVariableData('tempChemistryString'), 'ChemistryLegacy1.xsd', 'Root-Element')"/>
    <to variable="ChemistryOut" part="Root-Element"
    query="/ns8:Root-Element"/>
    </copy>
    </assign>
    Here is the error in group log:
    ORABPEL-09500
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')", the reason is FOTY0001: type error.
    Please verify the xpath query.
         at com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate(BPELXPathUtil.java:206)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:679)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:143)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3705)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1654)
    Any help would be appreciated. Thanks.
    -Sridhar

    James,
    Thanks & Sorry for the late reply.
    I used assign activity just because I have only one source and target element.
    This error happens even with transform activity.
    Also, all the input messages are same. So It is definitely not the issue with the input message.
    One observation I did is:
    The error doesn't occur when I use like below(Full Http url):
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'http://psc-d674943.hdq.uss.com:7777/orabpel/default/TestTranslateFromNativeError/1.0/ChemistryLegacy1.xsd
    ', 'Root-Element')
    But occurs when I use like below.
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')

  • BPEL instances invisisble - ORABPEL-05002 - reason is FOTY0001: type error.

    I have a BPEL process which gets initiated by messages from a JMS Queue. Version 1 of this same process works fine. But when I deploy a version 2 of the same process (which is compiling fine), it errors out. Strangely the instances are not appearing in the BPEL Console. JMS Messages also read and committed.
    When I take a look at log at <HOME>/opmn/logs, I could see the following error. I am not sure what is going wrong as I didnt change anything in XSL.
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:processXSLT('SiebelToFusion.xsl',bpws:getVariableData('SiebelProperty_InputVariable'))", the reason is FOTY0001: type error.
    Please verify the xpath query.
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
    at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
    at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
    at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    at java.lang.Thread.run(Thread.java:595)

    You might expect an error message on the receive of the called BPEL process, but it does not get that far as the transformation to the schema of the input variable already goes wrong.
    What I would do is make sure that you successfully can call the BPEL process using a tool like soapUI and compare the format of that message to the one your JMS queue is providing.
    Do you by any chance provide a message part of type string which actually contains XML?
    Jan

  • How do I fix the following error, it comes up every time I open a Firefox page; "type error: Components.classes[cid] is undefined" (JavaScript Application)

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    how do I fix the following error, it comes up every time I open a Firefox page; "type error: Components.classes[cid] is undefined" (JavaScript Application)
    == This happened
    ==
    Every time Firefox opened
    == a few months ago
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name Firefox
    Version 3.6.3
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Adblock Plus 1.2 true
    Adobe DLM (powered by getPlus(R)) 1,6,2,49 true
    AVG Safe Search 9.0.0.825 true {3f963a5b-e555-4543-90e2-c3908898db71}
    AVG Security Toolbar 4.504.019.002 true avg@igeared
    Fasterfox 2.0.0 false
    Forecastfox 0.9.10.2 true {0538E3E3-7E9B-4d49-8831-A227C80A7AD3}
    Java Console 6.0.05 true
    Java Console 6.0.03 true
    Java Console 6.0.07 true
    Java Console 6.0.11 true
    Java Console 6.0.13 true
    Java Console 6.0.15 true
    Java Console 6.0.17 true
    Java Quick Starter 1.0 true [email protected]
    Microsoft .NET Framework Assistant 1.2.1 true {20a82645-c095-46ed-80e3-08825760534b}
    NoScript 1.9.9.77 true {73a6fe31-595d-460b-a920-fcc0f8843232}
    Java Console 6.0.19 true
    Java Console 6.0.20 true
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar 0
    browser.history_expire_days 0
    browser.history_expire_days.mirror 180
    browser.places.importBookmarksHTML false
    browser.places.importDefaults false
    browser.places.leftPaneFolderId -1
    browser.places.migratePostDataAnnotations false
    browser.places.smartBookmarksVersion 2
    browser.places.updateRecentTagsUri false
    browser.startup.homepage_override.mstone rv:1.9.2.3
    extensions.lastAppVersion 3.6.3
    general.useragent.extra.microsoftdotnet ( .NET CLR 3.5.30729)
    keyword.URL http://au.yhs.search.yahoo.com/avg/search?fr=yhs-avg&type=yahoo_avg_hs2-tb-web_au&p=
    network.cookie.prefsMigrated true
    places.last_vacuum 1272511429
    print.print_bgcolor false
    print.print_bgimages false
    print.print_command
    print.print_downloadfonts true
    print.print_evenpages true
    print.print_in_color true
    print.print_margin_bottom 0.5
    print.print_margin_left 0.5
    print.print_margin_right 0.5
    print.print_margin_top 0.5
    print.print_oddpages true
    print.print_orientation 0
    print.print_pagedelay 500
    print.print_paper_data 0
    print.print_paper_height 11.00
    print.print_paper_size -134744073
    print.print_paper_size_type 1
    print.print_paper_size_unit 0
    print.print_paper_width 8.50
    print.print_printer Lexmark 4200 Series
    print.print_reversed false
    print.print_scaling 1.00
    print.print_shrink_to_fit true
    print.print_to_file false
    print.printer_Lexmark_4200_Series.print_bgcolor false
    print.printer_Lexmark_4200_Series.print_bgimages false
    print.printer_Lexmark_4200_Series.print_command
    print.printer_Lexmark_4200_Series.print_downloadfonts true
    print.printer_Lexmark_4200_Series.print_edge_bottom 0
    print.printer_Lexmark_4200_Series.print_edge_left 0
    print.printer_Lexmark_4200_Series.print_edge_right 0
    print.printer_Lexmark_4200_Series.print_edge_top 0
    print.printer_Lexmark_4200_Series.print_evenpages true
    print.printer_Lexmark_4200_Series.print_footercenter
    print.printer_Lexmark_4200_Series.print_footerleft &PT
    print.printer_Lexmark_4200_Series.print_footerright &D
    print.printer_Lexmark_4200_Series.print_headercenter
    print.printer_Lexmark_4200_Series.print_headerleft &T
    print.printer_Lexmark_4200_Series.print_headerright &U
    print.printer_Lexmark_4200_Series.print_in_color true
    print.printer_Lexmark_4200_Series.print_margin_bottom 0.5
    print.printer_Lexmark_4200_Series.print_margin_left 0.5
    print.printer_Lexmark_4200_Series.print_margin_right 0.5
    print.printer_Lexmark_4200_Series.print_margin_top 0.5
    print.printer_Lexmark_4200_Series.print_oddpages true
    print.printer_Lexmark_4200_Series.print_orientation 0
    print.printer_Lexmark_4200_Series.print_pagedelay 500
    print.printer_Lexmark_4200_Series.print_paper_data 1
    print.printer_Lexmark_4200_Series.print_paper_height 11.00
    print.printer_Lexmark_4200_Series.print_paper_size -134744073
    print.printer_Lexmark_4200_Series.print_paper_size_type 0
    print.printer_Lexmark_4200_Series.print_paper_size_unit 1
    print.printer_Lexmark_4200_Series.print_paper_width 8.50
    print.printer_Lexmark_4200_Series.print_reversed false
    print.printer_Lexmark_4200_Series.print_scaling 1.00
    print.printer_Lexmark_4200_Series.print_shrink_to_fit true
    print.printer_Lexmark_4200_Series.print_to_file false
    print.printer_Lexmark_4200_Series.print_unwriteable_margin_bottom 0
    print.printer_Lexmark_4200_Series.print_unwriteable_margin_left 0
    print.printer_Lexmark_4200_Series.print_unwriteable_margin_right 0
    print.printer_Lexmark_4200_Series.print_unwriteable_margin_top 0
    privacy.clearOnShutdown.cookies false
    privacy.clearOnShutdown.offlineApps true
    privacy.cpd.cookies false
    privacy.item.offlineApps true
    privacy.sanitize.migrateFx3Prefs true
    privacy.sanitize.timeSpan 3
    security.warn_viewing_mixed false
    security.warn_viewing_mixed.show_once false
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-getplusplusadobe16249
    *Office Plugin for Netscape Navigator
    *Adobe PDF Plug-In For Firefox and Netscape
    *Default Plug-in
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Shockwave Flash 10.0 r45
    *iTunes Detector Plug-in
    *Garmin Communicator Plug-In 2.8.1.0
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Java(TM) Platform SE binary
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    How do I fix this problem ...javascript (cid) applications.

  • Downloading 4.0 onto XP it takes a long conection process, with boxes on unresponsive script and a java scipt app saying type error and is all very annoying so what can I do I want the old firefox back a

    I downloaded Firefox 4.0 replacing an earlier Firefox version. I have XP on my computer. When I now click on the Firefox icon after a time a window saying Unresponsive script and underneath script chrome etc comes up. I then press stop script and another window comes up Java Script application and type error. Eventually I get on to the internet but it's all very frustrating. I wish I had ignored the request to download 4.0
    Please help

    I can assure you that the sympton is indeed identical. For as the computer got worse, eventually it refused to start up and made 3 beeps. It has done this before, but today more times than before (just like when it first had this problem). Where-ever you go on the internet, it will tell you that the 3 beeps suggest the RAM is at fault. So, the same 3 beeps, means the same problem, which is the RAM.
    With that in mind, I re-ask my question with the same reasoning and justification; am I still covered under warranty? (Reasoning/Justification: Considering the original problem was not entirely fixed, though something else was to make the MacBook Pro last a little longer before the reoccurance of this problem).

  • "Schema validation found non-data type errors" error when passing a string value to date field in infopath

    Hi,
    I have an infopath web brower enabled form. In the form i have a date field.
    I am passing the data from the database to that field using the C# code.
    But, as the field from database is coming as string, i am getting an error, and i am not able to assign the value.
    I get the date value from database as "3/25/2011 12:00:00 AM"
    I used the below code:
    [CODE]
    if (objInfopathFormcData.myRecievedDate != null)
      myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager).SetValue(objInfopathFormcData.myRecievedDate);
    [/CODE]
    I am getting the error as "Schema validation found non-data type errors".
    How to set the value for a date field in Infopath.
    Thank you

    HI,
    I fixed it:
    Below code is used to fix:
    [CODE]
    XPathNavigator xfield = null;
    DateTime dtmyRecievedDate;
    dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
    if (objFormcData.FcCompletionDate != null)
    xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
    DeleteNil(xfield);
    xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
    // method to delete xsi:nil
    private void DeleteNil(XPathNavigator nav1)
    if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
       nav1.DeleteSelf();
    [/CODE]
    Thank you

  • Help - Editor does not contain a main type error (Eclipse)

    Hello,
    I'm trying to run a Text input program out of the Eclipse program and I keep getting this Editor does not contain a main type error - can someone help me
    here's the code
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.text.DecimalFormat;
    import java.util.Scanner;
    import uwcse.io.Input;
    public class FileInputExample {
         public static void main(String[] args) {
              // Create a Scanner to read the input file
              String fileName = new Input().readString("Input file name? ");
              System.out.println();
              Scanner scan;
              try {
                   scan = new Scanner(new File(fileName));
              } catch (FileNotFoundException e) {
                   System.out.println(fileName + " doesn't exist!");
                   return;
              // Read the file and count the number of occurences of A, B, ...
              int[] count = new int[26];
              while (scan.hasNextLine()) {
                   String line = scan.nextLine();
                   line = line.toLowerCase();
                   for (int i = 0; i < line.length(); i++) {
                        char c = line.charAt(i);
                        if (c >= 'a' && c <= 'z') {
                             count[c - 'a']++;
              scan.close();
              int length = 0;
              for (int i = 0; i < count.length; i++) {
                   length += count;
              // Display the statistics (as an histogram)
              DecimalFormat df = new DecimalFormat("0.00");
              for (int i = 0; i < count.length && length > 0; i++) {
                   double percent = count[i] * 100.0 / length;
                   String display = "" + (char) ('a' + i);
                   display += "(" + df.format(percent) + "%):\t";
                   for (int j = 1; j <= Math.round(percent); j++) {
                        display += "X";
                   System.out.println(display);
    }Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    First, note that your program uses a non-standard class, "uwcse.io.Input" which is not available to us. Normally that is a show stopper - in this case, it's not, as I was able to eliminate its use.
    Your program runs fine, so the error is an Eclipse error unrelated to Java.
    You need to ask for help at an Eclipse support site, not here, as these forums are Java language forums.

  • Muse JS Assert: Error calling selector function:Type error: Object has no method Muse Menu

    When exporting html and viewing locally we receive the following error... This error disappears after removing menu from top of page. This error does not occur when viewed on Outdoors360.businesscatalyst.com (our temporary site)
    Muse JS Assert: Error calling selector function:Type error: Object has no method Muse Menu
    Any ideas??

    I fix the problem.
    I have carefully reviewed JAVASCRIPT files and I could see that these are not a major influence within the site, only are reference code and utilities of the same application.
    By removing these files nothing has stopped working, I thought I would have some error in the sliders, or opacities, but no, nothing happened.
    DELETE IT
    FRANCISCO CATALDO DISEÑADOR GRÁFICO

  • RFC call from Delphi (Bad Variant Type error)

    Well, I'm trying to call an RFC function from Delphi via ActiveX objects..
    I have Codegear 2009 installed and it works without any problem..
    But on another system with Delphi7 installed when I ran same code it gives "Bad Variant Type" error when assigning SapLogonControl's connection object to SapFunction's connection parameter... Both computers have same SAP installation. And on both systems ActiveX objects imported correctly on Delphi.
    Here is the code:
    unit logon1;
    interface
    uses
    Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    ExtCtrls, OleCtrls, StdCtrls, SAPFunctionsOCX_TLB,
    Grids, SAPLogonCtrl_TLB;
    type
      TForm1 = class(TForm)
      SAPFunctions1: TSAPFunctions;
      Button2: TButton;
      Grid: TStringGrid;
      Edit1: TEdit;
      Edit2: TEdit;
      Label1: TLabel;
      Label2: TLabel;
      SAPLogonControl1: TSAPLogonControl;
    procedure Button2Click(Sender: TObject);
    private
    { Private-Deklarationen }
    public
    { Public-Deklarationen }
    end;
    var
    Form1 : TForm1 ;
    Table, Funct, Connection : VARIANT ;
    implementation
    {$R *.DFM}
    procedure TForm1.Button2Click(Sender: TObject);
    begin
      Connection                  := SAPLogoncontrol1.newConnection;
      Connection.User             := 'testuser';
      Connection.System           := 'CRD';
      Connection.Client           := '300';
      Connection.ApplicationServer:= '10.1.1.10';
      Connection.SystemNumber     := '00';
      Connection.Password         := 'testpass';
      Connection.Language         := 'EN' ;
      if Connection.LogOn(0,true) = true then
      (* parameter "true" = SilentLogOn *)
      begin
        (* assign the existing connection to the *)
        (* component SAPFunctions1                *)
        SAPFunctions1.Connection := Connection; // It gives error on this line...
        Funct := SAPFunctions1.add('ZGIS_TEST_FUNC');
      end;
    end;
    end.
    As I said while Codegear 2009 runs this code without any problem, Delphi 7 crashes on that assignment.. Also I tried outside Delphi, and the file compiled with Codegear works on both systems while the file compiled with Delphi 7 again crashes on buth systems...
    Is there a problem with Delphi 7? Should I use at least Delphi 8 or something for compiling?

    Hi Hakan,
    You must use Non-Unicode RFC library for Delphi 7.0.
    ( Bende Delphi 7.0 kullaniyorum. Ayni hatayi aldim. Unicode library kullanmistim. Kaldirip Non-Unicode olani kullandim. Su an hata yok. RFC cagirabiliyorum. )
    Mustafa Yalcin

  • How do I get rid of the alert "(Java Scriprt Application)Type error: Text is undefined   I get it when I get a new Internet page using Firefow

    How do I get rid of the alert "(Java Scriprt Application)Type error: Text is undefined>  I get it when I get a new Internet page using Firefow

    I do not want to half to install things into my PC that i do not trust! I just want this gone and like i said Firefox should of given us the choice to add this and not forced us, because if there is no actual way to remove it then il be forced to remove Firefox till they either remove it or allow us to remove it!

  • When I click on firefox to open in my Mac, an error shows up: plug-in object Type error: id is undefined. When I click on the OK button, firefox opens. This never happened in FF 3. What is this?

    Also when I am in a site, such as an account, and click on a highlighted link, I get another error, {Javascript Application] can't create mcafee plug-in object: Type Error: components. classes [cid] is undefined. The only mcafee I had on my computer was the secure search and I uninstalled it, but I still get this message. When I click on the OK button with the error message, then the link opens up.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • How do i get rid of type error null is an object on my iphone ? It keeps popping up on my yahoo, please help ?

    How do i get rid of type error null is an object on my iphone ? It keeps popping up on my yahoo, its driving me mad, please help.

    That's probably a Javascript error in what Yahoo is producing. Contact Yahoo and inform them of the problem.

  • Exception --- Value can not be converted to requested type.Error Code: 0

    Inside my query, I try to use function,like
    Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
    sometimes query works fine and sometimes got following exception, can anyone here help me out..
    Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
    Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
    Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
         at com.cad.report.data.DocumentReturnedDataGenImpl.loadData(DocumentReturnedDataGenImpl.java:130)
         at com.cad.report.data.AbstractDataGen.getReport(AbstractDataGen.java:96)
         at com.cad.report.command.ProcessReportRequestOnMessage.run(ProcessReportRequestOnMessage.java:74)
         at com.cad.registration.command.AbstractCommand.execute(AbstractCommand.java:106)
         at com.cad.flow.core.Run.run(Unknown Source)
         at com.cad.flow.core.WorkflowComponent.run(Unknown Source)
         at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:238)
         at com.cad.flow.ejbs.WorkflowManagerBean.execute(WorkflowManagerBean.java:135)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl.execute(WorkflowManager_uh667k_EOImpl.java:132)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:335)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
         at com.cad.flow.ejbs.WorkflowManager_uh667k_EOImpl_1001_WLStub.execute(Unknown Source)
         at com.cad.util.WorkflowProxy.runWorkflow(WorkflowProxy.java:128)
         at com.cad.kbd.messenger.listener.mdb.ReportRequestMDB.onMessage(ReportRequestMDB.java:84)
         at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
         at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
         at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:3964)
         at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070620)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.Error Code: 0
    Call:SELECT COUNT(*), to_char(REG_DATE, 'YYYY/MM/DD') FROM SYSTEM_DETAIL WHERE ((REG_DATE BETWEEN {ts '2008-08-10 00:00:00.0'} AND {ts '2008-09-30 23:59:59.0'}) AND (GEOGRAPHIC_ID = 104)) GROUP BY to_char(REG_DATE, 'YYYY/MM/DD') ORDER BY to_char(REG_DATE, 'YYYY/MM/DD') ASC
    Query:ReportQuery(com.cad.registration.RegistrationDetailImpl)
         at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:282)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:988)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:780)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:562)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:441)
         at oracle.toplink.threetier.ServerSession.executeCall(ServerSession.java:457)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:117)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:103)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:174)
         at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:481)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:825)
         at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllReportQueryRows(ExpressionQueryMechanism.java:791)
         at oracle.toplink.queryframework.ReportQuery.executeDatabaseQuery(ReportQuery.java:518)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:620)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:451)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2089)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:965)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:878)
         at com.cad.persistence.toplink.TopLinkPersistenceBrokerImpl.executeQuery(TopLinkPersistenceBrokerImpl.java:420)
         at com.cad.report.data.DocumentSys.getSummitedDocumentNumber(DocumentSys.java:332)
         at com.cad.report.data.DocumentSys.loadData(DocumentSys.java:110)
         ... 24 more
    Caused by: java.sql.SQLException: [BEA][Oracle JDBC Driver]Value can not be converted to requested type.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BaseData.getTimestamp(Unknown Source)
         at weblogic.jdbc.base.BaseResultSet.getTimestamp(Unknown Source)
         at weblogic.jdbc.wrapper.ResultSet_weblogic_jdbc_base_BaseResultSet.getTimestamp(Unknown Source)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObjectThroughOptimizedDataConversion(DatabaseAccessor.java:1038)
         at oracle.toplink.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:942)
         ... 45 more

    Here is my code
    ExpressionBuilder builder = new ExpressionBuilder();
    ReportQuery query = new ReportQuery(RegistrationDetailImpl.class, builder);
    query.addArgument("startTime");
    query.addArgument("endTime");
    query.addArgument("lro");
    Expression lroCol = builder.get("lro");
    Expression regDateCol = builder.get(
    QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_NUMBER_COL).get(
    QueryConstants.RegistrationDetailQueryConstants.REGISTRATION_DATE_COL);
    Expression formattedRegDateCol = regDateCol.getFunction("to_char", "YYYY/MM/DD");
    Expression timeExp = regDateCol.between(builder.getParameter("startTime"), builder
    .getParameter("endTime"));
    Expression lroExp = lroCol.equal(builder.getParameter("lro"));
    query.setSelectionCriteria(timeExp.and(lroExp));
    query.addCount();
    query.addAttribute("regDate", formattedRegDateCol);
    query.addGrouping(formattedRegDateCol);
    query.addOrdering(formattedRegDateCol.ascending());
    descriptor.getDescriptorQueryManager().addQuery("testquery", query);

  • JDBC/SQLJ Team - Please respond - invalid column type error

    Hi, I have posted several messages regarding problems using SQL/J to call out a stored packaged function that returns a ref cursor, but haven't gotten one response. I have yet a new problem with it. JDBC team, please acknowledge!
    I change the way I obtain a connection to the database from using the Oracle.connect along with a properties file, to now using a DataSource connection pool. As a result, I am constantly getting a SQLException: Invalid column type error. If I change the call to the stored function to a query in the SQLJ code, it's fine. What's going on??
    A previous message I wrote stated I was constantly getting a "closed statement" error when I tried to call the next method of the iterator. I corrected this by removing the finally clause in the generated JDBC code that released the execution context.
    Again, the environment is JDK1.2.2, SQLJ 8.1.6 SDK, JDBC 8.1.6 thin, all on NT.
    Thanks
    David

    I am getting the same error message - Invalid Column Type. I am creating a Default Context by calling Oracle.getConnection(connection) passing in an instance of my own connection class that basically delegates to the OracleConnection. We wrapped the Connection so that we could trap and recover from lost database connections.
    My environment is Solaris 2.6, Oracle 7.3.4 with Sqlj 8.0.5.
    Thanks!
    [email protected]
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David Christopher ([email protected]):
    Hi, I have posted several messages regarding problems using SQL/J to call out a stored packaged function that returns a ref cursor, but haven't gotten one response. I have yet a new problem with it. JDBC team, please acknowledge!
    I change the way I obtain a connection to the database from using the Oracle.connect along with a properties file, to now using a DataSource connection pool. As a result, I am constantly getting a SQLException: Invalid column type error. If I change the call to the stored function to a query in the SQLJ code, it's fine. What's going on??
    A previous message I wrote stated I was constantly getting a "closed statement" error when I tried to call the next method of the iterator. I corrected this by removing the finally clause in the generated JDBC code that released the execution context.
    Again, the environment is JDK1.2.2, SQLJ 8.1.6 SDK, JDBC 8.1.6 thin, all on NT.
    Thanks
    David<HR></BLOCKQUOTE>
    null

  • Incompatibe type error can some please help stuck in rut

    found : double
    required: javax.swing.JTextField
    TotalIncomeField = (num1 + num2 + num3);
    try {
    double num1 = Double.parseDouble(LoansField.getText());
    double num2 = Double.parseDouble(WagesField.getText());
    double num3 = Double.parseDouble(OtherField.getText());
    double num4 = Double.parseDouble(RentField.getText());
    double num5 = Double.parseDouble(FoodField.getText());
    double num6 = Double.parseDouble(OtherField2.getText());
    String op1 = (String)LoanComboBox.getSelectedItem();
    String op2 = (String)WagesComboBox.getSelectedItem();
    String op3 = (String)OtherComboBox.getSelectedItem();
    String op4 = (String)RentComboBox.getSelectedItem();
    String op5 = (String)FoodComboBox.getSelectedItem();
    String op6 = (String)Other2ComboBox.getSelectedItem();
    //Below I am adding the loans, wages & other field so that it total correctly incompatible type error found below (1).
    (1) TotalIncomeField = (num1 + num2 + num3);
    (2) TotalSpendingField = (num4 + num5 + num6);
    //Here above I am adding the rent, food & other field so that it total correctly incompatible type error found above (2)
    double result = 0;
    if (op1.equals("Weekly"))
    result = num1 * 4.3333333;
    else if (op1.equals("Monthly"))
    result = num1;
    else if (op1.equals("Yearly"))
    result = num1 / 12;
    else if
    (op2.equals("Weekly"))
    result = num2 * 4.3333333;
    else if (op2.equals("Monthly"))
    result = num2;
    else if (op2.equals("Yearly"))
    result = num2 / 12;
    else if
    (op3.equals("Weekly"))
    result = num3 * 4.3333333;
    else if (op3.equals("Monthly"))
    result = num3;
    else if (op3.equals("Yearly"))
    result = num3 / 12;
    TotalIncomeField.setText(String.format("%.2f",result));
    if
    (op4.equals("Weekly"))
    result = num4 * 4.3333333;
    else if (op4.equals("Monthly"))
    result = num4;
    else if (op4.equals("Yearly"))
    result = num4 / 12;
    else if
    (op5.equals("Weekly"))
    result = num5 * 4.3333333;
    else if (op5.equals("Monthly"))
    result = num5;
    else if (op5.equals("Yearly"))
    result = num5 / 12;
    else if
    (op6.equals("Weekly"))
    result = num6 * 4.3333333;
    else if (op6.equals("Monthly"))
    result = num6;
    else if (op6.equals("Yearly"))
    result = num6 / 12;
    TotalSpendingField.setText(String.format("%.2f",result));
    } catch (NumberFormatException ex) {
    }

    TotalIncomeField is a JTextField object reference, not a numeric value holder. What you may want is to put the string representation of the calculation into the CONTENTS of the JTextField. There is a setText method for that.
    TotalIncomeField.setText(theText);
    I'll assume you can work out how to turn the calculation into a string representing that calculation.
    SIGH SIGH SIGH
    Thanks for CROSSPOSTING this, you dolt.
    http://forum.java.sun.com/thread.jspa?threadID=780703

Maybe you are looking for