Problem with Hibernate/WL 10.3/Eclipse while deploying

Hello
We have an enterprise application project with Eclipse. We use hibernate for persistence. While deploying I get the folowing error:
weblogic.deployment.EnvironmentException: Error processing persitence unit AwarePU of module TemplateStorage-ejb.jar: Error instantiating the Persistence Provider class org.hibernate.ejb.HibernatePersistence of the PersistenceUnit AwarePU: java.lang.ClassNotFoundException: org.hibernate.ejb.HibernatePersistence
I understand that WL 10.3 has Kodo - BEA’s former JPA implementation and is not shipped with hibernate. There might be an easy way to resolve this. Any reply would be highly appreciated.....
Thanks

Thanks. I did inchude hibernate-entitymanager.jar into /root/bea/user_projects/domains/<project_name>/lib
and get the following error:
An error occurred during activation of changes, please see the log for details.
org.hibernate.proxy.EntityNotFoundDelegate
An error occurred during activation of changes, please see the log for details.
Could not initialize class org.hibernate.ejb.Ejb3Configuration
I am deploying an enterprise app with a few EJB modules.
Thanks

Similar Messages

  • Hai Matt  I have a problem with download a new app. While I bought iphone5, I take iphone to shopkeeper for download some app and videos that he used his Apple ID . That's t problem now.. Not all the time his ID is appearing but some times hi

    Hai Matt
    I have a problem with download a new app. While I bought iphone5, I take iphone to shopkeeper for download some app and videos that he used his Apple ID . That's t problem now.. Not all the time his ID is appearing but some times his Apple ID is appearing that time I can't download app, videos, songs.. So please guide me to remove that ID or how to solve that..
    Regards
    Babu

    Check Settings/iTunes and AppStore/AppleID and make sure that your AppleID is filled in. If not , sign out and sign in with the correct info.
    To make sure that no other apps or videos are on your device than the one you bought, set it up as new device, explained here: How to back up your data and set up as a new device
    Content that is not bought with your ID can't be used on your phone, that's why his ID and password is asked when you try to use those apps downloaded in the store.

  • Problems with hibernate

    Hi.
    My MBP doesn't hibernate. The Energy-Preferences are set to 1 Min.
    No USB or firewire devices connected. Even when I close all applications
    my MAC doesn't hibernate. When I close my notebook lid - it sleeps.
    I resetted PMU, PRAM, restarted, deleted com.apple.powermanagement.libs
    etc.
    I don't know what to do. 3 weeks ago it hibernated always. Doesn't matter
    which programm ran.
    Any ideas?
    Problems with Mac OS X 10.4.9???
    Problems with battery update 3 weeks ago?

    The "normal" mode is sleep when the lid is closed. Hibernate mode must be specifically set by you. You can set the mode using the Terminal application in your Utilities folder. See the following:
    Description and modification of the different hibernate modes
    When the computer goes into sleeping mode, its behavior depends on a power management variable called hibernate mode. The hibernate mode can be set to different values:
    * 0 : Default sleep behavior on most Apple computers. RAM is still powered on while sleeping. Wake up is fast. Safe sleep is disabled.
    * 1 : Hibernation behavior. System is totally shut down while sleeping. RAM contents are dumped to disk. Wake up is slow.
    * 3 : Default behavior on Powerbook HD computers. RAM is still powered on while sleeping. Wake up is fast. Safe sleep is enabled, so RAM contents are also dumped to disk before going to sleep.
    Only a single mode can be activated at a time. In order to check what hibernate mode is currently active, the following command can be used in the Terminal application:
    pmset -g | grep hibernatemode
    In addition, users with administrator privileges can choose the hibernate mode. In order to do so, the following command can be used:
    sudo pmset -a hibernatemode X
    with X replaced by the value of the hibernate mode to set. You will be asked to enter your admin password. It will not be echoed.

  • Weblogic 10.3.5.0 problem with hibernate criteria

    Hi,
    I have problim with using Hibernate Criteria on Weblogic server. Everithing works fine on Tomcat.
    On weblogic I can execute this on Weblogic :
    Query query = sessionFactory.getCurrentSession().createSQLQuery("select sysdate from dual");//To get string date
    String result = query.uniqueResult().toString();
    ,but I have problem with executing criteria which work on tomcat:
         Criteria crit=sessionFactory.getCurrentSession().createCriteria(MyclassWithHibernate.class);
         crit.setFirstResult(0);
         crit.setMaxResults(1);
         return (MyclassWithHibernate) crit.uniqueResult();
    On weblogic, same criteria return me null and I get this exception:
    java.lang.NullPointerException
         at test.Rasa.getValueTest(Rasa.java:68)
         at test.Rasa$$FastClassByCGLIB$$b6e6c0b9.invoke(<generated>)
         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
         at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)
         at test.Rasa$$EnhancerByCGLIB$$e20363db.getValueTest(<generated>)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:418)
         at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
         at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)
         at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1005)
         at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<generated>)
         at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
         at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
         at org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageInterceptionAdvice.java:66)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
         at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:576)
         at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$64941f01.serviceMessage(<generated>)
         at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:103)
         at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
         at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
         at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
         at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:166)
         at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
         at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$64941f01.service(<generated>)
         at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBrokerHandlerAdapter.java:101)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Enwironment is :
    WebLogic Server 10.3.5.0
    Hibernate 3.x
    Spring 3.x
    I am using this configuration i application context:
    <bean id="dataSource" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close">
    <property name="connectionCachingEnabled" value="true" />
    <property name="URL" value="jdbc:oracle:thin:@address:port:db" />
         <property name="user" value="myuser"></property>
         <property name="password" value="mypass"></property>
    <property name="connectionCacheProperties">
    <props merge="default">
    <prop key="MinLimit">3</prop>
    <prop key="MaxLimit">20</prop>
    </props>
    </property>
    </bean>
    <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
    <property name="dataSource" ref ="dataSource"/>
              <property name="packagesToScan" value="test*" />
    <property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"/>
              <property name="hibernateProperties">
                        <props>
                        <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
    <prop key="hibernate.show_sql">true</prop>
                        <prop key="hibernate.format_sql">true</prop>
                        <prop key="hibernate.use_sql_comments">true</prop>
                        <prop key="hibernate.generate_statistics">true</prop>
    </props>
              </property>
    </bean>
    Thanks for any help.

    Which code snippet is throwing the nullpointerexception?
    Does Spring create the SessionFactory?
    Maybe it is related but when running Hibernate on WebLogic you have to take care of a classloading issue with the antlr libary,
    more information can be found here: http://middlewaremagic.com/weblogic/?p=5861

  • Linked Folder Problem with Oracle Enterprise Pack for Eclipse

    I need to migrate an Eclipse/Tomcat dynamic web project to Oracle Enterprise Pack for Eclipse/WebLogic.
    The Eclipse/Tomcat shares JavaScript files with other projects by using an linked folder /JS under WebContent. It works fine. But the migrated version in Oracle Enterprise Pack for Eclipse shows warning: "Resouce WebContent/WEB-INF/JS/Common.js not found." (Common.js is a JavaScript file in the folder /JS). The linked folder is under WebContent, not WebContent/WEB-INF. For some unknown reason, the mapping is not correct. I deleted and re-created the linked folder, it was still the same. I then delete the lined folder and created a real folder and copied the files into under WebContent/JS folder, it solved the problem.
    I want to use linked folder because I do not want to maintain multiple copies of the same set of files. Please help to solve this mapping problem with linked folders.
    Thank you,
    Jerry

    Thanks -- I tried Kosta's suggestion (which I had tried before) but still the same error.
    I realized that on my development install (the rest of my team has a year+ old install) that I installed weblogic 12c version 12.1.3 (they have weblogic 12c 12.1.1).  12.1.3 requires jdk 1.8, correct?  I started eclipse w/ jdk 1.8 & no more error.  I added jdk 1.7 (jdk 1.7.0_45) as the default Java compiler in my Eclipse STS (sts 3.6.4; luna 4.4.2). 
    When I added a weblogic server instance to eclipse, 12.1.3 would not accept the jdk 1 compiler - it needed java 1.8.  So ... I specified that.
    I haven't tried it yet but -- is it ok to compile the code w/ jdk 1.7.0_45 and deploy it to weblogic 12.1.3 that uses jdk 1.8.0_40?
    Thanks,
    Bill

  • Problem with errorPage in page directive tag while proxying request from iPlanet to WebLogic

              Hi,
              We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the application server on different solaris machines. We have put our JSPs in the weblogic application server and proxy the requests from iplanet to weblogic.
              We are facing a problem with the errorPage in the 'Page Directive' tag of the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page directive tag. If we directly access the JSP from the WebLogic, and there is an system error, the error page specified in the JSP is getting displayed. But if we access the JSP from iPlanet and there is an system error, instead of displaying the error page, iPlanet is asking whether we want to download the file. If we say yes it downloads the actual JSP code itself. We have defined the mime types in obj.conf file as well as mime.types for the iPlanet.
              If anyone knows how this can be solved, it would be of great help
              Regards,
              Krish
              

    How did you configure the obj.conf file? proxy by mime type or ppath? It
              seems errorPage.jsp was not proxyed and treated as a unknown mime type.
              Krishnaraja <[email protected]> wrote in message
              news:3a372d79$[email protected]..
              >
              > Hi,
              >
              > We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the
              application server on different solaris machines. We have put our JSPs in
              the weblogic application server and proxy the requests from iplanet to
              weblogic.
              >
              > We are facing a problem with the errorPage in the 'Page Directive' tag of
              the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page
              directive tag. If we directly access the JSP from the WebLogic, and there is
              an system error, the error page specified in the JSP is getting displayed.
              But if we access the JSP from iPlanet and there is an system error, instead
              of displaying the error page, iPlanet is asking whether we want to download
              the file. If we say yes it downloads the actual JSP code itself. We have
              defined the mime types in obj.conf file as well as mime.types for the
              iPlanet.
              >
              > If anyone knows how this can be solved, it would be of great help
              >
              > Regards,
              > Krish
              

  • Problem with Hibernate Connection and MySQL

    I have the following setup:
    J2EE web-application, Java Servlets, Jsp, Hibernate for DB persistence, MySQL 4 (InnoDB tables)
    I have not specified any connection pool parameters (c3p0) in my hibernate.cfg.xml, as the default settings should suffice for my purposes.
    I use the SessionFactory object as follows.
    In my database access class, I have a static declaration that initialises the new SessionFactory.
    Then, I use Session session = sessionFactory.getSession(); and session.close(); to do my DB access.
    Likewise, when storing data into the DB, I use a Transaction object, and use transaction.commit(); at the end of database access.
    The problem is:
    When I store data into the database, the changes do not occur on the website. In other words, the data gets stored into the tables (I check that via phpMyAdmin) but when accessing it, it only gets the old data. This is a serious problem as I am developing a website with attached CMS that will be used to update the pages.
    The OTHER problem is:
    Instead of having a static initialisation of the SessionFactory object, I created a new one every time I needed to access the database. Although I had a sessionFactory.close(); statement at the end of the database acccess, I got an exception:
    "java.sql.SQLException: User db_user already has more than 'max_user_connections' active connections"
    At the very moment I don't have access to my code.
    If somebody has a suggestion or a solution to the problem, please reply.
    Also, I will supply any code that is necessary to identify the problem.
    Anders

    Thanks for the tip, but how do you mean to update the object?
    Here is the code that stores the data into the database:
    'sessionFactory' is a static SessionFactory object.
         public static int saveOrUpdate ( Object object ) {
              int flag = 0; // 0 is true
              LOG.info("CMSLogic >>> saveOrUpdate() - object: " + object );
              Session session = null;
              Transaction transaction = null;
              try {
                   session = sessionFactory.openSession();
                   transaction = session.beginTransaction();
                   LOG.info("CMSLogic >>> saveOrUpdate() - object to save or update: " + object );
                   session.saveOrUpdate(object);
                   // Flush the session
                   if ( session!= null )
                        session.flush();
                   transaction.commit();
              } catch ( Exception e ) {
                   e.printStackTrace ();
                   transaction.rollback();
                   flag = 1;
              } finally {
                   try{
                        if (session != null) {
                             session.close();
                   } catch (Exception e) {
                        LOG.error("CMSLogic >>> saveOrUpdate() - threw exception: " + e);
              return flag;
         }Further, here is the code that fetches the data from the DB:
         public static Item getItemByURL ( String url ) {
              // Verify the URL
              if ( url.charAt(0) == '/' ) url = url.substring (1);
              String [] urlArr = url.split( "/" );
              LOG.info("BusinessLogic >>> getItemByURL() - split url: urlArr.length: " + urlArr.length );
              for ( int i = 0; i < urlArr.length; i++ )
                   System.out.println ( urlArr[i] + ", " );
              if ( urlArr == null ) return null;
              if ( urlArr.length == 0 ) return null;
              if ( urlArr.length > 4 ) return null; // If the path depth is more than 3 levels, abort
              // Fetch data from DB
              List<Item> items = null;
              Session session = null;
              Query query = null;
              try {
                   session = sessionFactory.openSession();
                   if ( urlArr.length == 1 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE 'root' " +
                             "AND filename LIKE '" + urlArr[0] + "'" );
                   else if ( urlArr.length == 2 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE '" + urlArr[0] + "' " +
                             "AND filename LIKE '" + urlArr[1] + "'" );
                   else if ( urlArr.length == 3 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE '" + urlArr[1] + "' " +
                             "AND section.parentSection.sectionKey LIKE '" + urlArr[0] + "' " +
                             "AND filename LIKE '" + urlArr[2] + "'" );
                   else { // if ( urlArr.length == 4 ) {
                        query = session.createQuery(
                             "FROM Item WHERE section.sectionKey LIKE '" + urlArr[2] + "' " +
                             "AND section.parentSection.sectionKey LIKE '" + urlArr[1] + "' " +
                             "AND section.parentSection.parentSection.sectionKey LIKE '" + urlArr[0] + "' " +
                             "AND filename LIKE '" + urlArr[3] + "'" );
                   items = query.list();
                   LOG.info("BusinessLogic >>> getItemByURL() - items = query.list(): " + items );
                   // Load the related revisions, too
                   if ( !items.isEmpty() ) {
                        Hibernate.initialize ( items.get(0).getRevisions() );
                        LOG.info("BusinessLogic >>> getItemByURL() - initialised revisions for item." );
                        Hibernate.initialize ( items.get(0).getRevisions().get(0).getTemplate() );
                        LOG.info("BusinessLogic >>> getItemByURL() - initialised template for first revision." );
                   // Flush the session
                   if ( session!= null )
                        session.flush();
              } catch ( Exception e ) {
                   e.printStackTrace ();
                   LOG.error("BusinessLogic >>> getItemByURL() - threw exception: " + e );
              } finally {
                   session.close();
                   //sessionFactory.close(); // !!!???
              // Return query results
              if ( items == null ) return null;
              else if ( items.isEmpty() == true ) return null;
              else {
                   LOG.info("BusinessLogic >>> getItemByURL() - items.get(0).getRevisions().size(): " + items.get(0).getRevisions().size() );
                   LOG.info("BusinessLogic >>> getItemByURL() - items.get(0).getRevisions().get(0): " + items.get(0).getRevisions().get(0) );
                   return items.get(0);
         }Any constructive suggestions and helpful comments are more than welcome.
    I have been struggling with this problem for a while now.
    Anders

  • Strange problem with Hibernate - JDBC

    Hello, company where I work, has a customer with installed a web application that use Hibernate 3.2.6GA and "Oracle Database 10g Release 10.1.0.3.0 - Production" for persistent data.
    O.S. is RedHat Enterprise with kernel 2.6.9-5 and
    Java has version "1.6.0_01"
    Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
    Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)
    after an update of JVM with:
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)
    my application began a strange behaviour, when I save a double value on DB, it was rounded i.e. 1,32 became 1.40.
    I haven't updated other package.
    The application server that I use is Tomcat 6.0.14 and oracle driver is "Oracle JDBC driver, version: 10.1.0.2.0"
    When I revert configuration to return to previous JVM application restarted work correctly.
    It can come from a Jdbc bug/ compatibility problem?
    Thanks for Help.

    my application began a strange behaviour, when I save a double value on DB, it was rounded i.e. 1,32 became 1.40.That's not proper rounding by any rule I know of.
    I haven't updated other package.Your code is wrong.
    The application server that I use is Tomcat 6.0.14 and oracle driver is "Oracle JDBC driver, version: 10.1.0.2.0"
    When I revert configuration to return to previous JVM application restarted work correctly.I don't believe you. Something else is wrong. You just haven't found it.
    No insult intended, it's just more likely to be your stuff than the JDK or Oracle. They write better code than you or I do.
    It can come from a Jdbc bug/ compatibility problem? Nope, it's your code for sure.
    %

  • Problem with doClick(int i) inside a while loop.

    I'm doing a boring "watch and repeat" game. I have 9 JButtons. I want the computer to randomly click on those buttons and the player have to repeat the numbers in the correct order.
    My problem is when the computer is showing which buttons to press. My code looks like this (sorry about the formatting):
    ActionListener aL = new ActionListener() {
    public void actionPerformed(ActionEvent e){
    if(e.getSource()==start){
    while (something something){
    switch(here is a random number between 1 and 9){
    case 1: j1.doClick(900); //j1 is a JButton
    My problem is that the doClick doesn't release the button during the whole loop. If it loops 5 times, then all the pressed buttons will remain pressed down for as long as the loop is running. I've tried to call repaint, but it doesn't work. All buttons remains pressed even though they should go back to normal after 0,9 seconds.
    I don't think the ActionListener should cause any problem. And neither does the switch. It seems like the application simple won't repaint itself until the loop is finished.

    Ok here is the code to make work what you want. Note that it looks ugly :)
    import javax.swing.*;
    import java.awt.*;
    public class Test extends JFrame implements Runnable {
      private JButton btn1, btn2, btn3;
      public Test() {
        super("Test");
        btn1 = new JButton("1");
        btn2 = new JButton("2");
        btn3 = new JButton("3");
        JPanel p = new JPanel(new FlowLayout());
        p.add(btn1);
        p.add(btn2);
        p.add(btn3);
        getContentPane().add(p, BorderLayout.CENTER);
        pack();
        setVisible(true);
        Thread t = new Thread(this);
        t.start();
      public static void main(String args[]) {
        new Test();
      public void run() {
        //This run method is NOT in the event thread
        while (true) {
          try { Thread.sleep(1000); } catch (InterruptedException e) {}
          SwingUtilities.invokeLater(new Worker(btn1));
          try { Thread.sleep(1000); } catch (InterruptedException e) {}
          SwingUtilities.invokeLater(new Worker(btn2));
          try { Thread.sleep(1000); } catch (InterruptedException e) {}
          SwingUtilities.invokeLater(new Worker(btn3));
      class Worker implements Runnable {
        JButton button = null;
        public Worker(JButton b) {
          button = b;
        public void run() {
          button.doClick(100);
    }

  • Facing "Display Flickering" problem with my 15" macbook pro(A1286)while swapping the desktops and closing the tabs.....need help...reply soon

    Suggest Solution for this Display Flickering problem ....

    Hi, I read the post about calibration and I probably do that a little too often TBH! As I get so little time out the battery and mainly use my MBP on my lap, usually with the power supply near by, it gets charged to full, run to empty to the point of sleep, or sometimes it even cuts out and then is recharged to full again, so I really think it's new battery time. I've seen non Apple Official ones for between £35 and £65 that have 3 year warranties and state they are around 5200mh but am unsure due to reviews.
    Later...
    Anyway's I have now ordered a non Apple replacement from Amazon for about £35 and it has several good reviews and 4.5 out of 5 stars so I'll see if it works and report back. If it doesn't I'll send it back and get the Official Apple one.
    Message was edited by: Missy Steph

  • Problems with Hibernate/JPA in our current Netweaver project

    Hi together,
    currently we are trying to migrate our Glassfish project to run under Netweaver. Til now, we have used Hibernate as the JPA Implementation.
    If we are trying to deploy our EAR, we get the failure that the EntityManager (Persistance Unit) can not be created.
    Here is our persistence-context.xml
         <persistence-unit name="soiPersistenceUnit" transaction-type="JTA">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>SOI_DB</jta-data-source>
              <class>de.hr.ec.hai.ejb.entity.Project</class>
              <properties>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.SAPDBDialect" />
                   <property name="hibernate.hbm2ddl.auto" value="update" />
                   <property name="hibernate.show_sql" value="true" />
                   <property name="hibernate.query.substitutions" value="true '1', false '0'" />
                   <property name="hibernate.current_session_context_class" value="jta" />
                   <property name="hibernate.transaction.manager_lookup_class" value="de.hr.ec.hai.ejb.service.SAPWebASTransactionManagerLookup" />
                   <property name="hibernate.jdbc.batch.size" value="1" />
              </properties>
         </persistence-unit>
    Has anyone an good hint to solve the problem?

    Hi,
    In SAP NetWeaver, you should use the persistence.xml file to configure the persistence unit.
    More information: http://help.sap.com/saphelp_nwce711/helpdata/en/46/96ec3c33621e5ce10000000a1553f6/frameset.htm
    Moreover, the properties you have are Hibernate-specific, which is perhaps one of the basic reasons for the problems you experience.
    The SAP JPA platform supports all standard JPA properties (as per the EJB 3.0 specification) + the SAP-specific properties.
    More information: http://help.sap.com/saphelp_nwce711/helpdata/en/77/fe0955fde340b3ab5220182d62b203/frameset.htm
    Not least, you may need to consider the overall Java persistence infrastructure @ SAP.
    More information: http://help.sap.com/saphelp_nwce711/helpdata/en/2d/23b32e8c0152469edf07909703fe03/frameset.htm
    I hope that helps.
    Best,
    Yordan
    P.S. I assume you want to migrate your application to SAP enhancement package 1 for SAP NetWeaver CE 7.1.

  • Problem with BPEL Designer Plugin in Eclipse

    I am not able to open the BPEL designer in Eclipse.
    I am using Version: 3.0.1 with the Build id: 200409161125
    When I select New Project, i cannot see the "Oracle BPEL Project" option in the New Project wizard.
    Is there any way to integrate the plug-in into the Eclipse.Please help.
    /Kiran.

    Hi Kiran,
    Eclipse requires to detect new plugins.Usually you only need to launch Eclipse with the 'clean' optionnal parameter (run "eclipse.exe -clean").
    If the setup of the BPEL Designer plug-in have been completed properly, you should see the the 'Oracle BPEL Project' item under de 'New Project' wizard menu.
    Hope this could help.
    Edmond Cissé.

  • Visio 2007 launch problem with Office 2013 installed "Please wait while Windows configures Microsoft Visio..."

    Running under WIN7-64 bit with Office 2013.  Requests reinstall every time it is run. Tried uninstalling and reinstalling. No change. Office 2013 does not recognize that Visio 2007 is installed. Copy paste operations between Visio and Word 2013 don't
    work. Tried disabling sharepoint access for Visio 2007 and did a repair for Office 2013. No change.Tried various compatibility modes. No change. Ran Microsoft troubleshooter which verified there is a compatibility issue but provided no solution.
    Tried the following...
    Type the following command, and then press Enter:
    reg add HKCU\Software\Microsoft\Office\14.0\Visio\Options /v NoReReg /t REG_DWORD /d 1
    no change

    Hi,
    Based on the situation, I recommend you try to use locale administer account to login in the computer.
    Then we re-install Visio 2007, if you solve the issue,please let me know.
    Regards,
    George Zhao
    TechNet Community Support
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Problem with  java.lang.reflect in Eclipse

    I'm just reading java tutorial about that library, but when i'm trying to execute those example program's e.g
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Type;
    import static java.lang.System.out;
    public class ConstructorSift {
        public static void main(String... args) {
         try {
             Class<?> cArg = Class.forName(args[1]);
             Class<?> c = Class.forName(args[0]);
             Constructor[] allConstructors = c.getDeclaredConstructors();
             for (Constructor ctor : allConstructors) {
              Class<?>[] pType  = ctor.getParameterTypes();
              for (int i = 0; i < pType.length; i++) {
                  if (pType.equals(cArg)) {
                   out.format("%s%n", ctor.toGenericString());
                   Type[] gpType = ctor.getGenericParameterTypes();
                   for (int j = 0; j < gpType.length; j++) {
                   char ch = (pType[j].equals(cArg) ? '*' : ' ');
                   out.format("%7c%s[%d]: %s%n", ch,
                        "GenericParameterType", j, gpType[j]);
                   break;
    // production code should handle this exception more gracefully
         } catch (ClassNotFoundException x) {
         x.printStackTrace();
    in Eclipse i've got nothing in my output console :/
    no errors, no warnings, no text ..... (it was terminated correctly)
    Can somebody tell me what should I do to make it work properly ?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    In program arguments, you should not have ConstructorSift but only java.util.Formatter and java.util.Locale.
    (Eclipse : run dialog | arguments tab | program arguments)
    This is the output you should get:
    $ java ConstructorSift java.util.Formatter java.util.Locale
    public java.util.Formatter(java.util.Locale)
    *GenericParameterType[0]: class java.util.Locale
    public java.util.Formatter(java.lang.Appendable,java.util.Locale)
    GenericParameterType[0]: interface java.lang.Appendable
    *GenericParameterType[1]: class java.util.Locale
    public java.util.Formatter(java.lang.String,java.lang.String,java.util.Locale) throws java.io.FileNotFoundException,java.io.UnsupportedEncodingException
    GenericParameterType[0]: class java.lang.String
    GenericParameterType[1]: class java.lang.String
    *GenericParameterType[2]: class java.util.Locale
    public java.util.Formatter(java.io.File,java.lang.String,java.util.Locale) throws java.io.FileNotFoundException,java.io.UnsupportedEncodingException
    GenericParameterType[0]: class java.io.File
    GenericParameterType[1]: class java.lang.String
    *GenericParameterType[2]: class java.util.Locale
    public java.util.Formatter(java.io.OutputStream,java.lang.String,java.util.Locale) throws java.io.UnsupportedEncodingException
    GenericParameterType[0]: class java.io.OutputStream
    GenericParameterType[1]: class java.lang.String
    *GenericParameterType[2]: class java.util.Locale
    Hope that help,
    Jack

  • Problems with FPS on Macbook Pro Retina while playing WoW

    Hi,
    So, just a few days ago, I could play World of Warcraft on a highly populated server with around 30 FPS at all times on ultra graphics. All of a sudden, when I logged in last night, I got between 5-8 FPS if I was lucky, and had to turn my graphics down to fair or even low to get around the same FPS or better as before. Do you guys think this could be software or hardware? I don't really care about not playing the game with full graphics, but is instead worried if there could be something wrong with the machine itself.
    Cheers
    Running 10.8. Higher MBP Retina model with 512 GB flash standard and 16GB of added RAM.

    There are several threads on this on Blizzard website. You need to do an SMC reset (this worked for me): http://support.apple.com/kb/ht3964

Maybe you are looking for