Tracing code

We have a replicated DBEntityMgr that has lately been running out of memory. We start the partitions (we have 3 replicates of this DB Service Object) with 8MB minimum & 40 MB max for memory parms.
We turned on trace flags trc:os:1:1 and trc:os:5:5.
After a while (sometimes an hour, sometimes half a day) we suddenly start getting Collect Generation, Collect Stable, & Expands, such as:
Tue Mar 23 10:26:10 : ! Collect Generation(Pages:2306,Total:5821)->(Pages:975,Total:4490)
Tue Mar 23 10:26:19 : ! Collect Generation(Pages:1817,Total:6307)->(Pages:1816,Total:6306)
Tue Mar 23 10:26:24 : ! Collect Stable(Pages:7217)->(Pages:6419)
Tue Mar 23 10:26:28 : ! Collect Generation(Pages:851,Total:7270)->(Pages:851,Total:7270)
Tue Mar 23 10:26:30 : ! Expand Memory(Pages:1024,Total:9216)
Tue Mar 23 10:26:30 : ! Collect Stable(Pages:7679)->(Pages:7661)
Tue Mar 23 10:26:33 : ! Collect Generation(Pages:631,Total:8292)->(Pages:631,Total:8292)
Tue Mar 23 10:26:34 : ! Expand Memory(Pages:1024,Total:10240)
Tue Mar 23 10:26:34 : ! Collect Stable(Pages:8719)->(Pages:8717)
Tue Mar 23 10:26:37 : ! Expand Memory(Pages:1024,Total:11264)
Tue Mar 23 10:26:37 : ! Collect Stable(Pages:9227)->(Pages:9225)
Tue Mar 23 10:26:41 : ! Collect Generation(Pages:911,Total:10136)->(Pages:911,Total:10136)
On the 10:26:28 line, notice that after a collection, no new pages were freed. So, Forte does an expand. 5 seconds later, another collection does the same thing. This continues until Forte expands to the 40MB ceiling we set then:
Tue Mar 23 10:29:32 : ! Collect Stable(Pages:40899)->(Pages:40898)
Tue Mar 23 10:29:32 : ! Collect Stable(Pages:40898)->(Pages:40898)
Tue Mar 23 10:29:32 : FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
Tue Mar 23 10:29:33 : ! Collect Stable(Pages:40899)->(Pages:40899)
Tue Mar 23 10:29:33 : ! Collect Stable(Pages:40900)->(Pages:40900)
Tue Mar 23 10:29:34 : ! Collect Stable(Pages:40901)->(Pages:40901)
Tue Mar 23 10:29:34 : Task 72: qqcm_HoseRecvServiceTask::Run: Caught unexpected exception
Tue Mar 23 10:29:34 : FATAL ERROR: ************* Out of Memory, requested (1K) available (0K) Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
A lot of fun unreadable info follows, then that's it.
Now finally for my question: Is there a way I can see what that SO is doing while all these continuous Expands & Collects are going on? I want to know if my code is running away from me, or if it's a Forte problem.
From the trc:os:5:5 we seem to notice that something called "large non-objects" get big very fast. TechNote 10916 describes large non-objects as "large text strings, network comm buffers, or external connection buffers". We have NO external connections in this Service Object. So, what do the other 2 things mean? How can I see what they are.Thanks for putting up with such a long posting!
Steven Barnes
Steven Barnes
[email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Sunny,
Take a look at the following threads for answers:
How to Use Tcode ST01 and its  Purpose......
Trace
Cheers,
Ben

Similar Messages

  • Help tracing code

    can anyone help me out with tracing this code. I have the answers at the bottom its just that im not really understanding how to do it, if anyone could help that would be great. thanks.
    public class ParamTest {
    static void f(int[] a, int[] b, int[][] c) {
    int x;
    x = a[0];
    a[0] = a[1];
    a[1] = x;
    c[0] = c[1];
    c[1] = b;
    b[0] = 7;
    b = new int[2];
    b[0] = 8;
    b[1] = 9;
    c[0][0] = a[0];
    public static void main(String[] args) {
    int[] x1 = {0,1};
    int[][] x2 = {{2,3},{4,5}};
    f(x1, x2[0], x2);
                   System.out.println(� x1[0]: � + x1[0] +
                                                                                         � x1[1]: � + x1[1] );
                   System.out.println(� x2[0][0]: � + x2[0][0] +
                                                                                         � x2[0][1]: � + x2[0][1] +
         � x2[1][0]: � + x2[1][0] +
                                                                                         � x2[1][1]: � + x2[1][1] );
    // answers
    x1[0]:_1___ x1[1]:_0___
    x2[0][0]:_1___ x2[0][1]:_5___ x2[1][0]: _7___ x2[1][1]: _3___

    Do you not understand the code itself or why it's failing?
    If the first, I can't really help you.. it's crucial that you understand what the code is supposed to be doing.
    If the second, my advice would be to use the following:
    System.out.println(someStringHere)after every line of code to verify that the values of each variable are what you expect them to be.

  • Do any PL/SQL modules exist for tracing code?

    I'm compiling and executing PL/SQL packages from SQL*Plus but woul dlike to trace throu my code to degub it. Could someone help me please?

    Well, I think the best would be for you to get SQL Navigator, that is a very powerful tool for DB Application Development - see www.quest.com.
    Also Developer 2000 has some debugging facilities, but I don't like it as much.

  • Tracing in a Custom Biztalk Adapter

    Hi,
    we have developed a custom adapter in BizTalk for BTS 2013  using the BizTalk Adapter Framework(BAF) approach.
    I want to understand how we can implement some tracing in the Adapter code.
    Essentially, once deployed to production, if the adapter fails for some reason, I would like to enable a switch to trigger tracing.
    Has anyone done anything on this lines?
    please assist.
    regards,
    MS

    You can consider implement BizTalk CAT Instrumentation Framework Controller tracing code in your custom adapter.
    Microsoft product team uses this in BizTalk extensively. CAT has been used virtually by all major infrastructure components inside the BizTalk runtime, including
    EPM, transport adapters, Message Agent, etc.
    Once it’s been implement in your code, it provides the full operational flexibility enables switching the tracing on and off as well as changing the trace level
    dynamically, making it easy to perform detailed tracing in production environments without requiring reboots or application restarts.
    Performance wise, there is no other tracing component can beat this as of now.
    Read more about this component from MSDN blog:
    Best Practices for Instrumenting High Performance
    BizTalk Solutions
    Download the code from CodePlex:
    http://btscatifcontroller.codeplex.com/
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • The Network Adapter could not establish the connection Error Code: 17002

    Hi,
    after upgrade b41 to b49, I get error from subject, without any changes in my app.
    This occurs only on Oracle AS, on standalone OC4J application works OK.
    I use connection defined in persistence.xml:
    <non-jta-data-source>jdbc/MyAppDS</non-jta-data-source>
    and can successfully test this connection in Enterprise manager.
    Also, I tried all tricks mentioned here:
    http://www.websina.com/bugzero/kb/oracle-connection.html
    I know, that this is JDBC layer problem, but I am sure, that my connection is OK, and
    after downgrade to b48 this problem fall away.
    Bye,
    Lumir

    Could you provide the full stack trace to the exception.Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Výjimka vstupu/výstupu: The Network Adapter could not establish the connection
    Error Code: 17002
         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
         at oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
         at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:185)
         at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:233)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:242)
         at oracle.toplink.essentials.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:309)
         at oracle.toplink.essentials.threetier.ConnectionPool.buildConnection(ConnectionPool.java:117)
         at oracle.toplink.essentials.threetier.ExternalConnectionPool.startUp(ExternalConnectionPool.java:135)
         at oracle.toplink.essentials.threetier.ServerSession.connect(ServerSession.java:458)
         at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:586)
         at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:235)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:227)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
         at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
         at idea.isko.db.service.impl.AbstractServiceImpl.createEntityManager(AbstractServiceImpl.java:77)
    How have you deployed your application exactly, i.e. what is the structure of your ear. I use standard war for deploy.
    Is the DataSource defined in your server, or your application? Defined on server, test on Enterprise manager passed successfully.
    Try using a direct JDBC connection in your persistence.xml (driver/url), does this work?Not work, this same exception.
    How do you access your entity manager? (managed, non-managed, jta, non-jta?)non-managed, non-jta.
    FYI, I make downgrade to build 48, and this works - it is last version without this problem.
    I added some tracing code to my SessionCustomizer:customize():
    DatabaseLogin login = session.getLogin();
    logger.fine("URL is :" + login.getDatabaseURL());
    With build 48, connection defined using toplink.jdbc.* , the output is:
    07/06/11 10:04:36.218 10.1.3.1.0 Started
    07/06/11 10:04:43.593 MyApp: 10.1.3.1.0 Started
    07/06/11 10:05:18.578 MyApp: FINE - Customizing session - directProperties
    07/06/11 10:05:18.578 MyApp: FINE - URL is :jdbc:oracle:thin:@(DESCRIPTION ... (cut)
    07/06/11 10:07:16.875 MyApp: 10.1.3.1.0 Stopped
    And after upgrade to build 50:
    07/06/11 10:10:12.703 10.1.3.1.0 Started
    07/06/11 10:10:30.953 MyApp: 10.1.3.1.0 Started
    07/06/11 10:10:52.281 MyApp: FINE - Customizing session - directProperties
    07/06/11 10:10:52.296 MyApp: FINER - THROW
    Local Exception Stack:
    Exception [TOPLINK-28014] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
    Exception Description: Exception was thrown while processing property [toplink.session.customizer] with value [idea.jpa.util.ToplinkSessionCustomizer].
    Internal Exception: Exception [TOPLINK-7058] (Oracle TopLink Essentials - 2.0 (Build b50-beta3 (06/07/2007))): oracle.toplink.essentials.exceptions.ValidationException
    Exception Description: Invalid Connector [JNDIConnectordatasource name=>null] (must be of type DefaultConnector).
    It seems to me, that Login is not properly initialized when app. run in Oracle AS.
    Bye,
    Lumir

  • How to show an image(jpg/gif) on a JTabbedPanel

    Hi
    I tried to show an image on a JPanel of a JTabbedPanel.
    I the only way to show it for some time was this:
    in the StateChangedListener I use drawImage when the selected panel is teh one I want to draw the image at.
    Tracing code makes the panel show, burt when I step
    all the way up, the panel will be repainted without my image.
    I use mediatracker to get the image loaded.
    Any Idea
    Hanns

    JTabbedPane has components as its tabs. Using a JPanel is not mandatory. Try using a JLabel instead with an Icon (use ImageIcon) in it.
    JTabbedPane tabbed = new JTabbedPane();
    tabbed.addTab(
        "my image panel",
        new JLabel( new ImageIcon( "images/MyIcon.gif" ) )
    );if your were referring to the image of the little tabs, use this:
    JTabbedPane tabbed = new JTabbedPane();
    tabbed.addTab(
        "my tab",
        new ImageIcon( "images/MyImage.gif" ),
        myPanel // instance of Component, can be a JPanel or any JComponent you want.
    );

  • Problem in getting update records count while executeBatch()

    hi,
    I have used "Select in Insert" queries for migrating data from one table to another.
    like
    INSERT INTO TABLE1 (COL1, COL2)
    SELECT COL1,COL2,... FROM TABLE2
    WHERE COL1 = ... AND COL2 = ...;
    Case 1:
    I added these statements as addBatch() & at the end i execute method " executeBatch()". It returned the array of integer having record count for each query respectively.
    But that count was always be -2 i.e. SUCCESS_NO_INFO.
    Case 2:
    If i run the same code with executeUpdate() method , it returned me the correct number of records counts that are inserted into the table.
    I cudn't able to understand that it is failing for case1.
    Can anybody tell the reason for this behaviour .......................
    Edited by: user11187328 on Mar 17, 2010 3:45 AM
    Edited by: user11187328 on Mar 17, 2010 3:46 AM

    hi,
    Thanks again for a correct reply but can u also tell me tht which jar i needs to included.
    There are so many jar files & should i remove old jar files or jvm auto picks the updated jar file.
    Following jar files are shown on the link:::
    ojdbc5.jar (1,996,228 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
    ojdbc5_g.jar (3,081,328 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
    ojdbc6.jar (2,111,220 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
    ojdbc6_g.jar (3,401,519 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
    ojdbc5dms.jar (2,429,777 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc5dms_g.jar (3,101,875 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
    ojdbc6dms.jar (2,655,741 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc6dms_g.jar (3,423,263 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
    orai18n.jar (1,656,280 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
    demo.zip (603,363 bytes) - contains sample JDBC programs.

  • Problem in getting correct update records count while getUpdateCount()

    hi,
    I have used "Select in Insert" queries for migrating data from one table to another.
    like
    INSERT INTO TABLE1 (COL1, COL2)
    SELECT COL1,COL2,... FROM TABLE2
    WHERE COL1 = ... AND COL2 = ...;
    Case 1:
    I added these statements as addBatch() & at the end i execute method " executeBatch()".
    Then i execute
    getUpdateCount() method
    on that prepareStatement ,but that count was not correct all the time.
    Case 2:
    If i run the same code with executeUpdate() method , it returned me the correct number of records counts that are inserted into the table.
    I cudn't able to understand that it is failing for case1.
    Can anybody tell the reason for this behaviour .......................
    Edited by: user11187328 on Mar 18, 2010 4:52 AM

    hi,
    Thanks again for a correct reply but can u also tell me tht which jar i needs to included.
    There are so many jar files & should i remove old jar files or jvm auto picks the updated jar file.
    Following jar files are shown on the link:::
    ojdbc5.jar (1,996,228 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
    ojdbc5_g.jar (3,081,328 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
    ojdbc6.jar (2,111,220 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
    ojdbc6_g.jar (3,401,519 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
    ojdbc5dms.jar (2,429,777 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc5dms_g.jar (3,101,875 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
    ojdbc6dms.jar (2,655,741 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc6dms_g.jar (3,423,263 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
    orai18n.jar (1,656,280 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
    demo.zip (603,363 bytes) - contains sample JDBC programs.

  • How to display trace information like C++?

    Well, somebody may have asked this before, but I don't find it in this forum.
    I'd like to know how to implement a trace mechanism in Java like conditional compilation in C++ that the debug version of the program displays full trace information while the release version doesn't even include the tracing code. It is easily achieved in C++ by using #ifdef and #define. One book I once read suggests to use different packages. But this still leaves code that does nothing and takes up space and time in the release version.
    Thanks in advance.

    I am not quite sure about your question, but I try my best just for discussion.
    In my case, I will create a class with many different methods which will print the value of parameter to file(output stream).
    If I would like to trace the program, I will call the class method to output the values of variables and any additional information to file. After that, if there is any error, I will open the ouput file, and look for the generated information.
    Is it what you want?
    (the class only import java.io.*; and java.lang.* by default)

  • SwfPanel Not Loading from SWC

    I'm working in Flash CS5, with FlashDevelop as my external text editor. Everything is AS3.
    I have a custom component I've created that has HTML text content.
    I  created a small Flex 3.5 application as a SWFPanel Custom UI for this.  Nothing fancy - really just a RichTextEditor wired up to the component's  HtmlText property.
    I set the Custom UI in the ComponentDefinition, choosing external.
    Everything  works great - I can edit my text from the components panel, all as  expected. Some tracing code that I put in the Custom UI shows up in my  Flash logs, and the output panel, as expected.
    I compile my component as an SWC, then export it, then  import the SWC into a new movie. The component works as expected but my  Custom UI doesn't load (this is all on the same machine, so the path  should not have changed). In the component inspector I just get an empty  white panel and the tracing code no longer appears.
    I  go back, and change from having the Custom UI as an external SWF to  embedding it. Now the UI doesn't load, even in my original test movie,  and it still doesn't work when exported as an SWC.
    If I unpack the SWC, incidentally, I can see that all the Custom UI code is embedded there, as it should be.
    In  the Flash Log for the main movie, I get no errors at all at any time.  In the movie where I've imported the SWF, I occasionally get the  following, but not necessarily when selecting the component in question:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at StageCore::StageObject/UpdateSelection()
         at StagePlayer$/InvalidateStage()
         at Function/http://adobe.com/AS3/2006/builtin::apply()
         at flash.external::ExternalInterface$/_callIn()
         at Function/<anonymous>()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at StageCore::StageObject/GetRealObject()
        at StageCore::StageObject/ClearStage()
        at StageCore::MainStage/ClearTree()
        at StagePlayer$/RemoveView()
        at Function/http://adobe.com/AS3/2006/builtin::apply()
        at flash.external::ExternalInterface$/_callIn()
        at Function/<anonymous>()
    Has  anyone experienced this problem? Any idea what it might be? Is the fact  that the SwfPanel is a flex app problematic? If so, why does it work in  the test movie but not when exported?
    Any help would  be appreciated. I'm really in a hurry on this so I'm cross-posting to  the extensions and AS3 fora in the hope that someone might have an  answer. I think I've read all the CS3 component tutorials out there but  nothing seems to cover this problem except some old stuff about AS3  being problematic in SwfPanels. Not sure if this is still current  though.
    Thanks in advance, as always, for any assistance.
    Jude

    Thanks a lot Jens Petersen
    It's is loading ..........
    MI means miniute.
    am i correct.
    but i didn't get the logic behind that.
    can u please explain that.
    Thanks & Regards
    Salih KM

  • Transactional control statements in trigger

    Hi,
      Transaction Control statement, which cannot be executed within a trigger body??why...explain with reason
    its helpful me..

    Ishan wrote:
    "a way you can actually make it work" .... seriously?
    Yes, I was serious. Why? What's wrong with that? Technically speaking, won't it work?
    This is not a way to make it work, it's a way to break an application/process
    Well !!! All the cases?
    Here's  a scenario
    I want to audit a table where if any change done by the user has to be tracked in an audit table, irrespective whether the change has now been rolled back in the main table. I want to see what change was done? How would I do it? Going by your logic of breaking application/process, I should never use trigger as  AUTONOMOUS_TRANSACTION. Am I right? How would I achieve it now?
    Your auditing/tracing code should be in a separate procedure and that procedure should be autonomous, so that the requirement to write autonomous data for that purpose is kept isolated from the trigger code.  Consider this scenario instead.  You want to write audit/trace information from your triggers, so you make the trigger autonomous and put in your code to write the audit/trace information.  Later on, someone who hasn't a clue comes along and decides they need to do something else in that trigger (well why write a new trigger when one already exists?) and they get it to write some data in relation to the data being created by the trigger.  Now you suddenly have a transactionally unsafe application, where this 'child data' can still be written and committed even if there's a problem in the main transaction.  By isolating auding/tracing away to it's own autonomous procedure, you make it clear that it's only the auditing/tracing that should be autonomous and prevent any problems from occuring inside the trigger itself.
    That's more of a way to write bad code that is transactionally unsafe and demonstrates a lack of understanding of database transactional processing or how the rdbms on the server processes commits and could potentially lead to write contention in the writer processes, of which many would be spawned if the number of inserts (in this example) was high.
    The above comment is based on the assumption(which, I never stated) that in whatever scenario my code would be implemented, it would ALWAYS break the process. There are scenarios where this code could be required.
    Here's a link from Oracle Documentation, that uses an example of creating a trigger with AUTONOMOUS_TRANSACTION. If it is a so bad example which "demonstrates a lack of understanding of database transactional processing", why would Oracle even mention it in their documentation?
    http://docs.oracle.com/cd/B19306_01/appdev.102/b14261/sqloperations.htm#BABDHGAB
    And the answer is because there is a way to do it and it could actually be required, even though it's rare.
    I just showed OP, that it's not allowed directly and if required, it can be done as there is a way to do it. When to do it and what could be the consequences was never the scope of the question.
    Yes, and there's ways to jump off cliffs and kill youself, but I wouldn't recommend demonstrating how to do that to people just because it's possible.
    Just because it's in the oracle documentation doesn't always mean it's best practice.  A lot of the documentation was written a long time ago and best practices have changed as well as further functionality added, and Oracle has been known to make mistakes in their documentation too.  However in this example, it's using it for auditing purposes, so the idea was almost there, but they still haven't met best practices of keeping the auditing isolated, so their example is not the best.

  • Proxying alreade created objects.

    With reflection Proxies can be created for defined interfaces. (using:
    Foo f = (Foo) Proxy.newProxyInstance(Foo.class.getClassLoader(),
    new Class[] { Foo.class },
    handler);
    Is it possible to create a proxy for already created objects?.
    With that i mean for example: I have a instance of class Foo. Foo has one method bar(). When bar() is invoked on this particular instance of Foo I want the same behavior as with a Proxy/InvocationHandler with an invocation on the invoke() method on the InvocationHandler.

    AFAIKS all you need to do is to create the a Invokation handler that passes all calls to your concrete class instance.
    You might do something like
    public Foo wrapFoo(final Foo concreteFoo) {
        return proxy.newProxyInstance(Foo.class.getClassLoader, new Class[]{Foo.class}, new InvocationHandler() {
        public Object invoke(Object proxy, Method method, Object[]args) throws Exception {
          try {
         // insert tracing code etc. here
           return method.invoke(concreteFoo, args);
              } catch (InvocationTargetExcepion e) {
                 throw e.getCause();
      }Of course, Foo must be an interface.

  • Which JDBC driver do I want?

    I have the oracle database on a oracle linux guest VM on a Windows 7 host.
    I want to run queries on the windows 7 host that execute in the linux oracle guest OS running the oracle database.
    I would like to run [http://squirrel-sql.sourceforge.net/|http://squirrel-sql.sourceforge.net/] and execute SQL queries and write java programs that use the jdbc drivers to execute queries on windows 7.
    Sooo.... I go to this page:
    [http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html|http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html]
    And I'm overwhelmed with choices! Can someone help me identify which JDBC driver I want?
    Oracle Database 11g Release 2 (11.2.0.3) JDBC Drivers
    SimpleFAN
    simplefan.jar (20,345 bytes), simplefan policy, javadoc
    JDBC Thin for All Platforms
         JavaDoc (6,456,081 bytes)
         README
         ojdbc5.jar (2,095,932 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
         ojdbc5_g.jar (3,426,203 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
         ojdbc6.jar (2,714,189 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
         ojdbc6_g.jar (4,463,274 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
         ojdbc5dms.jar (2,617,374 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
         ojdbc5dms_g.jar (3,447,502 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
         ojdbc6dms.jar (3,327,932 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
         ojdbc6dms_g.jar (4,486,082 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
         orai18n.jar (1,656,248 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
         demo.zip (606,505 bytes) - contains sample JDBC programs.
         xdb6.jar (262,740 bytes) - To use the standard JDBC4.0 java.sql.SQLXML interface with JDBC 11.2.0.3, you need to use xdb6.jar (instead of xdb.jar) from the 11.2.0.3 distribution..
    Note: For platform specific JDBC-OCI libraries See Instant Client
    Thanks!
    Siegfried

    I restored the original source and compiled it on my linux VM and recieved a similar stack trace.
    Here is the result of the first command:
    [oracle@localhost conn]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:57:19
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 28-SEP-2012 19:24:47
    Uptime 0 days 1 hr. 32 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
    Listener Log File /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=80))(PROTOCOL_STACK=(PRESENTATION=HTTP)(SESSION=RAW)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=21))(PROTOCOL_STACK=(PRESENTATION=FTP)(SESSION=RAW)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 2 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@localhost conn]$
    Here is the second
    [oracle@localhost conn]$ lsnrctl service
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:58:42
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 2 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:34 refused:0 state:ready
    LOCAL SERVER
    "N000" established:0 refused:0 current:0 max:20000 state:ready
    CMON <machine: localhost.localdomain, pid: 2750>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=22398))
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: localhost.localdomain, pid: 2700>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=31281))
    The command completed successfully
    [oracle@localhost conn]$
    Thanks!

  • ADF UIX "adf-faces-ea11" with "myfaces-1.0.7" and JBoss 3.2.5

    Hi,
    I tried to deploy adf-faces-ea11 on JBoss 3.2.5, using MyFaces as the JSF engine. The components render OK, but when I press the “af:commandButton” I encounter the following exception:
    If I press on “h:commandButton” I don’t have any problems. (I have attached the jsp page at the bottom of the post)
    javax.servlet.ServletException: Key UINodePropertyKey[validators,13] is a list key
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:125)
    java.lang.IllegalArgumentException: Key UINodePropertyKey[validators,13] is a list key
         oracle.adf.view.faces.bean.FacesBeanImpl._checkNotListKey(FacesBeanImpl.java:403)
         oracle.adf.view.faces.bean.FacesBeanImpl.getValueBinding(FacesBeanImpl.java:83)
         oracle.adf.view.faces.component.UIXComponentBase.getValueBinding(UIXComponentBase.java:164)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:225)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printComponent(DebugUtils.java:326)
         net.sourceforge.myfaces.util.DebugUtils.printView(DebugUtils.java:160)
         net.sourceforge.myfaces.util.DebugUtils.traceView(DebugUtils.java:152)
         net.sourceforge.myfaces.util.DebugUtils.traceView(DebugUtils.java:132)
         net.sourceforge.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:127)
         net.sourceforge.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:67)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
    The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11/html" prefix="afh" %>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA11" prefix="af" %>
    <f:view>
    <afh:html>
    <afh:head title="PanelList Demo"/>
    <afh:body>
    <h:form id="test1">
    <af:outputLabel value="Test Oracle"/>
    <!-- A chooseColor which uses the standard "default49" palette -->
    <af:chooseColor id="cp0"
    colorData="#{adfFacesContext.colorPalette.default49}"/>
    <af:selectInputDate id="d1" value="#{DateBean.date1}"
    label="Date picker"/>
    <af:commandButton text="Enter" action="#{DateBean.pressMe}"/>
    <h:commandButton value="Standard Button" action="#{DateBean.pressMe}"/>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>

    It looks like there's some debug tracing code in myfaces that you've enabled that is interacting poorly with ADF Faces. Specifically, ADF Faces is really unhappy when you even try to get a ValueBinding for something that doesn't support ValueBindings (like "validators").
    For now, I'd suggest that you lower the level of logging, at least for the net.sourceforge.myfaces.lifecycle package.

  • My TreeCellEditor takes 100% CPU-power

    Hi,
    I have a custom TreeCellEditor on a JTree which displays a JComponent with (a JCheckBox and a JLabel). When I click once on a label ( on a checkbox, everything is normal ), the nodes is selected and the TreeCellEditor is invoked. But when I open the Windows Task Manager, I see that the thread is using 100% processer power. This stops as soon as I click on a JCheckBox or when I expand or collapse another node in the tree.
    I've put tracing code in all my methods, but none of them seem to cause an infinite loop... Any ideas...?
    Thanx!

    I really don't have the time to search the relevant peaces of code, but maybe you can help me find the problem myself. When I override the paint() method in my component and I dump the stack before calling the super.paint(), I can see that the repaintmanager considers the component as a 'dirty region' and repaints it, over and over and over...
    Do you, or anybody else, know when the repaintmanager considers a component as 'dirty' ?

Maybe you are looking for

  • External Monitor with 13" i7 Macbook Pro

    Hi, i recently purchased a lg 23 inch monitor. I used a mini display port to hdmi adapter to connect the display to the macbook. The display settings would not let me choose the native 1920 . 1080 resolution of the lg monitor. Only when using second

  • In xi server , client admin

    hi in single xi server , can it possible to do client admin, user admin, tms and all in single xi server without any support of ecc 5.0 or 6.0 or else ? - plz give me the sugg thanq

  • Connecting iPhone to microphone

    Anyone know of any microphones you can connnect the iPhone to, in order to use the iPhone 3Gs as a tiny video camera? Like an adapter of some sort, so you can use a handheld microphone for interviews.

  • Cd Jewel Case options in latest iTunes

    HI, since the latest version, I can no longer print CD jewel case inserts as before. Before, we could hit custom and choose the fields we wanted printed at the top. Now, it only gives you the option to print the song, artist, and time. If I try custo

  • HT5624 i forgot my ipad password and now is lock,how can i unlock it

    my ipad is lock and i cant remember my password,i am trying to restore but i dont know how please help