Diagnostic class

Hi, want to use Diagnostic class in oracle.jbo.common package.
Tried to set some variable in command line - does not work.
Also tried to use setQuite method- does not work as well.(Nothing changed)
How to turn on diagnostic by using this class?
Thanks

Hi, want to use Diagnostic class in oracle.jbo.common package.
Tried to set some variable in command line - does not work.
Also tried to use setQuite method- does not work as well.(Nothing changed)
How to turn on diagnostic by using this class?
Thanks

Similar Messages

  • Cannot read multiple resultsets from transaction datasource

    I get a SQL exception "This object was closed() and cannot be used anymore."
    when I try to access the first row of the second result set from a stored procedure.
    This occurs when the code is running within an EJB using a transaction-capable
    datasource hooked to a connection pool that uses the MSSQLSERVERv7 JDriver
    to talk to SQL Server 7.0.
    I noted that the resultset class used is weblogic.jdbc20.rmi.SerialResultSet.
    The error occurs during the resultSet.next() call even though the resultset is
    not null and getUpdateCount() returns -1.
    However, the same code works correctly when run in a simple main() procedure from
    the DOS command line, connecting directly to the database using only the classes
    supplied with the JDriver product. The resultset class used in this case is
    weblogic.jdbc.mssqlserver4.TdsResultSet.
    The stored procedure is very simple, it just has two lines: SELECT 'Hello' and
    SELECT 'World'. The Java code follows.
    <PRE>
    // ... code to get the connection ...
    CallableStatement callableStatement = connection.prepareCall("{CALL spTest}");
    callableStatement.execute();
    ResultSet resultSet = callableStatement.getResultSet();
    if ((resultSet != null) && resultSet.next())
    System.out.println("Row from first result set:" + resultSet.getString(1));
    callableStatement.getMoreResults();
    resultSet = callableStatement.getResultSet();
    if ((resultSet != null) && resultSet.next()) // this call to next() throws the
    exception
    System.out.println("Row from second result set:" + resultSet.getString(1));
    resultSet.close();
    callableStatement.close();
    connection.close();
    </PRE>
    I am running WL5.10sp11 with mssqlserver4v70sp11 on NT4.0sp6a and JDK1.3.0_02
    (HotSpot Client VM).
    Regards,
    Tom B.

    Tom Bechtold wrote:
    >
    Joe,
    Here is the debug messages and trace with your diagnostic jar.
    I hope this helps - Tom
    we got Hello
    java.sql.SQLException: java.lang.Exception: ResultSet originally closed at:
    at weblogic.jdbcbase.mssqlserver4.TdsResultSet.close(TdsResultSet.java,
    Compiled Code)
    at java.lang.Exception.<init>(Unknown Source)
    at weblogic.jdbcbase.mssqlserver4.TdsResultSet.close(TdsResultSet.java,
    Compiled Code)
    at weblogic.jdbcbase.jts.ResultSet.close(ResultSet.java:260)
    at weblogic.jdbc20.rmi.internal.ResultSetImpl.close(ResultSetImpl.java:53)
    at weblogic.jdbc20.rmi.SerialResultSet.close(SerialResultSet.java:54)
    ... rest of EJB call stack ...Hi. I do want to see the whole stack trace please, and also the EJB code.
    thanks,
    Joe
    >
    Joseph Weinstein <[email protected]> wrote:
    Tom Bechtold wrote:
    Hi Joe,
    I pasted your sample program into my bean and ran it under
    WL510sp11 and JDriver 5.1.0sp11, and it did exhibit the error
    as my code did.
    But it runs fine under WL510sp10 with JDriver 5.1.0sp11.
    Thanks for your great support,
    TomYou're very welcome. Please take the attached jar file, and add it
    at the front of the server's weblogic.classpath, by editting the
    startWebLogic script, and let me know what happens. This jar contains
    the ResultSet class, with a hack to remember where it was closed, and
    print that out if/when it is closed a second time.
    Joe
    Joseph Weinstein <[email protected]> wrote:
    Tom Bechtold wrote:
    A follow-on note: when I back out to Service Pack 10, the problem
    is
    not there,
    so it seems that it is an issue with Service Pack 11.
    - Tom Bechtold
    "Tom Bechtold" <[email protected]> wrote:
    I get a SQL exception "This object was closed() and cannot be used
    anymore."
    when I try to access the first row of the second result set from
    a
    stored
    procedure.
    This occurs when the code is running within an EJB using a transaction-capable
    datasource hooked to a connection pool that uses the MSSQLSERVERv7JDriver
    to talk to SQL Server 7.0.
    I noted that the resultset class used is weblogic.jdbc20.rmi.SerialResultSet.
    The error occurs during the resultSet.next() call even though theresultset
    is not null and getUpdateCount() returns -1.Hi. You say that getUpdateCount() returns -1. I don't see that inthe
    code you sent,
    so you probably just gave us a representative sample of the code you
    run. I did
    runs uch code with the driver alone, and it works as you say. I will
    see if I can
    set up a server to do this via a DataSource, but in case anyone wants
    to help/race with
    me :-), here's simple code to run. If you convert it to a DataSource
    connection,
    and it behaves differently, I'll send you a diagnostic class to seewhat's
    up...
    Joe
    Connection connection = null;
    try
    Properties properties = new Properties();
    properties.put("user", "sa");
    properties.put("password", "");
    Driver d = (Driver)Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
    connection = d.connect("jdbc:weblogic:mssqlserver4:JOE:1433",
    properties);
    // or get connection from DataSource...
    Statement statement = connection.createStatement();
    try {
    statement.execute("drop procedure bla");
    } catch (Exception e){}
    statement.execute("create procedure bla as select 'Hello
    ' select 'world'");
    CallableStatement c = connection.prepareCall("{ call bla()
    c.execute();
    ResultSet resultset = c.getResultSet();
    while(resultset.next())
    System.out.println("we got " + resultset.getString(1));
    resultset.close();
    c.getMoreResults();
    resultset = c.getResultSet();
    while(resultset.next())
    System.out.println("we got " + resultset.getString(1));
    resultset.close();
    catch(SQLException exception1)
    exception1.printStackTrace();
    finally
    try { connection.close();} catch(Exception ex) {}
    However, the same code works correctly when run in a simple main()procedure
    from the DOS command line, connecting directly to the database
    using
    only
    the classes supplied with the JDriver product. The resultset classused in this
    case
    is weblogic.jdbc.mssqlserver4.TdsResultSet.
    The stored procedure is very simple, it just has two lines: SELECT
    'Hello'
    and SELECT 'World'. The Java code follows.
    // ... code to get the connection ...
    CallableStatement callableStatement = connection.prepareCall("{CALLspTest}");
    callableStatement.execute();
    ResultSet resultSet = callableStatement.getResultSet();
    if ((resultSet != null) && resultSet.next())
    System.out.println("Row from first result set:" + resultSet.getString(1));
    callableStatement.getMoreResults();
    resultSet = callableStatement.getResultSet();
    if ((resultSet != null) && resultSet.next()) // this call to next()throws the
    exception
    System.out.println("Row from second result set:" + resultSet.getString(1));
    resultSet.close();
    callableStatement.close();
    connection.close();
    I am running WL5.10sp11 with mssqlserver4v70sp11 on NT4.0sp6a and
    JDK1.3.0_02
    (HotSpot Client VM).
    Regards,
    Tom B.--
    B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
    DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco,
    CA
    E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
    SOFTWARE ENGINEER (DBA) Liberty Corner,
    NJ
    SENIOR WEB DEVELOPER San Jose,CA
    SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTHCAROLINA
    San Jose, CA
    SR. PRODUCT MANAGER Bellevue,WA
    SR. WEB DESIGNER San Jose,CA
    Channel Marketing Manager - EMEA Region London, GBR
    DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose,CA
    SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose,CA
    E-COMMERCE INTEGRATION ARCHITECT San Jose,CA
    QUALITY ASSURANCE ENGINEER Redmond, WA
    Services Development Manager (Business Development Manager - Services)
    Paris, FRA; Munich, DEU
    SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
    E-Marketing Programs Specialist EMEA London, GBR
    BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose,CA
    MANAGER, E-SALES Plano, TX--
    B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
    DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco,
    CA
    E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
    SOFTWARE ENGINEER (DBA) Liberty Corner,
    NJ
    SENIOR WEB DEVELOPER San Jose, CA
    SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA
    San Jose, CA
    SR. PRODUCT MANAGER Bellevue, WA
    SR. WEB DESIGNER San Jose, CA
    Channel Marketing Manager - EMEA Region London, GBR
    DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
    SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
    E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
    QUALITY ASSURANCE ENGINEER Redmond, WA
    Services Development Manager (Business Development Manager - Services)
    Paris, FRA; Munich, DEU
    SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
    E-Marketing Programs Specialist EMEA London, GBR
    BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
    MANAGER, E-SALES Plano, TX
    B.E.A. is now hiring! (12/14/01) If interested send a resume to [email protected]
    DIRECTOR OF PRODUCT PLANS AND STRATEGY San Francisco, CA
    E-SALES BUSINESS DEVELOPMENT REPRESENTATIVE Dallas, TX
    SOFTWARE ENGINEER (DBA) Liberty Corner, NJ
    SENIOR WEB DEVELOPER San Jose, CA
    SOFTWARE ENGINEER (ALL LEVELS), CARY, NORTH CAROLINA San Jose, CA
    SR. PRODUCT MANAGER Bellevue, WA
    SR. WEB DESIGNER San Jose, CA
    Channel Marketing Manager - EMEA Region London, GBR
    DIRECTOR OF MARKETING STRATEGY, APPLICATION SERVERS San Jose, CA
    SENIOR SOFTWARE ENGINEER (PLATFORM) San Jose, CA
    E-COMMERCE INTEGRATION ARCHITECT San Jose, CA
    QUALITY ASSURANCE ENGINEER Redmond, WA
    Services Development Manager (Business Development Manager - Services) Paris, FRA; Munich, DEU
    SENIOR SOFTWARE ENGINEER (PLATFORM) Redmond, WA
    E-Marketing Programs Specialist EMEA London, GBR
    BUSINESS DEVELOPMENT DIRECTOR - E COMMERCE INTEGRATION San Jose, CA
    MANAGER, E-SALES Plano, TX

  • Row concurrency error in ADF application

    Hi,
    I recently moved my ADF application from 10.1.3 Rel2 to 10.1.3.4.0 SOA Rel3.
    Now I am frequently getting the following error.
    JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key.
    Any help would be appreciated.
    Viki.

    Hi,
    I already fixed this problem.
    It was Date conversion problem.
    Instead of Date I used Timestamp.
    To investigate it I should look into some internals.
    How to turn on some additional logs?(That is why my question about Diagnostic class) , but nobody answered yet.
    Thanks.

  • Error in adf application

    I am using adf application with JDev 10.1.3. With oracle 10g works well.
    When I tried to use Oracle Lite- I got error
    JBO-26041: Failed to post data to database during "Update": SQL Statement "UPDATE S_CONTACT ContactEO SET LAST_UPD=?,LAST_UPD_BY=?,MODIFICATION_NUM=?,WORK_PH_NUM=? WHERE ROW_ID=?".
    SQL Exception : Unknown SQL Type for PreparedStatement.setObject (SQL Type=1111
    But the same statement works with Oracle and Oracle XE...
    Any suggestions?

    Hi,
    I already fixed this problem.
    It was Date conversion problem.
    Instead of Date I used Timestamp.
    To investigate it I should look into some internals.
    How to turn on some additional logs?(That is why my question about Diagnostic class) , but nobody answered yet.
    Thanks.

  • ServiceRequestException : The request failed. The operation has timed out

    I wrote simple client using EWS Managed API. And let it run for one night. It was working fine. But when I checked it back in the morning, I found my application stopped. I checked logs I got following exception:
    2014-01-08 01:49:05.3649 | Error | Exception while fetching mails : The request failed. The operation has timed out | MyNamespace.MyClass.myMethod
    Immediate Stack Trace
    ===================================================================================
    Microsoft.Exchange.WebServices.Data.ServiceRequestException : The request failed. The operation has timed out
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& request)
    at Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()
    at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
    at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalLoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet, ServiceErrorHandling errorHandling)
    at Microsoft.Exchange.WebServices.Data.ExchangeService.LoadPropertiesForItems(IEnumerable`1 items, PropertySet propertySet)
    at MyNamespace.MyClass.myMethod() in c:\MyProject\MyClass.cs:line 190
    Inner Exception 1 : Stack Trace
    The operation has timed out
    at System.Net.HttpWebRequest.GetResponse()
    at Microsoft.Exchange.WebServices.Data.EwsHttpWebRequest.Microsoft.Exchange.WebServices.Data.IEwsHttpWebRequest.GetResponse()
    at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)
    Since the Exception message did not contain error code that Exchange server usually returns like (401) Unauthorized or (403) Forbidden, I am unable to pinpoint any reason for this to occur, since the functionality worked perfectly several times before
    this exception occurred as I can check in my logs. Also my diagnostic class which runs on the occurrences of any exception immediately tried to ping exchange server and re-initialize ExchangeService object. When I checked diagnostics logs after this exception
    time for the result of diagnostics, then it was able to ping the exchange server and the ExchageServer object also initialized successfully. So I am out of any reason now. 
    The exception occurred on the last line of the following code:
    ItemView itemView = new ItemView(100, 0);
    FindItemsResults<Item> itemResults = null;
    PropertySet psPropSet = new PropertySet(BasePropertySet.IdOnly);
    itemView.PropertySet = psPropSet;
    PropertySet itItemPropSet = new PropertySet(BasePropertySet.IdOnly)
    ItemSchema.Attachments,
    ItemSchema.Subject,
    ItemSchema.Importance,
    ItemSchema.DateTimeReceived,
    ItemSchema.DateTimeSent,
    ItemSchema.ItemClass,
    ItemSchema.Size,
    ItemSchema.Sensitivity,
    EmailMessageSchema.From,
    EmailMessageSchema.CcRecipients,
    EmailMessageSchema.ToRecipients,
    ItemSchema.MimeContent
    itemResults = service.FindItems(WellKnownFolderName.Inbox, itemView);
    if (itemResults.Items.Count != 0)
    service.LoadPropertiesForItems(itemResults.Items, itItemPropSet);
    Any guesses why this could have happened? Or just some random network congestion? Am I forgetting to log some more information. Should I also log Exception.Data or something else?

    The timeout is occurring on the client so it not a particular error that's being returned by the server.
    The default timeout with the EWS Managed API is 90 seconds and is set on the ExchangeService Object. You can set this to a higher value eg to set it to 5 minutes
    server.timeout = 300000;
    Why it fails ? if its overnight then Backups can be the cause eg if they are snapshotting the server or some other backup mechanism could mean the server is very busy for a time. Or any other number of specific environmental factors. This is really
    a job for your Network admin to determine with server and network monitoring. I would suggest you check the EWS.Log on the Exchange server to see what happened at that time.
    What you should do at a code level is handle the exception, I would suggest wait for 60 seconds after the exception (this will cater for most throttling issues) and then try the same request again. If it fails again after a pause then
    you generally have a larger problem.
    Cheers
    Glen

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Confused about creation of inner class object of a generic class

    Trying to compile to code below I get three different diagnostic messages using various compilers: javac 1.5, javac 1.6 and Eclipse compiler. (On Mac OS X).
    class A<T> {
        class Nested {}
    public class UsesA <P extends A<?>> {
        P pRef;
        A<?>.Nested  f() {
            return pRef.new Nested();  // warning/error here
    Javac 1.5 outputs "UsesA.java:11: warning: [unchecked] unchecked conversion" warning, which is quite understandable. Javac 1.6 outputs an error message "UsesA.java:11: cannot select from a type variable", which I don't really undestand, and finally the Eclipse compiler gives no warning or error message at all. My question is, which compiler is right? And what does the message "cannot select from a type variable" means? "pRef", in the above code, is of a bounded type; why is the creation of an inner object not allowed?
    Next, if I change the type of "pRef" to be A<?>, javac 1.6 accepts the code with no error or warning message, while javac 1.5 gives an error message "UsesA.java:11: incompatible types" (concerning the return from "f" above). Similarly to javac 1.6, the Eclipse compiler issues no error message. So, is there something that has changed about generics in Java between versions 5 and 6 of the language?
    Thanks very much for any help

    Checkings bugs.sun.com, it seems to be a bug:
    http://bugs.sun.com/view_bug.do?bug_id=6569404

  • Warning: Variable in inherited class hides private variable in base class?

    Hello,
    I've come across a simple case like this:
    class A {
      private:
        int varA;
    class B : public A {
      B() {
        int varA = 5;       // does it hide A::varA ?!
    };which is causing my Studio 11/12 compiler front ends to issue a warning like:
    "..., line 8: Warning: varA hides A::varA."
    when I try to compile with default settings.
    I'm aware that this warning can be easily worked around, but I'm still wondering what the standard says about this?
    Does B::varA really hide A::varA even though it is declared private?!
    Looks like a small bug to me.
    Can someone please try my example with the latest and greatest Studio compiler?
    Thanks,
    Jochen
    Compiler details:
    # /usr/sunstudio12.1/bin/version
    Machine hardware: i86pc
    OS version: 5.10
    Processor type: i386
    Hardware: i86pc
    The following components are installed on your system:
    Sun Studio 12 update 1
    Sun Studio 12 update 1 C Compiler
    Sun Studio 12 update 1 C++ Compiler
    Sun Studio 12 update 1 Tools.h++ 7.1
    Sun Studio 12 update 1 C++ Standard 64-bit Class Library
    Sun Studio 12 update 1 Garbage Collector
    Sun Studio 12 update 1 Debugging Tools (including dbx)
    Sun Studio 12 update 1 IDE
    Sun Studio 12 update 1 Performance Analyzer (including collect, ...)
    Sun Studio 12 update 1 Performance Library
    Sun Studio 12 update 1 Scalapack
    Sun Studio 12 update 1 LockLint
    Sun Studio 12 update 1 Building Software (including dmake)
    Sun Studio 12 update 1 Documentation Set
    version of "/usr/sunstudio12.1/bin/../prod/bin/../../bin/cc": Sun C 5.10 SunOS_i386 Patch 142363-03 2009/12/03
    version of "/usr/sunstudio12.1/bin/../prod/bin/../../bin/CC": Sun C++ 5.10 SunOS_i386 128229-04 2009/11/25
    version of "/usr/sunstudio12.1/bin/../prod/bin/../../bin/dbx": Sun DBX Debugger 7.7 SunOS_i386 2009/06/03
    version of "/usr/sunstudio12.1/bin/../prod/bin/../../bin/analyzer": Sun Analyzer 7.7 SunOS_i386 2009/06/03
    version of "/usr/sunstudio12.1/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.9 SunOS_i386 2009/06/03

    jroemmler wrote:
    Steve_Clamage wrote:
    Accessibility versus visibility is part of the standard. [...]Ok, If that's the case, then the warning is caused by design and not by Studio C++.Yes, sort of.
    >
    I assume that other compilers do not complain because they do not strictly adhere to the standard and perform additional accessibility checks before complaining about a name clash...No. Hiding a name is legal, and your code example has well-defined behavior. There is no issue that a compiler is required to complain about. (That is, no language rule is violated.)
    If name hiding results in an invalid program, the error is due to the effects of hiding the name, not the hiding itself. Having a warning about the name hiding would help you find the reason for the error in that case.
    The C++ standard requires a "diagnostic message" for most violations of rules. Compilers generally treat these violations as fatal errors. The standard does not require or forbid any other kind of diagnostic message. That leaves compiler implementers free to emit, or omit, any warnings they think will best serve their customers.
    Compilers vary in what sorts of warnings (non-fatal observations) they emit. Most compilers, including Studio C++, provide ways to control the kinds of warnings you see. Compilers that don't warn by default about name hiding might provide a warning if you ask for it. For example, Studio C++ offers these options to control warnings:
    -w Do not emit any warnings
    +w Emit additional warnings
    +w2 Emit still more warnings about picky portability issues
    -errtags Emit a tag with warnings for use with -erroff and -errwarn
    -erroff=... Do not issue the listed warnings
    -errwarn=... Treat the listed warnings as errors
    -xwe Treat all warnings as errors
    You can read more about these options in the C++ Users Guide.

  • When I open Firefox, the browser does not open. Instead I get a small window that says: TypeError: Components.classes[cid] is undefined. How do I fix this?

    I tried to uninstall AVG antiviral software, but it did not uninstall. Next, when I try to open Firefox I get a box popup that says:
    TypeError: Components.classes[cid] is undefined.
    If I click OK in that box, I can then open Firefox.
    Also I can no longer update Java.
    Help!

    Possibly you have "AVG Safe search" extension installed as part of "AVG Free", solution involves reinstalling :AVG Free" without the Link Scanner component see
    * http://kb.mozillazine.org/Problematic_extensions
    * symptom was noted in https://support.mozilla.com/questions/865877
    Other possibilities
    * "OneClick YouTube Downloader 1.07" as reported in
    *: https://support.mozilla.com/questions/864343
    * "Java console" needs to be updated as reported in
    *:https://support.mozilla.com/questions/863711]
    * "HP Smart Print 1.0" as reported in
    *: https://support.mozilla.com/questions/857283
    * "McAfee Site Advisor" as noted in (also see Problematic extensions above)
    *:https://support.mozilla.com/questions/802381
    *a theme After switching to the default theme the JavaScript error doesn't appear. (View > Page Style > No Style or if "Firefox" button use "Alt" first to get to the View menu)
    *:https://support.mozilla.com/questions/837840
    *various extensions/applications but is 1 year back and Firefox 3.6.6
    *:https://support.mozilla.com/questions/729606
    If none of the above solve you problem use diagnostic approach...
    *: https://support.mozilla.com/questions/837840

  • JMF Diagnostics applet - how to resolve "JMF Classes not found"

    I am still having problems trying to get my USB camera to run in an applet.
    I'm using Windows XP with IE 6.
    I found the JMF Diagnostic Applet and when I run it, I get the following:
    Java 1.1 compliant browser.....Maybe
    JMF classes.....Not Found
    The text below says that CLASSPATH needs to include jmf.jar
    I have checked that and it does. I added all the jar files to the CLASSPATH as well and that did not help.
    I saw another post that said the JMFHOME environment variable needed to be set to the main JMF directory.
    I did that and still get the same error.
    Can anyone tell me what I need to set in order to make the JMF Diagnostic applet work???
    Thanks,

    I have exactly the same problem. Running XP pro and Java 5. Installed JMF2.1.1e and the diagnostic doesn't work. Don't know how to verify or set the CLASSPATH but assumed it was more plug and play.
    I'm a student and am writing my final year project which is supposed to be a multi-client concurrency based video clip app. All the sample codes I've seen make it look quite easy. I was wanting to prototype my concepts before I continue (glad there are some nifty buffer controls) I've unistalled, reinstalled, restarted an no joy and the only help that seems might work includes loads more files than what my distribution has (just have jmf.jar, customizer.jar, multiplayer,jar, mediaplayer.jar and sound.jar and that's it.
    I was a little worred about the need to have the API on my test client machines (aka housemates) now I'm really worried.

  • Javax.persistence annotated class creating persistence.jar dependency

    Hi,
    I'm trying to create a JAR for clients to use. I would like to include a few classes that have been annotated for use with hibernate using the standard javax.persistence annotations (code snippet below). The problem is, @GeneratedValue accepts a javax.persistence.GenerationType enum which is creating a dependency and, in fact, causes the client's compiler to fail if they try to import and use the Award class after including my JAR.
    Does anyone know of a solution. Thanks in advance. Here's the compiler output:
    An exception has occurred in the compiler (1.6.0_04). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
    com.sun.tools.javac.code.Symbol$CompletionFailure: class file for javax.persistence.GenerationType not found
    Compilation completed with 1 error and 0 warnings
    1 error
    0 warnings
    Compiler internal error. Process terminated with exit code 4
    @Entity
    @Table( name = "award" )
    public class Award
        @Id
        @GeneratedValue( strategy = GenerationType.IDENTITY ) // this requires that GenerationType be available to the client
        @Column( name = "award_id", nullable = false, length = 19 )
        private Long id;
        // etc., etc.
    }

    Did you read the error message anyway? Did you bother to Google the error message?
    At least try upgrading both the JDK and the JPA implementation.

  • JSF page & Sqlserver DB - gave 'Use the sqljdbc4' class error !

    Hello,
    I created an JSF page with business components and data controls generated from a connected sqlserver database.
    The driver class used is 'sqljdbc4.jar' and works for all generaled VIEW LINKS by the AppModule.
    However, on running the created JSF page, I get the following error - although the 'sqljdbc4.jar class (NOT sqljdbc.jar) is used for the DB connection, and the only reference in the application.
    The error message is:
    Could not create pool connection. The DBMS driver exception was: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
    QUESTION: Does that mean that I need to locate another sqlserver driver that supports JRE version 1.6 - although I understood from the documentation that 'sqljdbc4.jar' should work with JRE version 1.6?
    see full message log below - when trying to deploy the JSF page:
    *** Using port 7101 ***
    C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1.5-3\lib\tools.jar;C:\Oracle\MIDDLE~1\utils\config\10.3\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.2.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\jdeveloper\webcenter\modules\oracle.portlet.server_11.1.1\oracle-portlet-api.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;.;C:\Program Files\TIBCO;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\KEEP\A_SOA_ActiveVOS\SQLserverjdbc_Driver\sqljdbc_2.0\enu\sqljdbc.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;C:\Oracle\MIDDLE~1\JDK160~1.5-3\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1.5-3\bin;C:\app\Administrator\product\11.1.0\db_4\bin;C:\app\Administrator\product\11.1.0\db_3\bin;C:\app\Administrator\product\11.1.0\db_1\bin;C:\Program Files\PHP\;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows System Resource Manager\bin;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\ANT\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Common Files\DivX Shared\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE;;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1.5-3\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dhttp.proxyHost=emeacache.uk.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=null -Dhttps.proxyHost=emeacache.uk.oracle.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=null -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.36\DEFAUL~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1 -Doracle.server.config.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.security.jps.config=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=\modules\oracle.ossoiap_11.1.1,\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.36\DEFAUL~1\oracle\store\gmds -DUSE_JAAS=false -Djps.policystore.hybrid.mode=false -Djps.combiner.optimize.lazyeval=true -Djps.combiner.optimize=true -Djps.auth=ACC -Doracle.core.ojdl.logging.usercontextprovider=oracle.core.ojdl.logging.impl.UserContextImpl -Doracle.wc.openusage.clustername=localhost -Doracle.wc.openusage.collectorport=31314 -Doracle.wc.openusage.timeout=30 -Doracle.wc.openusage.unicast=true -Doracle.wc.openusage.enabled=false -Doracle.webcenter.tagging.scopeTags=false -XX:+UseParallelGC -XX:+DisableExplicitGC -Dwc.oracle.home=C:\Oracle\Middleware\jdeveloper -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server
    <Apr 19, 2010 6:36:22 PM EDT> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\lib\mbeantypes\csp-id-asserter.jar>
    <Apr 19, 2010 6:36:23 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 14.0-b16 from Sun Microsystems Inc.>
    <Apr 19, 2010 6:36:24 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.2.0 Tue Oct 20 12:16:15 PDT 2009 1267925 >
    <Apr 19, 2010 6:36:27 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Apr 19, 2010 6:36:27 PM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Apr 19, 2010 6:36:29 PM EDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Apr 19, 2010 6:36:29 PM EDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00003. Log messages will continue to be logged in C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <Apr 19, 2010 6:36:29 PM EDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <Apr 19, 2010 6:36:49 PM EDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Apr 19, 2010 6:37:27 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Apr 19, 2010 6:37:28 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Apr 19, 2010 6:38:44 PM EDT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Apr 19, 2010 6:38:44 PM EDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00003. Log messages will continue to be logged in C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <Apr 19, 2010 6:38:44 PM EDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Apr 19, 2010 6:38:48 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Apr 19, 2010 6:38:48 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Apr 19, 2010 6:38:48 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.254.255.241:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Apr 19, 2010 6:38:48 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Apr 19, 2010 6:38:48 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 0:0:0:0:0:0:0:1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Apr 19, 2010 6:38:48 PM EDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <Apr 19, 2010 6:38:48 PM EDT> <Warning> <Server> <BEA-002611> <Hostname "WINSERVR2008", maps to multiple IP addresses: 10.254.255.241, 0:0:0:0:0:0:0:1>
    <Apr 19, 2010 6:38:49 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Apr 19, 2010 6:38:49 PM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    IntegratedWebLogicServer startup time: 192201 ms.
    IntegratedWebLogicServer started.
    [Running application BraaineDBupdateV1 on Server Instance IntegratedWebLogicServer...]
    [06:39:24 PM] ---- Deployment started. ----
    [06:39:24 PM] Target platform is (Weblogic 10.3).
    [06:39:30 PM] Retrieving existing application information
    [06:39:33 PM] Running dependency analysis...
    [06:39:33 PM] Deploying 2 profiles...
    [06:39:37 PM] Wrote Web Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\BraaineDBupdateV1\ViewControllerWebApp.war
    [06:39:39 PM] Wrote Enterprise Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs\BraaineDBupdateV1
    [06:39:39 PM] Deploying Application...
    <Apr 19, 2010 6:39:43 PM EDT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application BraaineDBupdateV1 is not versioned.>
    <SQLServerConnection><<init>> Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
    <Apr 19, 2010 6:39:45 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "BraineDB": Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.>
    <Apr 19, 2010 6:39:47 PM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1271716780677' for task '0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:256)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1104)
         at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:244)
         at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1065)
         Truncated. see log file for complete stacktrace
    >
    <Apr 19, 2010 6:39:47 PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'BraaineDBupdateV1'.>
    <Apr 19, 2010 6:39:47 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
         Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
         at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:256)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1180)
         at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1104)
         at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:244)
         at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1065)
         Truncated. see log file for complete stacktrace
    >
    [06:39:47 PM] #### Deployment incomplete. ####
    [06:39:47 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application BraaineDBupdateV1 due to error deploying to IntegratedWebLogicServer.
    [Application BraaineDBupdateV1 stopped and undeployed from Server Instance IntegratedWebLogicServer]

    No, you already have the needed driver in sqljdbc4.jar. The problem is that your classpath first points to sqljdbc.jar
    >
    ...;C:\KEEP\A_SOA_ActiveVOS\SQLserverjdbc_Driver\sqljdbc_2.0\enu\sqljdbc.jar
    >
    so this dirver is loaded instead of the sqljdbc4.jar.
    Remove the old jar from the class path and try again.
    Timo

  • What is inserting the following code onto pages " div id="bikatoc" style="display: none;" a class="control" Close /a div class="toc" ul li class="toc-h2

    I am doing web development and when working with the wordpress dashboard tiny mce, each time I hit the update button the following piece of code is inserted into the page I am working on.
    <pre><nowiki><div id="bikatoc" style="display: none;"><a class="control">Close</a>
    <div class="toc">
    <ul>
    <li class="toc-h2"><a href="#toc0">Just for the Health of it</a></li>
    <li class="toc-h2"><a href="#toc1">Wild Yukon River Salmon</a></li>
    </ul>
    </div>
    </div>
    </nowiki></pre>
    Something is scanning the h1-h6 tags and creating a table of contents and inserting it into the page. This also happens when I use firebug on other random pages while using firefox.
    I have tried several other browsers to determine if this is a wordpress issue, but this only happens in firefox. It also only happens when I make changes with firebug in firefox. Using firebug lite in chrome did not cause this problem.
    I have been looking all over to figure out what is going on and why the is happening. It is making development near impossible and is forcing me to use a different browser (which I don't enjoy at all)
    Any help you can give me would be wonderful.
    Thank you for your help

    Is it always hidden with display:none?
    One standard diagnostic step is to try Firefox's Safe Mode to see whether it is caused by a custom setting or add-on.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in [http://support.mozilla.com/kb/Safe+Mode Safe Mode] using
    Help > Restart with Add-ons Disabled
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    If the inserts stop, this points to an add-on as the problem. Figuring out which one it is would be the next step. (If the TOC is always hidden, perhaps it is something SEO-related.)

  • Classes and methods help......

    i am learning about classes. i have written program named Vehicle.java as follows :
    import java.io.*;
    public class Vehicle {
         // Attributes
         private String     make;
         private String     model;
         private int     yearOfManufacture;
         public float     speed;
         // Constructors
         public Vehicle(String make, String model, int year, float speed) {
              this.make = make;
              this.model = model;
              this.yearOfManufacture = year;
              this.speed=speed;
         // Get / Set methods for the attributes
         // Get / Set for Make
         public String getMake()
              return (this.make);
         public void setMake(String newMake)
              this.make = newMake;
         // Same for model and year of manufacture
         public float getSpeed()
              return (this.speed);
         // Methods
         public void accelerate()
              // increases the speed
              this.speed++;
         public void decelerate()
              // decreases the speed
              this.speed--;
         public void stop()
              // come to a stop
              this.speed = 0;
    public boolean isMoving()
              if (speed == 0)
                   return (false);
              else
                   return (true);
    and another program called Car.java as follows :
    import java.io.*;
    public class Car extends Vehicle {
    public void accelerate()
    // The same method in Vehicle class incremented speed
    speed = speed + 5;
    when i compiled Vehicle.java, it didnt show any error. but when i tried to compile Car.java, the follwowing error was there:
    import java.io.*;
    public class Car extends Vehicle {
    public void accelerate()
    // The same method in Vehicle class incremented speed
    speed = speed + 5;
    why that error???
    can anyone hlp me, please.......

    why that error???What error? You didn't show the compiler's error diagnostic message.
    I bet it was complaining about the 'Vehicle' identifier, i.e. it couldn't find
    it. Although the Vehicle.class might be present in your current working
    directory, the compiler won't look there by default. It just looks in those
    directories which are part of your classpath. You can set this classpath
    on the command line of the javac command:javac -classpath . Car.javanote the dot '.' it represents the current working directory where your
    Vehicle.class file is stored.
    kind regards,
    Jos

  • Data class is ambiguous

    hi i get the following error when i compile my code. it says that my Date class is ambihuous???
    icomm server\src\icommserver\admin.java:268: reference to Date is ambiguous, both class java.util.Date in java.util and class java.sql.Date in java.sql match..
    here is my code below:
    package icommserver;
    import java.sql.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import java.text.*;
    //get todays date
                     GregorianCalendar thisday = new GregorianCalendar();
                     Date d1 = thisday.getTime();
                     DateFormat df = DateFormat.getDateInstance();
                     today = df.format(d1);

    Did you actually read the compiler's diagnostic? It says this:reference to Date is ambiguous, both class java.util.Date in java.util
    and class java.sql.Date in java.sql match..There are two Data classes in two different packages; when you define
    a Date object, which one do you want? You have to specify this Date
    object using its fully qualified name, i.e. it has to include its full package name.
    kind regards,
    Jos

Maybe you are looking for

  • Issues with Creative Cloud payment - Problemas al intentar pagar el abono de Creative Cloud

    La primera vez que adquirí el producto se realizó el pago, el segundo mes me llegó una notificación que no se había podido efectuar el pago, así que revise mi tarjeta de crédito y había cupo disponible, sin embargo la fecha automática de cobro ya pas

  • Data getting posted on refreshing IE's refresh button..how to stop

    Hi , we have beent rying to resolve this issue. the problem is when we click on submit button data getting posted on to mobile devices and in the next page "message has been sent " text will come.but if refresh button is clicked again data getting po

  • RoboHelp HTML 7 Hangs

    My project hangs - becomes unresponsive - when I attempt to import an image or topic. Any help on this would be appreciated. Thanks! Andrea

  • Plug ins for Safari / Mac??

    We have invested in one of these Macbook Pro thingies and since surfing the net i have noticed that there are a lot of times that i cannot view video on certain web pages. It says i need plugins. Where can i get all of theses plugins required for vie

  • Blue screen after update

    I recently updated my iPad (4th gen)  and when it was time to install the screen went blue and then shut down. I've tried to restart it by holding the lock and home button and connecting it to my laptop but nothing has worked.