Generic oracle eway code generation error in Java caps 5.1.3

Hi,
I'm using an oracle eway for adding records to a table. I have a prepared statement in the otd. When I try to build the project I'm getting the following error. Could any one let me know how this problem can be fixed?
com.stc.codegen.framework.model.CodeGenException: Generic Oracle eway code generation error(ERROR_CODEGEN_GENERIC_CODELET_GENERAL)
     at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateFiles(OracleEWayCodeletFactory.java:1860)
     at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.processCodelets(CodeGenFrameworkImpl.java:640)
     at com.stc.codegen.frameworkImpl.model.CodeGenFrameworkImpl.process(CodeGenFrameworkImpl.java:1544)
     at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:405)
     at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.process(DeploymentVisitorImpl.java:308)
     at com.stc.codegen.frameworkImpl.model.DeploymentVisitorImpl.traverseDeployment(DeploymentVisitorImpl.java:268)
     at com.stc.codegen.driver.module.DeploymentBuildAction.loadCodeGen(DeploymentBuildAction.java:923)
     at com.stc.codegen.driver.module.DeploymentBuildAction.access$1000(DeploymentBuildAction.java:174)
     at com.stc.codegen.driver.module.DeploymentBuildAction$1.run(DeploymentBuildAction.java:599)
     at org.openide.util.Task.run(Task.java:136)
     at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:599)
Caused by: com.stc.codegen.framework.model.CodeGenException: Exception when generating OTD code ...Exception: javaClass: Oracle_std_otdOTD: Exception when invoke DB Codegen Task...Exception: Invalid parameter type: Class : [Std_insert_PreapredStat] Object: [Param1] Param Type : [DECIMAL].(ERROR_CODEGEN_DB)(ERROR_CREATE_OTD)
     at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateOtdJarFile(OracleEWayCodeletFactory.java:2045)
     at com.stc.oracle.codegen.OracleEWayCodeletFactory$OracleEWayCodelet.generateFiles(OracleEWayCodeletFactory.java:1756)
     ... 10 more
Regards,
Abdul

hi...
i too getting same problem..how did u reslove this...
please help me out...
thanks in advance
KK

Similar Messages

  • Code Generation Error - SUP 2.2 / SUW 2.2

    Hi,
    I have formatted my laptop PC and re-installed Sybase Unwired Workspace 2.2. After the installation I get Code Generation Error message:
    Before Code Generarion attemp the Java Build Path / Source tab is empty and after the Code Generation the error specified above is generated and the following path is added to the Java Build Path / Source tab:
    XXX/Generated Code/src (missing)
    I cannot resolve the problem. Does anybody has idea about the problem?
    thanks,

    Hi,
    1. I created a new model having only one MBO and generated code successfuly.
    2. The result is the same after deletion of "Generated Code" and creating new folder
    3. The result is the same after generation code to another folder.
    nothing has changed but I discovered additional information in the "workspace\.metadata\.log" file:
    com.sybase.uep.tooling.codegeneration.coordinator.CoordinatorException: Member not found: inverseClass on object com.sybase.afx.compiler.AttributeDef@2a3881
      at com.sybase.uep.tooling.codegeneration.coordinator.impl.ClientObjectAPICoordinator.sendRequest(ClientObjectAPICoordinator.java:115)
      at com.sybase.uep.tooling.codegeneration.ui.CodeGenerationJob.sendRequest(CodeGenerationJob.java:200)
      at com.sybase.uep.tooling.codegeneration.ui.CodeGenerationJob.processTasks(CodeGenerationJob.java:172)
      at com.sybase.uep.tooling.codegeneration.ui.CodeGenerationJob.runInWorkspace(CodeGenerationJob.java:123)
      at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: com.sybase.uep.tooling.codegeneration.clientobjectapi.ClientObjectAPIException: Member not found: inverseClass on object com.sybase.afx.compiler.AttributeDef@2a3881
      at com.sybase.uep.tooling.codegeneration.coordinator.CoordinatorException.<init>(CoordinatorException.java:27)
      ... 6 more
    Caused by: com.sybase.modeling.templatej.runtime.adapter.impl.NoSuchMemberException: Member not found: inverseClass on object com.sybase.afx.compiler.AttributeDef@2a3881
      at com.sybase.uep.tooling.codegeneration.CodeGenerationException.<init>(CodeGenerationException.java:26)
      at com.sybase.uep.tooling.codegeneration.clientobjectapi.ClientObjectAPIException.<init>(ClientObjectAPIException.java:27)
      at com.sybase.uep.tooling.codegeneration.clientobjectapi.impl.ClientObjectAPIDelegator.generate(ClientObjectAPIDelegator.java:155)
      at com.sybase.uep.tooling.codegeneration.coordinator.impl.ClientObjectAPICoordinator.sendRequest(ClientObjectAPICoordinator.java:86)
      ... 5 more

  • Code generation error when implementing an accumalator

    Hi everyone,
    I am implementing an accumalator which implements X = X + Y where X and Y are memories of length say 5. Initially I write 5 values into X and Y using a for loop. Then I perform the addition inside a single cycle timed loop and store the results in a temporary buffer(another memory) again of length 5. In another single cycle timed loop, I copy the data from the temporary buffer to memory X.
    I changed the arbitration option to never arbitrate for X, but I get a code generation error because of arbitration. Could anybody please tell how to solve this problem.
    Regards,
    Prashant
    Solved!
    Go to Solution.

    Hi NitzZ
    I figured out a way to solve the problem. I chose the "Never Arbitrate" option for all memories and replaced the for loop with a timed loop. Now there are no errors.
    Thanks,
    Prashant

  • NI Motion Assistant LabVIEW Code Generation Error

    Hello, the following is my current setup:
    NI PCI-7334 motion control board
    NI UMI 7774 splitter board
    3 x NI P70530 Drives
    3 x NI CTP12ELF10MAA00 Stepper Motors
    3 x Power supply units for drives
    LabVIEW 2010
    NI Motion Assistant 2.6
    Motion and Automation Explorer 4.7
    I have built a three axis motion system that I am trying to configure with labview. After verifying that everything was set up correctly, I opened MAX, updated the firmware to my motion control board, and intitialized the controller. Since then, I have created many basic programs using the Motion Assistant Software to test the movement of my device. Everything works fine while using the Motion Assistant software (I have three axis movement, multidirectional control, and can perform various straight line and arc moves). My problems begin when I try to use the code generation feature.
    When trying to use the code generation feature to output a labview diagram, I run into a problem where a dialog box pops up and says "Find the vi named ...."
    Some examples of the names that come up are: Configure Vector Space.flx, Vector Space To Control.flx, Motion Error Handler.flx.
    To be clear the program in Motion Assistant that I am trying to export to LabVIEW code is composed of two individual steps. One that tells X,Y, and Z motors to move forward 25 revolutions, and one step that tells them to move backwards 25 revolutions.
    I have made many other programs in Motion Assistant that run fine, but I always receive similar errors when trying to use the code generation feature to export to LabVIEW. Is there something that I can do to solve my problem?
    Thank you for your help.

    Hi Joe,
    I am using Ni-Motion Assistant 2.6, Ni-Motion 8.1, and Motion and Automated Explorer version 4.7.
    The code I posted is supposed to tell Axis 1 to move 40 revolutions at 400 rpm. It works fine in Ni-Motion Assistant but when I try to generate a LabVIEW diagram I receive the following error, "Find the VI named 'Motion Error Handler.flx'". I have had it search my directory, as well as the disk that I installed both LabVIEW and Ni-Motion but no luck. Thanks for your help.
    Attachments:
    1111.vi ‏9 KB
    1 axis movement.zip ‏8 KB

  • Fpga code generation error after updating from 8.5.0 to 8.5.1

    Hi All,
    I have a FPGA-VI which was compiled in LV 8.5.0 without errors. After I updated to 8.5.1 the Code Generation stops, telling me the clock domain is not supported for write FPGA I/O node (see attachment).  Also I attached a picture of a simplified FPGA-VI which brings up the same error.
    I use a PXI-7833R connected to a cRIO-9151 R Series Expansion Chassis with a NI-9421 modul (8-ch DI, 24V) installed in it.
    My original FPGA-Code has a theoretical maximum of 22MHz, so I can't change the clock domain to 40MHz.
    Do you have any suggestion how to get the VI compiled?
    Uli
    Solved!
    Go to Solution.
    Attachments:
    ErrorMessage1.jpg ‏30 KB
    FPGA-VI1.jpg ‏17 KB

    Hi Ruhmann, hi Basset Hound,
    thank you for your reply and giving me a better insight in things.
    I started my VI with 40MHz clock domain. The Vi got bigger, some more logic here and some more code there. Finaly the compiler couldn't satisfy the timing any more. Instead of optimising the code, I reduced the clock domain.
    Until your post I didn't realise I use CompactRIO I/O. Is There a difference to (let me call it) "direct R-Series I/O"?
    I need the Expansion Chassis (Connector 1), the 9421 (8-ch DI) and 94?? (8-ch DO) to connect 24V logic to the FPGA. Additionally I have two SCB-68 (Connector 2+3) for 5V logic (DI, DO, A/B linear position measurement, pulse generation) and some analog input. All code in 1 VI, but distributed in 3 loops.
    To change the clock domain back to 40MHz, I have to optimise my code . Well, the code is sloppy , so optimising is OK .
    To tell the hole story:
    After updating to 8.5.1, my first contact to NI was by phone. The engineer asked for the Code, the project and the hardware.
    It took a while for me to put the information in an email. Meanwhile engineer the found a paper with the solution I
    mentioned in my second post and send it to me, before looking at my code. The paper said someting about "tightend timing constraints",
    "safe communication" and "multiple DMA target to host transfer". Not exactly what I was doing, but I reinstalled
     RIO 2.3.1 and ... compile successful.
    @ Basset:
    The simple VI (picture) in my first post reproducese the issue exactly.
    I'm not at work any more, so I can't provide the full code or the SRQ# until tuesday (holiday on monday ).
    FYI I'm located in Germany, so I called the german NI support.
    Uli

  • Code generation in Sun Java Studio enterprise edition 7.0

    I went thru the product tour of Java studio enterpise edition 7.0
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/presentations/launch_jse7_overview.html
    It says that it will generate code from UML documentation. After that can we use drag and drop feature of studio.
    Thanks
    das

    Please review UML Modeling in Sun Java Studio Enterprise Webinar's materials to get more information about it:
    http://developers.sun.com/prodtech/javatools/jsenterprise/reference/presentations/uml.html

  • Apparent code generation error in AIR 16 AOT

    I have a fairly large project that seems to run well under AIR 16 except for a library that is throwing an error.  The library is D.eval-1.1.swc. D.eval is a library for simulating the eval function of AS2 in AS3.   Our program uses it for runtime scripting much like LUA.   I have reduced the problem to a very simple program that shows the error.
    The program is:
    import flash.display.MovieClip;
    import r1.deval.D;
    public class testEval extends MovieClip {
    public function testEval() {
    var value:String = "10==10";
    try {
    var result:Boolean = D.evalToBoolean(value);           
    // evaluate conditional
    } catch (e:Error) {
    trace("testEval:  caught error from D.evalToBoolean");
    trace("testEval:  error = " + e);
    trace("testEval:  stack = " + e.getStackTrace());
    trace("testEval:  result = " + result);
    When compiled under AIR 14 for IOS (or AIR16 for the desktop debugger) the output is the expected:
    testEval:  result = true
    When compiled under AIR 16 for IOS, this is the result:
    testEval:  caught error from D.evalToBoolean
    testEval:  error = TypeError: Error #1009: Cannot access a property or method of a null object reference.
    testEval:  stack = TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at r1.deval.rt::Env$/idToMessage()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\rt\Env .as:286]
        at r1.deval.rt::Env$/getMessage()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\rt\Env. as:273]
        at r1.deval.rt::Env$/getMessage()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at r1.deval.rt::Env$/reportError()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\rt\Env .as:264]
        at TokenStream$/reportError()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\parser\Toke nStream.as:1162]
        at TokenStream/getToken()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\parser\TokenStr eam.as:506]
        at r1.deval.parser::ExprParser/peekToken()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deva l\parser\ExprParser.as:59]
        at r1.deval.parser::BaseParser/parseProgram()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\d eval\parser\BaseParser.as:119]
        at r1.deval::D$/parseProgram()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\D.as:369]
        at r1.deval::D$/eval()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\D.as:299]
        at r1.deval::D$/evalToBoolean()[H:\p4_workspaces\r1\riaone\r1lib\src-priv\r1\deval\D.as:357]
        at com.toolwire.Test_Files::testEval()[C:\Toolwire\ToolwireSVN\src\com\toolwire\Test_Files\t estEval.as:14]
        at com.toolwire.Test_Files::testEval()
    testEval:  result = false
    I looked into this a little bit. I decompiled the library with JPEXS.   The function that throws the error is:
    private static function idToMessage(id:String) : String
    var msg:String = __errors[id] as String;
    return msg == null?id:msg;
    __errors is a static Object that starts off:
    private static const __errors:Object = {
    "msg.no.paren.parms":"missing ( before function parameters.",
    "msg.misplaced.case":"misplaced case",
    The thrown error indicates that it couldn't find the static Object.    There is probably another error in the generated code as well.  From the stacktrace, you can see that there is an error in getToken that  precipitates the error.   That error in getToken doesn't occur normally because the expression doesn't have an error.  My guess is that is caused by more incorrectly generated code (If the gods are smiling it might have the same underlying cause as the thrown error).
    My guess as to what is wrong is the library SWC is at SWF level 9.   Maybe the AOT compiler has trouble with something (static const Objects) in that format.  The library is no longer supported and I believe that  we are using  the final version, so getting an updated version doesn't seem possible.  (The decompiled SWC has too many errors to be useful as source code). 
    For now, I am now stuck at AIR 14 which is not useful in an IOS 8 world, and to me this seems important.  
    Dennis

    Dennis, if you start looking for alternatives, you could check out Haxe's HScript. It compiles to SWC, and can be passed and operate on any AS3 objects / classes directly with no translation/serialization. It's syntax is Haxe, which is very ecma-like (just like AS3 or JavaScript - aka, familiar). You can pass it your stage and objects (or pass it getDefinitionByName and then basically have dynamic access to everything). The only downside I've found to HScript is that it's fairly slow, so dynamic loops / algorithms are a bad idea.
    I'll try to write a blog post / github quick example app sometime.  (wishful promises.  =)

  • Studio11 code generation error

    cc with -xdepend generation wrong code in AES of openssl from www.openssl.org
    Here is how to reproduce:
    ## I used this package:
    star xf ~/ftp/openssl-0.9.7i.tar.gz
    ## on this machine
    uname -a
    SunOS ultra 5.8 Generic_117350-26 sun4u sparc SUNW,Ultra-5_10
    ## do a config run of openssl
    /config
    ## now try to compile and test
    gmake && gmake test
    ## compile run is fine, test failes with
    Testing cipher AES-128-ECB(encrypt)
    Key
    0000 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
    Plaintext
    0000 00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff
    Ciphertext
    0000 69 c4 e0 d8 6a 7b 04 30 d8 cd b7 80 70 b4 c5 5a
    Ciphertext mismatch
    Got
    0000 90 fa f4 7b 2d 67 23 16 76 b1 28 ab bf e7 ef fd
    Expected
    0000 69 c4 e0 d8 6a 7b 04 30 d8 cd b7 80 70 b4 c5 5a
    ## after removing -xdepend in Makefile
    ## old CFLAGs (with xdepend):
    CFLAG= -DOPENSSL_SYSNAME_ULTRASPARC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -
    DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xd
    epend -Xa -DB_ENDIAN -DBN_DIV2W -DMD5_ASM
    ## new CFLAGs (without xdepend):
    CFLAG= -DOPENSSL_SYSNAME_ULTRASPARC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -
    DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -xtarget=ultra -xarch=v8plus -xO5 -xstrconst -Xa
    -DB_ENDIAN -DBN_DIV2W -DMD5_ASM
    ## now try a new run:
    gmake clean
    gmake && gmake test
    ##everything is fine

    I can see that bug has already been fixed by compiler developers, and probably should be in the next patch.
    You still see the problem under -fast because -fast
    consist s of several other optimizations flags,
    and -xdepend is one of them So, when you
    putting -xdepend=no after -fast you actually
    cancel -xdepend flag and program works ok.
    But -xdepend includes some other useful optimizations
    which you loose when -xdepend=no is on.
    In this particular case, you can actually save
    all those optimizations except one which causes
    the failure. Instead of -xdepend=no put
    -W2,-Rloop_reform
    after -fast flag. That internal [ undocumented ] compiler
    flag just turns off so called "loop reformation"
    phase in optimizer which causes the failure.
    After that program should work without loosing
    much of performance gain.

  • Code Generation Error in DOE ( 2 BEAdapter Active at same time)

    I guys
    I had deleted my backend data adapter(profile_BA) and created other (perfil_ba) in my subscription data object.
    I know that I can create many backend data adapter for one Data object but only one can be set to active.
    But in SMMW_BADPT both exists with Active = X.
    I think the DOe generator class made a mistake. Because in SDOE_WB I can view only one (perfil_BA).
    How do I fix it ?, because when I transporte the my Software component and import in other system, in check the incomplete object transport there are errors reference profile_BA. But it no more exists.
    Thanks.

    What is the state of DELETED column in SMMW_BADPT table for PROFILE_BA? When you delete the backend adapter it will be deleted from the system where you are importing the model changes. Could you please paste the errors faced by you while importing the model changes.

  • FPGA Code Generation fails with error codes 7 and -1

    Hi all,
    I have been having a weird issue with my LV FPGA compilation in the last couple of days, no matter what I try to compile LV fails to generate the FPGA code files and returns with errors 7 and -1 and complains that the file is not found. This happens no matter what I am trying to compile even a VI with just a while loop. I followed the discussion forum here without any luck, also followed the NI article here and that did not help either. The error codes always get generated at the start of the Generating Intermediate files step #7 (out of 7).
    Attached to this post is a screenshot of the error I am getting (error -1 just says internal error and to contact NI support), bellow is basically the error I get for error code 7
    An internal software error has occurred. Please contact National Instruments technical support at ni.com/support with the following information:
    Error 7 occurred at Read from Text File in nirviGetInstantiation_cRIO-IDSel_Timer.vi->nirviGetInstantiation_cRIO-IDSel_Timer.vi.ProxyCaller
    Possible reason(s):
    LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS X, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    =========================
    NI-488: Nonexistent GPIB interface.
    C:\NIFPGA\compilation\cRioController_8-SlotFPGA_FPGA-TriggerTest_C06156E2\IDSel_Timer.vhd
    I tried to do some digging to see what could possibly be happening, and I noticed that LV is looking for the vhdl files in the wrong folder (see the line highlighted in red above), when generating the vhdl files, LV will place them inside the "source_files" folder under the compilation project, but for some reason it is trying to find them under the root folder not inside the source_files folder!!!
    Does anyone have any idea why LV would be looking for these files in the wrong subfolder? 
    Thank you,
    Aws
    Attachments:
    Code Generation Errors.png ‏35 KB

    Hi Aws_Khudhair,
    What version of LabVIEW are you using? And what version of the FPGA module? From what I found, it seems as though this is primarily an issue with LabVIEW 8.6 and 8.6.1.
    http://digital.ni.com/public.nsf/allkb/A711119FE89E39E78625754E00075E92
    This forum also discusses a similar issue:
     http://forums.ni.com/t5/Real-Time-Measurement-and/FPGA-compile-errors-after-generating-intemediate-f...
    It may also be worth repairing/reinstalling the FPGA Module and the Xilinx compile tools.
    Catherine B.
    Applications Engineer
    National Instruments

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • Generation Error - when trying to publish a Java web service

    Hi All,
    I keep getting the following Generation Error -- java.util.NoSuchElementException_ when I'm trying to create a Java Web Service using the jdeveloper wizard.
    I have 2 entities and 2 stateless session beans acting as their facades. One entity has a One-One(FK) relationship with the other entity. I test out the entities and session beans using the test client and the OC4J embedded container and everything seems to work. When I try to generate a Java WebService from one of the entities I keep getting the "Generation Error". Could someone please provide me with some insight into why I'm facing this problem, because it seemed fine when I published J2EE web services previously and now this happens and I cant seem to publish web services anymore. Everytime I keep getting the same GenerationError. Thanks in advance.

    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.

  • Working fine with JAVA code and Error Occured while using in JSP

    Hi.....
    When initiating a BPEL process from JAVA the code is working fine and the Process is getting initiated.But while using that code in J2EE project as a java code and while calling that method Error is occuring.....
    Here by i am attaching my JAVA Code which runs as an applicateion and package which runs in Server....
    JAVA Code (Run as Application) Working Fine:
    package bo;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.NormalizedMessage;
    import com.oracle.bpel.client.delivery.IDeliveryService;
    import java.util.Map;
    import java.util.Properties;
    import oracle.xml.parser.v2.XMLElement;
    /*import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest ;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession; */
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class processit {
         public static void main(String args[]){
              String input = "TATA";
              String xmlInput= "<ns1:AccessDBBPELProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/AccessDBBPEL\"><ns1:input>"+input+"</ns1:input></ns1:AccessDBBPELProcessRequest>";
              String xml="<ns1:BPELProcess1ProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/BPELProcess1\">";
              xml=xml+"<ns1:input>"+input+"</ns1:input>";
              xml=xml+"</ns1:BPELProcess1ProcessRequest>";
              try{
              Properties props=new Properties();
              props.setProperty("orabpel.platform","ias_10g");
              props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
              props.setProperty("java.naming.provider.url","opmn:ormi://157.227.132.226:6003:home/orabpel");
              props.setProperty("java.naming.security.principal","oc4jadmin");
              props.setProperty("java.naming.security.credentials","oc4jadmin");
              props.setProperty("dedicated.rmicontext", "true");
              Locator locator = new Locator("default", "bpel", props);
              System.out.println("After creating the locator object......");
              IDeliveryService deliveryService =(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
              System.out.println("Before creating the NormalizedMessage object......");
              NormalizedMessage nm = new NormalizedMessage();
              System.out.println("After creating the NormalizedMessage object.*.*.*...");
              nm.addPart("payload", xml);
              System.out.println("Before creating response object......");
              NormalizedMessage res = deliveryService.request("BPELProcess1", "process", nm);
              System.out.println("After calling the BPELProcess1 .*.*.*...");
              Map payload = res.getPayload();
              System.out.println("BPEL called");
              XMLElement xmlEl=(oracle.xml.parser.v2.XMLElement)payload.get("payload");
              String replyText=xmlEl.getText();
              System.out.println("Reply from BPEL Process>>>>>>>>>>>>> "+replyText);
              catch (Exception e) {
              System.out.println("Exception : "+e);
              e.printStackTrace();
    JSP and Java Method Used:
    JSP Code:
    ===============
    <%@ page import=" bo.callbpel" %>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>FEATT - I30</title>
    </head>
    <body>
    <%
    String input=request.getParameter("dnvalue");
    callbpel p=new callbpel();
    String Output=p.Initiate(input);
    out.print("The Input Given to the BPEL Process is : "+input);
    %>
    <BR><BR><BR><BR><BR><BR>
    <%
    out.print("The Reply from BPEL Process is : "+Output);
    %>
    </body>
    </html>
    Java Code:
    package bo;
    import com.oracle.bpel.client.Locator;
    import com.oracle.bpel.client.NormalizedMessage;
    import com.oracle.bpel.client.delivery.IDeliveryService;
    import java.util.Map;
    import java.util.Properties;
    import oracle.xml.parser.v2.XMLElement;
    /*import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest ;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession; */
    //import java.util.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    public class callbpel {
         public String Initiate(String value){
              String replyText=null;
              String input = value;
              System.out.println(input);
              String xmlInput= "<ns1:AccessDBBPELProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/AccessDBBPEL\"><ns1:input>"+input+"</ns1:input></ns1:AccessDBBPELProcessRequest>";
              String xml="<ns1:BPELProcess1ProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/BPELProcess1\">";
              xml=xml+"<ns1:input>"+input+"</ns1:input>";
              xml=xml+"</ns1:BPELProcess1ProcessRequest>";
              try{
              Properties props=new Properties();
              props.setProperty("orabpel.platform","ias_10g");
              props.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory");
              props.setProperty("java.naming.provider.url","opmn:ormi://157.227.132.226:6003:home/orabpel");
              props.setProperty("java.naming.security.principal","oc4jadmin");
              props.setProperty("java.naming.security.credentials","oc4jadmin");
              props.setProperty("dedicated.rmicontext", "true");
              Locator locator = new Locator("default", "bpel", props);
              String uniqueBpelId = com.collaxa.cube.util.GUIDGenerator.generateGUID();
              //System.out.println(uniqueBpelId);
              //java.util.Map msgProps = new HashMap();
              System.out.println("After creating the locator object......");
              IDeliveryService deliveryService =(IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
              System.out.println("Before creating the NormalizedMessage object......");
              NormalizedMessage nm = new NormalizedMessage();
              System.out.println("After creating the NormalizedMessage object.*.*.*...");
              //msgProps.put("conversationId",uniqueBpelId);
              //nm.setProperty("conversationId",uniqueBpelId);
              nm.addPart("payload", xml);
              System.out.println("Before creating response object......");
              NormalizedMessage res = deliveryService.request("BPELProcess1", "process", nm);
              System.out.println("After calling the BPELProcess1 .*.*.*...");
              Map payload = res.getPayload();
              System.out.println("BPEL called");
              XMLElement xmlEl=(oracle.xml.parser.v2.XMLElement)payload.get("payload");
              replyText=xmlEl.getText();
              System.out.println("Reply from BPEL Process>>>>>>>>>>>>> "+replyText);
              catch (Exception e) {
              System.out.println("Exception : "+e);
              e.printStackTrace();
              return replyText;
    While Creating and Object for the Class callbpel and Whilw Calling that Method
    callbpel p=new callbpel();
    String Output=p.Initiate(input);
    Its throwing an Error:
    Error Occured is:
    After creating the locator object......
    Before creating the NormalizedMessage object......
    After creating the NormalizedMessage object.*.*.*...
    Before creating response object......
    Apr 24, 2008 9:12:00 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: javax/ejb/EJBException
         at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:76)
         at com.oracle.bpel.client.delivery.DeliveryService.getDeliveryBean(DeliveryService.java:254)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:83)
         at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryService.java:53)
         at bo.callbpel.Initiate(callbpel.java:55)
         at org.apache.jsp.output_jsp._jspService(output_jsp.java:55)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Unknown Source)
    For Running JSP i am Using Eclipse 3.2.0 and apache-tomcat-5.5.25
    Please Provide me a Solution......
    Thanks in Advance.....
    Regards,
    Suresh K

    A JSP is not the same as a Java application. A Java application has package statment, import statements, try/catch block, a JSP doesn't.

  • Consolidator class error in java code...

    Hi, I have difficult time for testing create publication programically.
    Test step is
    1. create MOBILEADMIN.EMP2 based by SCOTT.EMP
    2. Create Primary Key to MOBILEADMIN.EMP2
    3. Write Test Code
    My test code is....as follows..
    [Publication2.java]
    import java.util.*;
    import java.sql.*;
    import oracle.lite.sync.*;
    import oracle.mobile.admin.*;
    public class Publication2
    public static void main(String args[])
    Statement s = null;
    ConsolidatorManager mgr = null;
    Connection con = null;
    try {
    con =getConnection( "MOBILEADMIN", "ADMIN" );
    con.setAutoCommit(false);
    ResourceManager.openConnection( "MOBILEADMIN", "ADMIN" );
    mgr = new ConsolidatorManager();
    s = con.createStatement();
    } catch (Throwable e) {
    System.out.println("con.createStatement failed: " + e + "\n");
    System.exit(0);
    System.out.println( "####################### OpenConnection ######################" );
    try {
    mgr.OpenConnection( "MOBILEADMIN", "ADMIN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on OpenConnection xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### DeinstantiateSubscription ######################" );
    try {
    mgr.DeinstantiateSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropSubscription ######################" );
    try {
    mgr.DropSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublication ######################" );
    try {
    mgr.DropPublication("PUBLISH01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublication xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublicationItem ######################" );
    try {
    mgr.DropPublicationItem("PUBLISH01_ITEM01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### CreatePublication ######################" );
    try {
    //mgr.CreatePublication("PUBLISH01", Consolidator.OKPI_CREATOR_ID, "%s", null );
    mgr.CreatePublication( "PUBLISH01", Consolidator.OKAPI_WIN32, "%s", null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublication xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItem ######################" );
    try {
    mgr.CreatePublicationItem( "PUBLISH01_ITEM01", "MOBILEADMIN", "emp2", "F", "SELECT * FROM emp2", null, null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### PrimaryKeyHint ######################" );
    try {
    mgr.PrimaryKeyHint( "PUBLISH01_ITEM01", "EMPNO", "MOBILEADMIN", "EMP2", "EMPNO" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on PrimaryKeyHint xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItemIndex ######################" );
    try {
    mgr.CreatePublicationItemIndex("PK_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "P", "EMPNO");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "I", "ENAME");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM02", "PUBLISH01_ITEM01", "I", "JOB");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM03", "PUBLISH01_ITEM01", "I", "MGR");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM04", "PUBLISH01_ITEM01", "I", "HIREDATE");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM05", "PUBLISH01_ITEM01", "I", "SAL");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM06", "PUBLISH01_ITEM01", "I", "COMM");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM07", "PUBLISH01_ITEM01", "I", "DEPTNO");
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItemIndex xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### AddPublicationItem ######################" );
    try {
    mgr.AddPublicationItem("PUBLISH01", "PUBLISH01_ITEM01", null, null, "S", null, null);
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreateSubscription ######################" );
    try {
    mgr.CreateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### InstantiateSubscription ######################" );
    try {
    mgr.InstantiateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on InstantiateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending1... ######################" );
    try {
    ResourceManager.commitTransaction();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending1 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending2... ######################" );
    try {
    ResourceManager.closeConnection();
    mgr.CloseConnection();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending2 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    private static Connection getConnection(String user ,String password)
    Connection conn =null;
    try
    DriverManager.registerDriver((Driver)(Class.forName("oracle.jdbc.driver.OracleDriver").newInstance()));
    catch(Exception e)
    e.printStackTrace();
    try
    conn=null;
    String jdbc_url = "jdbc:oracle:thin:@localhost:1521:sid";
    conn = DriverManager.getConnection(jdbc_url,user,password);
    catch(Exception e)
    e.printStackTrace();
    return conn;
    9_;}GO4B ?!7/ 8^=CAv @T4O4Y..
    log9: ####################### AddPublicationItem ######################
    log1: log_main: SELECT PUBLICATION FROM MOBILEADMIN.C$ALL_TEMPLATE_ITEMS WHERE TEMPLATE = ''PUBLISH01'' AND NAME = ''emp2''
    log1: log_main: SELECT COUNT(*) FROM MOBILEADMIN.C$PUBLICATION_MTD WHERE PUBLICATION_ID = 97
    log1: log_main: Will try to get object type for MOBILEADMIN,emp2
    log1: log_main: Will describe emp2
    log1: log_main: Finished describing emp2
    log1: log_main: NCOLS=0
    log1: log_main: PKS Length=0
    log9: oracle.lite.sync.ConsolidatorException:
    CONS-10032: MOBILEADMIN.emp2?! 4kGQ 1b:; E08& C#@; <v >x1b 6'9.?! 5n7O GW8q PUBLISH01_ITEM01@;(8&) 0;=EGR <v >x@=
    (in english, this message shows can't update PUBLISH01_ITEM01 because there's no primary key to MOBILEADMIN.emp2)
    log9: at oracle.lite.sync.Subscription.CreatePublicationMapInQueue(Subscription.java:2569)
    log9: at oracle.lite.sync.Subscription.AddPublicationItem(Subscription.java:2431)
    log9: at oracle.lite.sync.ConsolidatorManager.AddPublicationItem(ConsolidatorManager.java:730)
    log9: at Publication2.main(Publication2.java:164)
    log9: xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx
    I found primary key to MOBILEADMIN.EMP2 when I query user_constraints table.
    What did I wrong? Pls Help me out..
    Thanks in advance..

    Hi, I have difficult time for testing create publication programically.
    Test step is
    1. create MOBILEADMIN.EMP2 based by SCOTT.EMP
    2. Create Primary Key to MOBILEADMIN.EMP2
    3. Write Test Code
    My test code is....as follows..
    [Publication2.java]
    import java.util.*;
    import java.sql.*;
    import oracle.lite.sync.*;
    import oracle.mobile.admin.*;
    public class Publication2
    public static void main(String args[])
    Statement s = null;
    ConsolidatorManager mgr = null;
    Connection con = null;
    try {
    con =getConnection( "MOBILEADMIN", "ADMIN" );
    con.setAutoCommit(false);
    ResourceManager.openConnection( "MOBILEADMIN", "ADMIN" );
    mgr = new ConsolidatorManager();
    s = con.createStatement();
    } catch (Throwable e) {
    System.out.println("con.createStatement failed: " + e + "\n");
    System.exit(0);
    System.out.println( "####################### OpenConnection ######################" );
    try {
    mgr.OpenConnection( "MOBILEADMIN", "ADMIN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on OpenConnection xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### DeinstantiateSubscription ######################" );
    try {
    mgr.DeinstantiateSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropSubscription ######################" );
    try {
    mgr.DropSubscription( "PUBLISH01", "OTN" );
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublication ######################" );
    try {
    mgr.DropPublication("PUBLISH01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublication xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### DropPublicationItem ######################" );
    try {
    mgr.DropPublicationItem("PUBLISH01_ITEM01");
    } catch (Throwable e) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on DropPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    //System.exit( 0 );
    System.out.println( "####################### CreatePublication ######################" );
    try {
    //mgr.CreatePublication("PUBLISH01", Consolidator.OKPI_CREATOR_ID, "%s", null );
    mgr.CreatePublication( "PUBLISH01", Consolidator.OKAPI_WIN32, "%s", null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublication xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItem ######################" );
    try {
    mgr.CreatePublicationItem( "PUBLISH01_ITEM01", "MOBILEADMIN", "emp2", "F", "SELECT * FROM emp2", null, null );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### PrimaryKeyHint ######################" );
    try {
    mgr.PrimaryKeyHint( "PUBLISH01_ITEM01", "EMPNO", "MOBILEADMIN", "EMP2", "EMPNO" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on PrimaryKeyHint xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreatePublicationItemIndex ######################" );
    try {
    mgr.CreatePublicationItemIndex("PK_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "P", "EMPNO");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM01", "PUBLISH01_ITEM01", "I", "ENAME");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM02", "PUBLISH01_ITEM01", "I", "JOB");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM03", "PUBLISH01_ITEM01", "I", "MGR");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM04", "PUBLISH01_ITEM01", "I", "HIREDATE");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM05", "PUBLISH01_ITEM01", "I", "SAL");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM06", "PUBLISH01_ITEM01", "I", "COMM");
    mgr.CreatePublicationItemIndex("ID_PUBLISH01_ITEM07", "PUBLISH01_ITEM01", "I", "DEPTNO");
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreatePublicationItemIndex xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### AddPublicationItem ######################" );
    try {
    mgr.AddPublicationItem("PUBLISH01", "PUBLISH01_ITEM01", null, null, "S", null, null);
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### CreateSubscription ######################" );
    try {
    mgr.CreateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on CreateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### InstantiateSubscription ######################" );
    try {
    mgr.InstantiateSubscription( "PUBLISH01", "OTN" );
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on InstantiateSubscription xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending1... ######################" );
    try {
    ResourceManager.commitTransaction();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending1 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    System.out.println( "####################### Ending2... ######################" );
    try {
    ResourceManager.closeConnection();
    mgr.CloseConnection();
    } catch( Throwable e ) {
    e.printStackTrace();
    System.out.println( "xxxxxxxxxxxxxxxxxxxxx Error on Ending2 xxxxxxxxxxxxxxxxxxxxxxx " );
    System.exit( 0 );
    private static Connection getConnection(String user ,String password)
    Connection conn =null;
    try
    DriverManager.registerDriver((Driver)(Class.forName("oracle.jdbc.driver.OracleDriver").newInstance()));
    catch(Exception e)
    e.printStackTrace();
    try
    conn=null;
    String jdbc_url = "jdbc:oracle:thin:@localhost:1521:sid";
    conn = DriverManager.getConnection(jdbc_url,user,password);
    catch(Exception e)
    e.printStackTrace();
    return conn;
    9_;}GO4B ?!7/ 8^=CAv @T4O4Y..
    log9: ####################### AddPublicationItem ######################
    log1: log_main: SELECT PUBLICATION FROM MOBILEADMIN.C$ALL_TEMPLATE_ITEMS WHERE TEMPLATE = ''PUBLISH01'' AND NAME = ''emp2''
    log1: log_main: SELECT COUNT(*) FROM MOBILEADMIN.C$PUBLICATION_MTD WHERE PUBLICATION_ID = 97
    log1: log_main: Will try to get object type for MOBILEADMIN,emp2
    log1: log_main: Will describe emp2
    log1: log_main: Finished describing emp2
    log1: log_main: NCOLS=0
    log1: log_main: PKS Length=0
    log9: oracle.lite.sync.ConsolidatorException:
    CONS-10032: MOBILEADMIN.emp2?! 4kGQ 1b:; E08& C#@; <v >x1b 6'9.?! 5n7O GW8q PUBLISH01_ITEM01@;(8&) 0;=EGR <v >x@=
    (in english, this message shows can't update PUBLISH01_ITEM01 because there's no primary key to MOBILEADMIN.emp2)
    log9: at oracle.lite.sync.Subscription.CreatePublicationMapInQueue(Subscription.java:2569)
    log9: at oracle.lite.sync.Subscription.AddPublicationItem(Subscription.java:2431)
    log9: at oracle.lite.sync.ConsolidatorManager.AddPublicationItem(ConsolidatorManager.java:730)
    log9: at Publication2.main(Publication2.java:164)
    log9: xxxxxxxxxxxxxxxxxxxxx Error on AddPublicationItem xxxxxxxxxxxxxxxxxxxxxxx
    I found primary key to MOBILEADMIN.EMP2 when I query user_constraints table.
    What did I wrong? Pls Help me out..
    Thanks in advance..

  • Oracle stored procedure works in toad but lots of error in java

    I've tested this stored procedure in toad 7.3 and it completes ok.
    I do pass the same IN parameters and OUT parameters.
    I registered the out parameter as a OracleTypes.CURSOR
    if it works in toad or pl/sql, what is wrong? how can this be fixed.
    however, when i execute this in java, this is the exception and garbage i receive:
    java.sql.SQLException: ORA-06550: line 1, column 22:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    := . ( @ % ;
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 33:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in mod not range rem => ..
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between is null is not || indicator is
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    my stored procedure is as follows:
    CREATE OR REPLACE PROCEDURE getUserByLogin (
    arg_subscriptionName IN varchar,
    arg_loginName IN varchar,
    arg_password IN varchar,
    arg_rec_userinfo_valLanguage OUT types.rec_userinfo_valLanguage
    ) AS
    var_userNum int;
    BEGIN
    select
    u.userNum into var_userNum
    from
    userInfo u,
    subscription s
    where
    s.subscriptionName = arg_subscriptionName AND
    s.subscriptionNum = u.subscriptionNum AND
    u.loginName = arg_loginName AND
    u.password = arg_password;
    if (var_userNum is null) then
    var_userNum := 0;
    end if;
    getUser(var_userNum, arg_rec_userinfo_valLanguage);
    END;
    /

    I'm using a callable statement.
    The strange thing is that, when i remove all IN and OUT paramters in the java code and the stored procedure, both the call to the stored procedure and teh execution of the stored procedure works.
    The moment I add in just a IN parameter (in the stored procedure, and setting it in the java code) it stops working, and i receive this error.
    java.sql.SQLException: ORA-06550: line 1, column 23:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    := . ( @ % ;
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    heres the java code and stored procedure
    CREATE OR REPLACE PROCEDURE sampleProcedure(tax out number)
    is
    BEGIN
    tax := 10 *.15;
    /END;
    CallableStatement statement =conn.prepareCall("{call sampleprocedure ?}");
    statement.registerOutParameter(1,java.sql.Types.INTEGER);
    statement.execute();
    ResultSet rs = statement.getResultSet();
    if((rs = statement.getResultSet()) != null){

Maybe you are looking for

  • Notes Are Cut Off Midway Through - Any Option To Upload Fully?

    I've recently been uploading some of my MSN conversations in text format to my 5th Gen iPod (80GB). But none of them have loaded completely, leaving me with half-finished convos. Is there a limit to the size of a txt file that you can upload? Thank y

  • Reverse a Invoice

    hi, I have made the Reference Filed in MIRO and FB60 a compulsory filed. But when i try to reverse a document which i created a few months back, the system giving a message saying " the Reverse is messing". I entered the reference in header details l

  • Timing of Text

    When adding text to an image it continues to show up in the next image, how do I change the timing or length of the text so that it stay just on the image that i added it to? Thanks

  • How can I get commnet history not displayed ?

    Hello All, I tryed to use EvCOM and EvCGT function of SAP BPC in my input schedule, and noticed that the both function displays the strings added the number of the history of the comment like "..(6)" I'd like these added number strings to not display

  • Adobe Reader X update 10.1.7

    I updated and now it doesn't work.  My computer says searching for problem and can't find one.  I don't get a Eula not working message.  Strangely this mostly  happens with newly scanned items.  Some PDF items open fine and others scanned at the same