Error compiling a Class using generics in 11g Database

I am using loadjava to load my java souce into the database (11g) and I get an error.
Error while determining classes contained in utc/ehsrs/notification/EmailNotificationCfg.java
Exception oracle.aurora.sqljdecl.ParseException: Encountered "<" at line 27, column 19.
line 27 column 19 is the one in bold (uses Generics).
public class EmailNotificationCfg {
private String id;
private String reportName;
private String title;
private String tablename;
private String criteria;
private String dynamicUser;
private String message;
private Vector<String> actions;
private boolean includeLink = true;
public EmailNotificationCfg() {
The database says the JVM is version 1.5 I have compiled this outside the database with Java 1.5 (5.0).
this is the first time I have tried to load a class with generics into the database. It also didn't like the annotations, but I have removed them.

Good suggestion, but we need to keep the source in the database.
However I upgraded my database client to 11g and loadjava loaded the source without errors.
I can only guess that loadjava is parsing the file before loading the class and is not the lightweight application that I had assumed it was.

Similar Messages

  • Getting information about a class using generics...

    Hi there.
    I have declared a class: "public class SomeClass<SC extends SomeClass>{/*Do something*/}".
    Can anyone tell me why a statement like "System.out.println(SC.class.getSimpleName());" within a method defined in SomeClass will not compile? Is there some other way to achieve what I want?

    YoungWinston wrote:
    Owen Thomas wrote:
    Well then, it would be great to be able to key a switch that tells the compiler one isn't working with "legacy code", if this might allow generics to reach a hitherto untapped potential.I don't see how, since not everybody is going to need (or want) such a switch. It also sounds like a recipe for disaster. Should we add such a switch for every enhancement that might have backwards-compatibility problems?Isn't that what the "deprecated" feature is for? Sure, there'll be backwards compatibility issues for a while, but after a few years, with management, things should settle as code is moved from pre to post "super-generics".
    Much of the Java core, and many third-party libraries might have to be re-written in that circumstance... economic stimulus.How could the Java core have been re-written if it requires use of a "not backwards-compatible" flag?i have not reason to believe that code compiled under a super-generics switch need not be backwards-compatible. One may have to simply exercise care in its use.
    I didn't want to bore you with trivia, and I didn't want you to frustrate me with more quips (well-meant though I'm sure they are) about how to write code. ;-)In which case I can only assume that you're using generics for something that probably, more correctly, requires reflection. Have you looked at the relevant parts of Class, as I suggested?No, but as you are impressing on me to have a look, I could do no wrong to have a sniff around. However, with no specific motivation in the current context, I don't think anything will catch my eye. The current need isn't great enough.

  • CompileException: Error compiling web service (using ant jwsc)

    Hi,
    I try to use the ant task jwsc to create my portable artefacts for a web service.
    Unfortunately I get the following exception:
    BUILD FAILED
    C:\Sun\jwsdp-2.0\apache-ant\bin\build.xml:7: weblogic.wsee.tools.jws.build.CompileException: Error compiling web service: C:\Sun\jwsdp-2.0\apache-ant\bin\src\test\WsTest.java
    I do not know why the ant task can not compile my jws file (shown below) whereas Eclipse can!
    package test;
    import javax.jws.WebService;
    @WebService (name="WsTestName", serviceName="WsTestServiceName")
    public class WsTest {
    * @param name
    * @return Say hello to the person.
    public String sayHello(String name) {
    return "Hello, " + name + "!";
    I hope somebody can help me.
    Thanks
    Franz

    I thought I would post an update since I found a solution. The problem was a ClassCast exception in a part of the SSL stack, that wanted to use the ant BuildException class. This has the effect of hiding the real issue which was that the SSL connection was not successfully occuring. The real problem was that the SSL connection started with a WSDL retrieved via SSL, but the connection for the port was through a username/password. When a username/password is used to create a port, the WL stack falls back to http and causes a ClassCast exception on weblogic.wsee.connection.transport.http.HttpTransportInfo. The solution is to create an https transport object when the service impl is created:
    HttpsTransportInfo transport = new HttpsTransportInfo ();
    transport.setUsername (user.getBytes ());
    transport.setPassword (pass.getBytes ());
    gServiceImpl = new PersistenceManagerService_Impl (url, transport);
    and to create the port without parameters:
    port = getServiceImpl ().getPersistenceManagerServicePort ();
    This allows one-way SSL with username/password for the connection.

  • variable-class using Generic Collection

    Within my TLDs I would like to use the <variable-class> attribute as much as possible for the sake of JSP authors.
    I cannot figure out how to specify that a varAttribute will be a generic collection. IE, if I want to return a set of strings, I would like to do
    <variable-class>
    java.util.set<java.lang.String>
    </variable-class>
    Of course I must escape the <,> and I tried using < and > but it was not effective.
    Is this even possible? I would appreciate any comments suggestions.

    Currently we are using a single domain account on every machine in this kiosk area. They are using just Internet Explorer and Adobe Reader. We are using Group Policy to lock down the machines. Each station is a full computer (older Dell OptiPlex) running
    Windows 7. We are looking at the possibility of removing the OptiPlex computers and replacing them with Wyse terminals. The backend would be a cluster of 3 servers running Hyper-V 2012 R2. On those would be running Windows Server 2012 R2 RDS.  We have
    tested this setup, but when creating the VDI collection there doesn't seem to be a way to use generic domain accounts. 
    Every person that uses these does not have an AD account and it looks like that would be a problem when trying to implement this.  I was just checking here to see if anyone had any ideas or had gone through a similar setup.

  • ORA-600 [17069] error while running catrelod.sql to downgrade 11g database

    Hi,
    We are downgrading our 11.2.0.2 database to 10.2.0.4. We have successfullly run catdwgrd.sql without any errors in 11g env. While running catrelod.sql in 10g env we are facing the following error:
    SQL> @?/rdbms/admin/catrelod.sql
    TIMESTAMP
    COMP_TIMESTAMP RELOD__BGN 2013-04-24 20:15:39 2456407 72939
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>  The following statement will cause an "ORA-01722: invalid number"
    DOC>  error if the database server version is not 10.0.0.
    DOC>  Shutdown ABORT and use a different script or a different server.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    no rows selected
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>  The following statement will cause an "ORA-01722: invalid number"
    DOC>  error if the database has not been opened for MIGRATE.
    DOC>
    DOC>  Perform a "SHUTDOWN ABORT"  and
    DOC>  restart using MIGRATE.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>#
    no rows selected
    Session altered.
    Session altered.
    no rows selected
    DECLARE
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [17069], [0x170FB8CA8], [], [], [],
    [], [], []I have checked the trace file in udump but it dint give any readable information.
    Please find below environment details.
    OS : RHEL 5 64 bit
    11g Database : 11.2.0.2
    10g Database : 10.2.0.4
    Kindly assist.

    KR10822864 wrote:
    Whenever an ORA-600 error is raised a trace file is generated and an entry written to the alert.log with details of the trace file location. Starting with Oracle Database 11g Release 1, the diagnosability infrastructure was introduced which places the trace and core files into a location controlled by the DIAGNOSTIC_DEST initialization parameter when an incident, such as an ORA-600 is created. For earlier versions, the trace file will be written to either USER_DUMP_DEST (if the error was caught in a user process) or BACKGROUND_DUMP_DEST (if the error was caught in a background process like PMON or SMON). The trace file contains vital information about what led to the error condition
    please post 40 lines of alert log info .
    MOS Note:ORA-600 [17069] "Failed to pin a library cache object after 50 attempts" [ID 39616.1]
    "Look in the trace file for the text 'LIBRARY OBJECT HANDLE: handle=170fb8ca8'"
    if not found any massages like above please raise [email protected].
    Hi KR,
    Thanks for your help. As suggested I have checked the trace file to search and found the below info. I suppose it is some kind of lock but not sure about it. Please let me know if the following makes sense:
        SO: 0x21158a6e0, type: 3, owner: 0x211006f28, flag: INIT/-/-/0x00
        (call) sess: cur 211572570, rec 211572570, usr 211572570; depth: 0
          SO: 0x21158a9b8, type: 3, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          (call) sess: cur 211572570, rec 0, usr 211572570; depth: 1
            SO: 0x1727a2618, type: 54, owner: 0x21158a9b8, flag: INIT/-/-/0x00
            LIBRARY OBJECT PIN: pin=1727a2618 handle=170fb8ca8 mode=S lock=171243e98
            user=211572570 session=211572570 count=1 mask=001d savepoint=0x43 flags=[00]
            SO: 0x171243e98, type: 53, owner: 0x21158a9b8, flag: INIT/-/-/0x00
            LIBRARY OBJECT LOCK: lock=171243e98 handle=170fb8ca8 mode=S
            call pin=0x1727a2618 session pin=(nil) hpc=0000 hlc=0000
            htl=0x171243f18[0x17278a310,0x17278a310] htb=0x17278a310 ssga=0x172789928
            user=211572570 session=211572570 count=1 flags=PNC/[0400] savepoint=0x43
            LIBRARY OBJECT HANDLE: handle=170fb8ca8 mtx=0x170fb8dd8(0) cdp=0
            name=SYS.STANDARD
            hash=51570e225ed8a9a803b7318f191e0a8d timestamp=04-18-2006 00:00:00
            namespace=TABL flags=KGHP/TIM/SML/[02000000]
            kkkk-dddd-llll=0000-001d-001d lock=S pin=S latch#=3 hpc=0004 hlc=0004
            lwt=0x170fb8d50[0x170fb8d50,0x170fb8d50] ltm=0x170fb8d60[0x170fb8d60,0x170fb8d60]
            pwt=0x170fb8d18[0x170fb8d18,0x170fb8d18] ptm=0x170fb8d28[0x170fb8d28,0x170fb8d28]
            ref=0x170fb8d80[0x170fb8d80,0x170fb8d80] lnd=0x170fb8d98[0x170f05b50,0x170fa6858]
              LIBRARY OBJECT: object=170e82de8
              type=PCKG flags=EXS/LOC[0005] pflags=NST/IVR[0201] status=VALD load=0
              DATA BLOCKS:
              data#     heap  pointer    status pins change whr
                  0 170e831f8 170e82fc0 I/P/A/-/-    0 NONE   00
          SO: 0x21158e470, type: 5, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          (enqueue) CU-70E88BC0-00000001    DID: 0001-001F-00000004
          lv: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  res_flag: 0x2
          res: 0x17677adc8, mode: X, lock_flag: 0x0
          own: 0x211572570, sess: 0x211572570, proc: 0x211006f28, prv: 0x17677add8
          SO: 0x177f82c28, type: 59, owner: 0x21158a6e0, flag: INIT/-/-/0x00
          cursor enqueue
          child: 170e89348, flag: 53, number: 0
          parent: 170e89738

  • Problem in compiling servlet class - using Tomcat

    Hi,
    I have a servlet pgm that I'm trying to compile.I using Tomcat application server.I have my servlet class in D:\servlet_wrk\project1\src
    and my deployment descriptor in D:\servlet_wrk\project1\etc
    my CLASSPATH var is set to C:\Sun\AppServer\jdk\bin
    and
    my PATH var is set to C:\Sun\AppServer\bin.
    When I compile my servlet class Ch1Servlet.java in the command line from the directory
    D:\servlet_wrk\project1 using the command
    javac -classpath D:\applications\tomcat-5.5.12\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java,
    it says error:cannot read: src/Ch1Servlet.java
    Can somebody help me to solve this problem and help me to compile my servlet class.
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Error compiling single ejb using appc/ejbc (long)

    This may be related to my earlier post ("no longer able to build ejb
    using appc (WLS 8.1)", posted this morning), but the error and the way I
    encountered it were different enough that I thought I'd post as a new
    topic. I've been trying to build a project using weblogic 8.1, but I've
    been running into some problems.
    As a test, I tried compiling a single ejb from the command line using
    the new appc compiler. I compiled the source files and moved them to a
    clean build directory, along with the deployment descriptors. From the
    command line, I set the system classpath to the bare minimum necessary
    to build the ejb-- the jdk tools.jar, the jre rt.jar, the weblogic.jar
    file, the project bin directory, the log4j.jar, and my database driver
    jar (see [1] and the echoed resulting classpath at [2] below). I then
    invoked appc, specifying the output and source paths ([3]). The
    resulting error ([4]) shows a much larger classpath, which abruptly ends
    with a "?". I ran the same test using ejbc instead of appc, and I get
    the very same problem (same error message). I've never encountered
    problems like these before, and other than upgrading to weblogic 8.1, my
    system configuration hasn't changed. Any ideas or suggestions would be
    greatly appreciated!
    system:
    weblogic 8.1
    sun jdk 1.4.1_02 (bundled with weblogic)
    win 2k
    Test and resulting error message:
    [1] SETTING CLASSPATH...
    D:\workspace\TRIPS\deployment\build>set classpath=D:\bea\jdk141_02\jre
    \lib\rt.jar;D:\bea\jdk141_02\lib\tools.jar;D:\bea\weblogic81\server\lib
    \weblogic.jar;D:\workspace\TRIPS\bin;D:\workspace\TRIPS\lib\log4j.jar;D:
    \workspace\TRIPS\lib\ifxjdbc.jar
    [2] ECHOING CLASSPATH...
    D:\workspace\TRIPS\deployment\build>set classpath
    classpath=D:\bea\jdk141_02\jre\lib\rt.jar;D:\bea\jdk141_02\lib
    \tools.jar;D:\bea\weblogic81\server\lib\weblogic.jar;D:\workspace\TRIPS
    \bin;D:\workspace\TRIPS\lib\log4j.jar;D:\workspace\TRIPS\lib\ifxjdbc.jar
    [3] INVOKING APPC...
    D:\workspace\TRIPS\deployment\build>java weblogic.appc -output D:
    \workspace\TRIP
    S\deployment\build\VASKeyGenerator.jar D:\workspace\TRIPS\deployment
    \build
    [4] ERROR MESSAGE...
    java.io.IOException: CreateProcess: javac -classpath "C:\temp\appcgen;C:
    \Program
    Files\Java\j2re1.4.1_01\lib\rt.jar;C:\Program Files\Java\j2re1.4.1_01
    \lib\i18n.
    jar;C:\Program Files\Java\j2re1.4.1_01\lib\sunrsasign.jar;C:\Program
    Files\Java\
    j2re1.4.1_01\lib\jsse.jar;C:\Program Files\Java\j2re1.4.1_01\lib
    \jce.jar;C:\Prog
    ram Files\Java\j2re1.4.1_01\lib\charsets.jar;C:\Program Files\Java
    \j2re1.4.1_01\
    classes;D:\bea\jdk141_02\jre\lib\rt.jar;D:\bea\jdk141_02\lib
    \tools.jar;D:\bea\we
    blogic81\server\lib\weblogic.jar;D:\bea\weblogic81\server\lib
    \wlcipher.jar;D:\be
    a\weblogic81\server\lib\webservices.jar;D:\bea\weblogic81\server\lib
    \xmlx.jar;D:
    \bea\weblogic81\server\lib\ojdbc14.jar;D:\bea\weblogic81\server\lib
    \EccpressoAsn
    1.jar;D:\bea\weblogic81\server\lib\EccpressoCore.jar;D:\bea\weblogic81
    \server\li
    b\EccpressoJcae.jar;D:\bea\weblogic81\server\lib\ant\ant.jar;D:\bea
    \weblogic81\s
    erver\lib\ant\optional.jar;D:\bea\weblogic81\server\lib\ant\jakarta-oro-
    2.0.4.ja
    r;D:\bea\weblogic81\server\lib\ant\xml-apis.jar;D:\bea\weblogic81\server
    \lib\ant
    \xerc?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at weblogic.utils.Executable.exec(Executable.java:227)
    at weblogic.utils.Executable.exec(Executable.java:156)
    at weblogic.utils.Executable.exec(Executable.java:142)
    at weblogic.utils.compiler.CompilerInvoker.execCompiler
    (CompilerInvoker.
    java:246)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit
    (CompilerInvo
    ker.java:463)
    at weblogic.utils.compiler.CompilerInvoker.compile
    (CompilerInvoker.java:
    364)
    at weblogic.utils.compiler.CompilerInvoker.compile
    (CompilerInvoker.java:
    372)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile
    (EJBCompiler.java:270)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB
    (EJBCompiler.java:468)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB
    (EJBCompiler.java:387)
    at weblogic.appc.compileEJB(appc.java:735)
    at weblogic.appc.compileEJB(appc.java:709)
    at weblogic.appc.compileInput(appc.java:446)
    at weblogic.appc.runBody(appc.java:167)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.appc.main(appc.java:961)
    Exec failed .. exiting
    D:\workspace\TRIPS\deployment\build>

    Hi Tim,
    I just got past a similar problem by specifying the full path to javac
    in build.xml. Like:
    <wlappc source="${dest.dir}" compiler="C:\bea\jdk141_02\bin\javac"
    />
    Tim Perrigo <[email protected]> wrote in message news:<[email protected]>...
    This may be related to my earlier post ("no longer able to build ejb
    using appc (WLS 8.1)", posted this morning), but the error and the way I
    encountered it were different enough that I thought I'd post as a new
    topic. I've been trying to build a project using weblogic 8.1, but I've
    been running into some problems.
    As a test, I tried compiling a single ejb from the command line using
    the new appc compiler. I compiled the source files and moved them to a
    clean build directory, along with the deployment descriptors. From the
    command line, I set the system classpath to the bare minimum necessary
    to build the ejb-- the jdk tools.jar, the jre rt.jar, the weblogic.jar
    file, the project bin directory, the log4j.jar, and my database driver
    jar (see [1] and the echoed resulting classpath at [2] below). I then
    invoked appc, specifying the output and source paths ([3]). The
    resulting error ([4]) shows a much larger classpath, which abruptly ends
    with a "?". I ran the same test using ejbc instead of appc, and I get
    the very same problem (same error message). I've never encountered
    problems like these before, and other than upgrading to weblogic 8.1, my
    system configuration hasn't changed. Any ideas or suggestions would be
    greatly appreciated!
    system:
    weblogic 8.1
    sun jdk 1.4.1_02 (bundled with weblogic)
    win 2k
    Test and resulting error message:
    [1] SETTING CLASSPATH...
    D:\workspace\TRIPS\deployment\build>set classpath=D:\bea\jdk141_02\jre
    \lib\rt.jar;D:\bea\jdk141_02\lib\tools.jar;D:\bea\weblogic81\server\lib
    \weblogic.jar;D:\workspace\TRIPS\bin;D:\workspace\TRIPS\lib\log4j.jar;D:
    \workspace\TRIPS\lib\ifxjdbc.jar
    [2] ECHOING CLASSPATH...
    D:\workspace\TRIPS\deployment\build>set classpath
    classpath=D:\bea\jdk141_02\jre\lib\rt.jar;D:\bea\jdk141_02\lib
    \tools.jar;D:\bea\weblogic81\server\lib\weblogic.jar;D:\workspace\TRIPS
    \bin;D:\workspace\TRIPS\lib\log4j.jar;D:\workspace\TRIPS\lib\ifxjdbc.jar
    [3] INVOKING APPC...
    D:\workspace\TRIPS\deployment\build>java weblogic.appc -output D:
    \workspace\TRIP
    S\deployment\build\VASKeyGenerator.jar D:\workspace\TRIPS\deployment
    \build
    [4] ERROR MESSAGE...
    java.io.IOException: CreateProcess: javac -classpath "C:\temp\appcgen;C:
    \Program
    Files\Java\j2re1.4.1_01\lib\rt.jar;C:\Program Files\Java\j2re1.4.1_01
    \lib\i18n.
    jar;C:\Program Files\Java\j2re1.4.1_01\lib\sunrsasign.jar;C:\Program
    Files\Java\
    j2re1.4.1_01\lib\jsse.jar;C:\Program Files\Java\j2re1.4.1_01\lib
    \jce.jar;C:\Prog
    ram Files\Java\j2re1.4.1_01\lib\charsets.jar;C:\Program Files\Java
    \j2re1.4.1_01\
    classes;D:\bea\jdk141_02\jre\lib\rt.jar;D:\bea\jdk141_02\lib
    \tools.jar;D:\bea\we
    blogic81\server\lib\weblogic.jar;D:\bea\weblogic81\server\lib
    \wlcipher.jar;D:\be
    a\weblogic81\server\lib\webservices.jar;D:\bea\weblogic81\server\lib
    \xmlx.jar;D:
    \bea\weblogic81\server\lib\ojdbc14.jar;D:\bea\weblogic81\server\lib
    \EccpressoAsn
    1.jar;D:\bea\weblogic81\server\lib\EccpressoCore.jar;D:\bea\weblogic81
    \server\li
    b\EccpressoJcae.jar;D:\bea\weblogic81\server\lib\ant\ant.jar;D:\bea
    \weblogic81\s
    erver\lib\ant\optional.jar;D:\bea\weblogic81\server\lib\ant\jakarta-oro-
    2.0.4.ja
    r;D:\bea\weblogic81\server\lib\ant\xml-apis.jar;D:\bea\weblogic81\server
    \lib\ant
    \xerc?
    at java.lang.Win32Process.create(Native Method)
    at java.lang.Win32Process.<init>(Win32Process.java:63)
    at java.lang.Runtime.execInternal(Native Method)
    at java.lang.Runtime.exec(Runtime.java:566)
    at java.lang.Runtime.exec(Runtime.java:491)
    at java.lang.Runtime.exec(Runtime.java:457)
    at weblogic.utils.Executable.exec(Executable.java:227)
    at weblogic.utils.Executable.exec(Executable.java:156)
    at weblogic.utils.Executable.exec(Executable.java:142)
    at weblogic.utils.compiler.CompilerInvoker.execCompiler
    (CompilerInvoker.
    java:246)
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit
    (CompilerInvo
    ker.java:463)
    at weblogic.utils.compiler.CompilerInvoker.compile
    (CompilerInvoker.java:
    364)
    at weblogic.utils.compiler.CompilerInvoker.compile
    (CompilerInvoker.java:
    372)
    at weblogic.ejb20.ejbc.EJBCompiler.doCompile
    (EJBCompiler.java:270)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB
    (EJBCompiler.java:468)
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB
    (EJBCompiler.java:387)
    at weblogic.appc.compileEJB(appc.java:735)
    at weblogic.appc.compileEJB(appc.java:709)
    at weblogic.appc.compileInput(appc.java:446)
    at weblogic.appc.runBody(appc.java:167)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.appc.main(appc.java:961)
    Exec failed .. exiting
    D:\workspace\TRIPS\deployment\build>

  • Error compiling Sequence class

    I've made this incredible program (in fact a part of a more complex one),but I don't know why it doesnt compile.
    import javax.sound.midi.*;
    public class MPlayB{
    public static void main(String[] args)
    Sequence     sequence = null;
    try{
    sequence = new Sequence(Sequence.PPQ, 8);
    }catch (InvalidMidiDataException e){
    e.printStackTrace();System.exit(1);
    compile error is:
    An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_FLT_DIVIDE_BY_ZERO (0xc000008e) at pc=0x00c0a9f9, pid=968, tid=960
    # Java VM: Java HotSpot(TM) Client VM (1.5.0-rc-b63 mixed mode, sharing)
    # Problematic frame:
    # j com.sun.tools.javac.jvm.Items$ImmediateItem.isPosZero(F)Z+0
    I use freeware JCreator to compile.
    The same code was released as an exemple in www.jsresources.org/faq_midi.html
    so it would work!!!
    I really don't undestand.
    Please help!!!Thx

    Reinstalling the JDK is the solution(4 times yesterday...) is the solution.
    Waiting for the final release....
    jdk1.4.2 doesnt handle Midi fine on Windows platform..

  • Error compiling jaxb classes

    Hello!
    This is my first pass through the world of jaxb. I have a schema; I compiled it into a bunch of classes. One of them has an error.
    In this declaration:
    public class MSVValidator implements XMLSerializer, IDContextProvider2 {My IDE (Eclipse) has some heartburn with the IDContextProvider2 interface. The error message is as follows:
    The type org.relaxng.datatype.ValidationContext cannot be resolved. It is indirectly referenced from required .class filesIt has a point. I can't find it in any of the 4 libs that come with jaxb (jaxb-api.jar, jaxb-impl.jar, jaxb-libs.jar, jaxb-xjc.jar). I know I'm not supposed to decompile class files, but if I were to decompile this one I feel sure I would find:
    import org.relaxng.datatype.Datatype;
    import org.relaxng.datatype.ValidationContext;do I just need to go out and find the proper support lib, or is this a flag that I'm using an out-of-date set of libs, or ????
    I'm pretty sure that I can fix this by throwing libs at it, but if that's not the right answer I'd like to find out the right answer.
    Thanks in advance - dan fox

    it does have a point because you need to add more than those 4 .jar files to comple the jaxb generated classes....for example you need relaxngDatatype.jar file from the jwsdp-1.5\jwsdp-shared\lib folder. if you aren't using the jwsdp then you need to download these extra jars.... find out where the xjc.bat is getting its classpath and get the all the jars from there....
    good luck

  • Error while deploying ear using Oracle weblogic 11g in local machine

    Hi,
    Initially I installed Jdeveloper along with Weblogic and got the below error while deploying. Later I uninstalled Jdeveloper and weblogic, etc and installed a new weblogic on my local machine and tried to deploy ear. But still got the same error. With the same installable file and same ear, we could deploy successfully on my colleagues' machine. Any idea?.
    Satus: deploy Failed
    Description: [Deployer:149026]deploy application part on AdminServer.
    Begin Time: Thu Feb 03 13:45:01 EST 2011
    End Time: Thu Feb 03 13:45:11 EST 2011
    Exception: [J2EE:160149]Error while processing library references. Unresolved Webapp Library references for "ServletContext@22411886[app:part module:part path:/part spec-version:2.5]", defined in weblogic.xml [Extension-Name: jstl, Specification-Version: 1.2, exact-match: false].
    Regards,
    Rama

    and also post the section of weblogic.xml which refers to JSTL library
    some entry like <library-ref>

  • Error when uploading data using generic

    Hi,
    I have created a gereic datasrc using view & i took the following fields
    MATNR     Material
    WERKS     Plant
    PBDNR     Req.plan number
    BDZEI     Reqmts pointer
    LAEDA     Last change
    MEINS     Base Unit
    FIXMG     Planned qty
    In the transfer rules of BW the system gave mapping only for LAEDA Last changewith the infoobj 0CH_ON,so I took 0mat infoobj formapping with  Matnr
    0plant for werks & created ZpBDNR,ZBDZEI for PBDNR  BDZEI & for FIXMG i mapped with the infoobj 0PRDPLN_QTY
    In the monitor screen it is showing me 0 records with status yellow then I went to the job overview it is giving me the following msg in job overview
    Date        Time      Message                                                                               
    24.12.2006  12:18:13  Job started                                                                            
    24.12.2006  12:18:13  Step 001 started (program SBIE0001, variant &0000000006181, user ID ALE_MASTER)        
    24.12.2006  12:18:13                                                                               
    24.12.2006  12:18:13  DATASOURCE = PLANEW                                                                    
    24.12.2006  12:18:13  *************************************************************************              
    24.12.2006  12:18:13  *          Current Values for Selected Profile Parameters               *              
    24.12.2006  12:18:13  *************************************************************************              
    24.12.2006  12:18:13  * abap/heap_area_nondia......... 2000000000                              *             
    24.12.2006  12:18:13  * abap/heap_area_total.......... 2000000000                              *             
    24.12.2006  12:18:13  * abap/heaplimit................ 40000000                                *             
    24.12.2006  12:18:13  * zcsa/installed_languages...... DE                                      *             
    24.12.2006  12:18:13  * zcsa/system_language.......... E                                       *             
    24.12.2006  12:18:13  * ztta/max_memreq_MB............ 250                                     *             
    24.12.2006  12:18:13  * ztta/roll_area................ 2000000                                 *             
    24.12.2006  12:18:13  * ztta/roll_extension........... 2000000000                              *             
    24.12.2006  12:18:13  *************************************************************************              
    24.12.2006  12:18:14  Could not determine BW release of logical system 'QEMCLNT003'                          
    24.12.2006  12:18:14  Job cancelled after system exception ERROR_MESSAGE                                                                               
    Thanks,
    Maya

    Did you created Logical system also? If not you have to create logical system and assign it to ur source system.
    If u on BW3.5 system:
    Tcode SPRO->ref Img->SAP NetWeaver->SAP BI->Links to other systems->define logical system. (not sure abt path...but it must be somehow similar to this only)
    Check this link it may help you:
    http://www.erpgenie.com/sapgenie/docs/MySAP%20BW%20Cookbook%20Vol%202.pdf
    Message was edited by:
            KJ (Kamaljeet)

  • Problem using Enterprise Manager 11g Database Control in Firefox 3.6.6

    Hello all,
    I just intalled Oracle 11g and trying to familiarize myself with Enterprise Manager 11g Dataabse Control using Firefox 3.6.6 in Windows XP.
    I'm able to login to Enterprise manager successfully.
    However, when I click on on "Performance Tab", the "SYSTEM_MOVING_WINDOW" is empty, and there's a prompt "Click Here to Download Plugin."
    When I do click on it, I get message:
    No suitable plugins were found.
    Unknown plugin (application/octet-stream) [Manual Install].
    I'm not sure what plugin I need so I can use Enterprise Manager properly.
    Please help!
    Thanks
    Giovanni

    I use the Opera browser so I can split the screen to monitor multiple instances at the same time on my 2nd monitor. I am not having issues with the 10g OEM but having the same problem listed in this thread with the 11g OEM ( we have both running during our migration to 11g). The posts here didn't help me with the 11g OEM as there must be some difference from 10g OEM. I will hate it if I can't do the split screen to monitor multiple instances at the same time. And if you are connecting via solaris or lunix browser then IE is not an option ( W3C standards please ).

  • Using generic format for database links in ODI Procedures

    Hi,
    As in procedure we use
    create table <%=odiRef.getSchemaName("Target Schema","D")%>.TABLE2 as
    select * from <%=odiRef.getSchemaName("Staging Schema","D")%>.TABLE1
    where Staging Database and Target Database are logical schemas which will associate to respective physical schema while execution so the above statement will become as
    create table Target_Schema.TABLE2 as
    select * from staging_Schema.TABLE1
    I just wanted to know if there is any way by which i can apply samethings for Database Links also.
    Like if i have statements
    create table TABLE2@Target_Database as
    select * from TABLE1@staging_Database
    can i replace DB links like Target_Database and Staging_Database?
    Help would be appreciated. :)
    Thanks,
    Mahesh

    I am not entirely sure about the exact requirement.
    Any way ..
    1.
    create 2 variable .
    v_get_src_schema : select '<%=odiRef.getSchemaName("<your_src_logical_schema>","D")%>' from dual
    v_get_tgt_schema : select '<%=odiRef.getSchemaName("<your_tgt_logical_schema>","D")%>' from dual
    2.
    2 more variable to get the required DBLink
    v_SRC_DB_LINK: select DB_LINK from all_db_links where owner='#PRJ_CODE.v_get_src_schema'
    v_TGT_DB_LINK: select DB_LINK from all_db_links where owner='#PRJ_CODE.v_get_tgt_schema'
    3.
    create a procedure :
    prc_create_table :
    create table <%=odiRef.getSchemaName("Target Schema","D")%>.TABLE2@'#PRJ_CODE.v_TGT_DB_LINK' as
    select * from <%=odiRef.getSchemaName("Staging Schema","D")%>.TABLE1@'#PRJ_CODE.v_SRC_DB_LINK'
    4.
    Create a package :
    Connect all the steps in serial with OK line.
    Execute and let us know what is the out come .
    Thanks,
    Sutirtha

  • Can't compile custom classes in Release 12 environment.

    Hi ,
    We have some extensions to the OA Framework pages in Oracle Applications. The custom java files for the same are returning the following error while compiling in the release 12 environment.
    RufiReviewSubmitCO.java:78: cannot access oracle.sql.NUMBER
    bad class file: /u002/app/applmgr/R12TSTcomn/java/lib/appsborg.zip(oracle/sql/NUMBER.class)
    class file has wrong version 50.0, should be 49.0
    The same java files works without issues in a 11.5.10cu2 environment.
    The java version on the server is 1.6.0_10 and the java file was created on a client machine with java 1.6 version.
    Have you encountered this error, how to overcome this. Any help is appreciated.
    Thanks
    Sudeep

    hi
    it seems that u direct compiling the files in unix box ,one other way i can suggest , if u will compile the class using Jdeveloper compatible to your EBS and then move the file to server ,definietly it will work.Note:416708.1 on Metalink has a list of all the JDev patches for the various releases of Oracle Applications.
    thanx
    Pratap

  • Installing Oracle Management Agent in 11g database(11.2.0.3)

    Hi,
    Error occurred, While installing the agent in 11g database.
    Error is listed below
    [oracle@grid agent]$./agentDeploy.sh AGENT_BASE_DIR=/ebiz/oracle RESPONSE_FILE= agent.rsp
    AGENT_BASE_DIR=/ebiz/oracle
    Validating the OMS_HOST & EM_UPLOAD_PORT
    Executing command : /ebiz/oracle/core/12.1.0.1.0/jdk/bin/java -classpath /ebiz/o racle/core/12.1.0.1.0/jlib/agentInstaller.jar:/ebiz/oracle/core/12.1.0.1.0/oui/j lib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /ebiz/oracle/c ore/12.1.0.1.0 /tmp/agent /ebiz/oracle -prereq
    Validating oms host & port with url: http://prime.4iapps.com:7801/empbs/genwalle t
    Validating oms host & port with url: https://prime.4iapps.com:7801/empbs/genwall et
    Return status:3
    Unzipping the agentcoreimage.zip to /ebiz/oracle ....
    12.1.0.1.0_PluginsOneoffs_226.zip
    Executing command : /ebiz/oracle/core/12.1.0.1.0/jdk/bin/java -classpath /ebiz/o racle/core/12.1.0.1.0/oui/jlib/OraInstaller.jar:/ebiz/oracle/core/12.1.0.1.0/oui /jlib/xmlparserv2.jar:/ebiz/oracle/core/12.1.0.1.0/oui/jlib/srvm.jar:/ebiz/oracl e/core/12.1.0.1.0/oui/jlib/emCfg.jar:/ebiz/oracle/core/12.1.0.1.0/jlib/agentInst aller.jar:/ebiz/oracle/core/12.1.0.1.0/oui/jlib/share.jar oracle.sysman.agent.in staller.AgentInstaller /ebiz/oracle/core/12.1.0.1.0 /tmp/agent /ebiz/oracle AGEN T_BASE_DIR=/ebiz/oracle AGENT_BASE_DIR=/ebiz/oracle RESPONSE_FILE=agent.rsp
    Executing agent install prereqs...
    Executing command: /ebiz/oracle/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSys rereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion -prereqlogl c /ebiz/oracle/core/12.1.0.1.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysma .top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/ebiz/oracle/core 12.1.0.1.0/prereqs -J-DORACLE_HOSTNAME=grid.4iapps.com -J-DAGENT_BASE_DIR=/ebi /oracle
    Prereq Logs Location:/ebiz/oracle/core/12.1.0.1.0/cfgtoollogs/agentDeploy/prere <timestamp>.log
    Agent install prereqs completed successfully
    Cloning the agent home...
    Executing command: /ebiz/oracle/core/12.1.0.1.0/oui/bin/runInstaller -ignoreSys rereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/ebiz/ racle/core/12.1.0.1.0 -responseFile agent.rsp AGENT_BASE_DIR=/ebiz/oracle AGEN BASEDIR=/ebiz/oracle RESPONSE_FILE=agent.rsp -noconfig ORACLE_HOME_NAME=agen 12c1 -force
    Clone Action Logs Location:/ebiz/oracle/app/oraInventory/logs/cloneActions<time tamp>.log
    ERROR: Agent Clone Failed
    [oracle@grid agent]$
    Kindly guide me to install agent on 11g database
    Thanks & Regards
    Kesavan G

    Hi,
    I have listed the logfiles details for your reference,
    -scratchPath
    /tmp/OraInstall2013-05-05_11-57-48AM
    -sourceType
    network
    -timestamp
    2013-05-05_11-57-48AM
    -ignoreSysPrereqs
    -clone
    -forceClone
    -silent
    -waitForCompletion
    -nowait
    ORACLE_HOME=/ebiz/oracle/core/12.1.0.1.0
    -responseFile
    agent.rsp
    AGENT_BASE_DIR=/ebiz/oracle
    AGENT_BASE_DIR=/ebiz/oracle
    RESPONSE_FILE=agent.rsp
    -noconfig
    ORACLE_HOME_NAME=agent12c1
    -force
    INFO: Environment Variables:
    INFO: ORACLE_HOME = /ebiz/oracle/core/12.1.0.1.0
    INFO: PATH = /ebiz/oracle/app/oracle/product/11.2.0/dbhome_1/bin:/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
    INFO: CLASSPATH =
    INFO: Username:oracle
    INFO: Install area Control created with access level 1
    INFO: Oracle Universal Installer version is 11.1.0.9.0
    INFO: OUI-10203:The specified response file 'agent.rsp' is not found. Make sure that the response file specified exists and you have read privileges to this file.
    Thanks $ Regards
    Kesavan G

Maybe you are looking for