Netbeans + MySQL + Tomcat (problem with: not a known entity type)

I try to create WebApplication with Stripes in netbeans, but I have problem with connect to DB.
I have this code:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("jpaPU");
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
Person p = new Person();
p.setFirstName("name1");
p.setLastName("name2");
try
em.persist(p);
} catch(Exception e)
System.out.println(e.toString());
em.getTransaction().commit();
em.close();
emf.close();But in try{..} is em.persist(p); ant it prints into console this error: "java.lang.IllegalArgumentException: Object: db_entity.Person@13c7c35 is not a known entity type."
I do not know where is problem. Could you help me, please?
This is my persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  <persistence-unit name="jpaPU" transaction-type="RESOURCE_LOCAL">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <properties>
      <property name="toplink.jdbc.user" value="root"/>
      <property name="toplink.jdbc.password" value="adminadmin"/>
      <property name="toplink.jdbc.url" value="jdbc:mysql://localhost:3306/test"/>
      <property name="toplink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
      <property name="toplink.ddl-generation" value="create-tables"/>
    </properties>
  </persistence-unit>
</persistence>When I run my application I can see in console:
[TopLink Info]: 2008.11.15 09:01:13.265--ServerSession(4794542)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
[TopLink Info]: 2008.11.15 09:01:13.578--ServerSession(4794542)--file:/D:/Workspace/NetBeansProjects/jpa/build/web/WEB-INF/classes/-jpaPU login successful..so, I hope persistence.xml is good
This is my class Person.java:
@Entity
public class Person implements Serializable {
    @Id
    @GeneratedValue
    private Long id;
    private String firstName;
    private String lastName;
    public void setId(Long id) { this.id = id; }
    public Long getId() { return id; }
    public String getFirstName() {  return firstName; }
    public void setFirstName(String firstName) { this.firstName = firstName;  }
    public String getLastName() { return lastName; }
    public void setLastName(String lastName) { this.lastName = lastName;  }Please, help me.

I had the same "is not a known entity type" error when running under a development environment Eclipse/Tomcat using Toplink. But the almost same code and configuration worked when running under Eclipse as a stand-alone Java app.
Eventually I figured out (actually trial and error), that I had checked the toplink-essentials.jar libraries to be exported under: Eclipse Project/Java Build Path/Order and Export. I was messing around with libraries. Unchecking the export option there fixed the problem.
While its unlikely that this could have been your exact problem, I would check the library order and export configurations. Looking at other message boards about this problem, many seemed to have been caused or fixed by playing with their libraries.

Similar Messages

  • Help with IllegalArgumentException: Object: ... is not a known entity type.

    Hi there.
    I'm trying to get TopLink JPA running with Oracle / Spring / JUnit, but so far with no success. The exception I get when trying to persist my rather simple entity is :
    java.lang.IllegalArgumentException: Object: com.yospace.tundra.mediafarm.job.Job@38b554 is not a known entity type.
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:3198)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.persist(EntityManagerImpl.java:190)
    My entity class is :
    package com.yospace.tundra.mediafarm.job;
    // imports ...
    @Entity()
    public class Job
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    public Job()
    * @return the id
    public Long getId()
    return id;
    * Set the id of this job.
    * @param id
    public void setId(Long id)
    this.id = id;
    My persistence.xml is :
    <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence persistence_1_0.xsd" version="1.0">
    <persistence-unit name="TundraPu" transaction-type="RESOURCE_LOCAL">
    <provider>
    oracle.toplink.essentials.PersistenceProvider
    </provider>
              <!-- List all entity classes here. -->
         <class>com.yospace.tundra.mediafarm.job.Job</class>
    <properties>
    <property name="toplink.logging.level" value="FINE"/>
    </properties>
    </persistence-unit>
    </persistence>
    My spring.xml is :
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:aop="http://www.springframework.org/schema/aop"
         xmlns:tx="http://www.springframework.org/schema/tx"
         xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
         http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">
    <bean id="jobDao" class="com.yospace.tundra.mediafarm.job.JobDao">
    </bean>
         <!-- Location of test database configuration. -->
         <bean id="propertyConfigurer"
              class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
              <property name="locations">
                   <list>
                        <value>/test/resources/jdbc.properties</value>
                   </list>
              </property>
         </bean>
         <bean id="dataSource"
              class="org.springframework.jdbc.datasource.DriverManagerDataSource">
              <property name="driverClassName"
                   value="${jdbc.driverClassName}" />
              <property name="url" value="${jdbc.url}" />
              <property name="username" value="${jdbc.username}" />
              <property name="password" value="${jdbc.password}" />
         </bean>
         <!-- Toplink JPA entity manager configuration. -->
         <bean id="loadTimeWeaver" class="org.springframework.instrument.classloading.SimpleLoadTimeWeaver"/>
         <bean id="entityManagerFactory"
              class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
              <property name="dataSource" ref="dataSource" />
              <property name="jpaVendorAdapter">
                   <bean
                        class="org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter">
                        <property name="databasePlatform"
                             value="${jpavendor.dialect}" />
                        <property name="generateDdl" value="true" />
                        <property name="showSql" value="true" />
                   </bean>
              </property>
              <property name="loadTimeWeaver" ref="loadTimeWeaver"/>
         </bean>
         <bean
              class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" />
         <!-- JPA transaction manager configuration. -->
              <bean id="transactionManager"
              class="org.springframework.orm.jpa.JpaTransactionManager">
              <property name="entityManagerFactory"
              ref="entityManagerFactory" />
              </bean>
         <tx:annotation-driven transaction-manager="transactionManager" />
    </beans>
    This fails when I run a JUnit test under Eclipse -- it falls over on the first operation, which creates then attempts to persist a job.
    I wonder if anyone has any ideas as to what exactly I'm doing wrong ...?
    Thanks,
    Henry

    I had the same "is not a known entity type" error when running under a development environment Eclipse/Tomcat using Toplink. But the almost same code and configuration worked when running under Eclipse as a stand-alone Java app.
    Eventually I figured out (actually trial and error), that I had checked the toplink-essentials.jar libraries to be exported under: Eclipse Project/Java Build Path/Order and Export. I was messing around with libraries. Unchecking the export option there fixed the problem.
    While its unlikely that this could have been your exact problem, I would check the library order and export configurations. Looking at other message boards about this problem, many seemed to have been caused or fixed by playing with their libraries.

  • "is not a known entity" error from EclipseLink

    Hi,
    I'm seeing a strange behavior in Weblogic (10.3.3) when using EclipseLink (2.0.2).
    Here is what I do. I use Maven to compile a project in which I use JPA (1.0.2). In this project, module *"A"* depends on module *"B"*. "B" contains a bunch of Entities ( javax.persistence.Entity_ ). But *"persistence.xml"* is in "A" in which all entities of "B" are registered. "B" is deployed as an Optional Package and "A" refers to it via its MANIFEST.
    Deployment is successful but when I run the application and try to persist an entity I get the above error in "A".
    One of the following actions will solve it:
    - Restart the weblogic server
    - Update module A's POM file and explicitly add a dependency to module B. Originally this dependency is not there because classes in module A accept "Object" and pass that through to EntityManager (not explicitly the entity class type). Adding this dependency doesn't change the JAR file's manifest in anyway. It only update the "maven" directory in JAR file's META-INF folder. I don't think weblogic even care about this folder.
    Why should this be the case?
    I downloaded EclipseLinks' source and debugged the application. It seems that the problem occurs because "*+descriptors+*" collection field in "*+org.eclipse.persistence.internal.sessions.AbstractSession+*" class doesn't have the entity's descriptor and thus it doesn't recognize it as an Entity. I reckon restarting the server updates that cache. But what about the second solution? Why is that working? Is "maven" directory in JAR file's META-INF directory known to weblogic?
    Edited by: Keibi on Jul 11, 2012 5:36 PM
    Edited by: Keibi on Jul 11, 2012 5:37 PM

    How would moving the persistence.xml file help?
    Here is the stacktrace:
    Error 500--Internal Server Error
    javax.ejb.EJBTransactionRolledbackException: EJB Exception: : java.lang.IllegalArgumentException: Object: com.xxx.entities.XyzEntity@13b8dea is not a known entity type.
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4184)
         at org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:368)
         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 weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:93)
         at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:91)
         at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:80)
         at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:26)
         at $Proxy68.persist(Unknown Source)
         at com.xxx.persistence.DatabaseBean.PersistEntity(DatabaseBean.java:19)
         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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy74.PersistEntity(Unknown Source)
         at com.xxx.persistence.DatabaseBean_7z3dqu_DatabaseImpl.PersistEntity(DatabaseBean_7z3dqu_DatabaseImpl.java:56)
         at com.xxx.persistence.DatabaseBean_7z3dqu_DatabaseImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at com.xxx.persistence.DatabaseBean_7z3dqu_DatabaseImpl_1033_WLStub.PersistEntity(Unknown Source)
         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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
         at $Proxy72.PersistEntity(Unknown Source)
         at com.xxx.bll.PlaceOrderBean.Save(PlaceOrderBean.java:21)
         at com.xxx.bll.PlaceOrderBean.addOrder(PlaceOrderBean.java:17)
         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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy73.addOrder(Unknown Source)
         at com.xxx.bll.PlaceOrderBean_u8t8vo_PlaceOrderImpl.addOrder(PlaceOrderBean_u8t8vo_PlaceOrderImpl.java:56)
         at com.xxx.bll.PlaceOrderBean_u8t8vo_PlaceOrderImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at com.xxx.bll.PlaceOrderBean_u8t8vo_PlaceOrderImpl_1033_WLStub.addOrder(Unknown Source)
         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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
         at $Proxy71.addOrder(Unknown Source)
         at com.xxx.web.PlaceOrderServlet.service(PlaceOrderServlet.java:32)
         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.ServletStubImpl.execute(ServletStubImpl.java:183)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ; nested exception is:
         java.lang.IllegalArgumentException: Object: com.xxx.entities.XyzEntity@13b8dea is not a known entity type.; nested exception is: java.lang.IllegalArgumentException: Object: com.xxx.entities.XyzEntity@13b8dea is not a known entity type.
         at weblogic.ejb.container.internal.BaseRemoteObject.handleSystemException(BaseRemoteObject.java:818)
         at weblogic.ejb.container.internal.BaseRemoteObject.postInvoke1(BaseRemoteObject.java:518)
         at weblogic.ejb.container.internal.StatelessRemoteObject.postInvoke1(StatelessRemoteObject.java:49)
         at weblogic.ejb.container.internal.BaseRemoteObject.__WL_postInvokeTxRetry(BaseRemoteObject.java:445)
         at com.xxx.persistence.DatabaseBean_7z3dqu_DatabaseImpl.PersistEntity(DatabaseBean_7z3dqu_DatabaseImpl.java:68)
         at com.xxx.persistence.DatabaseBean_7z3dqu_DatabaseImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at com.xxx.persistence.DatabaseBean_7z3dqu_DatabaseImpl_1033_WLStub.PersistEntity(Unknown Source)
         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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
         at $Proxy72.PersistEntity(Unknown Source)
         at com.xxx.bll.PlaceOrderBean.Save(PlaceOrderBean.java:21)
         at com.xxx.bll.PlaceOrderBean.addOrder(PlaceOrderBean.java:17)
         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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy73.addOrder(Unknown Source)
         at com.xxx.bll.PlaceOrderBean_u8t8vo_PlaceOrderImpl.addOrder(PlaceOrderBean_u8t8vo_PlaceOrderImpl.java:56)
         at com.xxx.bll.PlaceOrderBean_u8t8vo_PlaceOrderImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at com.xxx.bll.PlaceOrderBean_u8t8vo_PlaceOrderImpl_1033_WLStub.addOrder(Unknown Source)
         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 weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:84)
         at $Proxy71.addOrder(Unknown Source)
         at com.xxx.web.PlaceOrderServlet.service(PlaceOrderServlet.java:32)
         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.ServletStubImpl.execute(ServletStubImpl.java:183)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.IllegalArgumentException: Object: com.xxx.entities.XyzEntity@13b8dea is not a known entity type.
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:4184)
         at org.eclipse.persistence.internal.jpa.EntityManagerImpl.persist(EntityManagerImpl.java:368)
         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 weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:93)
         at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:91)
         at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:80)
         at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:26)
         at $Proxy68.persist(Unknown Source)
         at com.xxx.persistence.DatabaseBean.PersistEntity(DatabaseBean.java:19)
         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 com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy74.PersistEntity(Unknown Source)
         at com.xxx.persistence.DatabaseBean_7z3dqu_DatabaseImpl.PersistEntity(DatabaseBean_7z3dqu_DatabaseImpl.java:56)
         ... 61 more

  • I updated my IPhone 3GS to the new 5.1 operating system and have since had a range of problems with not only my phone but also my IPad.

    I updated my IPhone 3GS to the new 5.1 operating system and have since had a range of problems with not only my phone but also my IPad.
    Programs (Safari, mail, messages) keep crashing, mail will not delete properly (some will keep popping into my inbox again for no reason!!!), slow, settings lock up etc. etc.
    This only seemed to become an issue once I updated to ios 5.1 and funnily also affected my Ipad even though i hadn't updated the software yet. I have since updated the software on my ipad thinking it might help too but that only made things worse!! So I am not sure if it's an ICloud issue, but when i try to disable ICloud my devices lock up as well.
    The battery life is also shocking!!
    I have hard reset both devices, restored both devices, reset the setting and tried a whole host of other suggestions (like closing background programs) on this forum buit nothing works and i am tearing my hair out.
    I looked in the phone and ipad log and there do seem to be low memory reports though i don't know why these are occuring now when they never have before??
    I don't know if I can restore the old operating system (If I can please let me know how). The phone or ipad are not jailbroken.

    but you should have a backup in itunes.
    Every time you sync your iOS device iTunes creates a backup. go check if its there, iTunes Preferences >Devices. and there you should see if you have a backup, and in case from which date the backup is.
    And ofcourse you can get your icloud data back by just logging in with your Appleid under icloud in settings on the iphone.
    But anyway, if the iPhone works when you restor it as new: try adding your backup, and see if the issue comes back. And experiment with your backup and try to work out what is causing the issue, my guess is that its some app!   Good Luck!

  • TS4040 I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs re

    I assumed this would help my problem with not being able to open apps like Preview or TextEdit since I installed Mountain Lion. Instead, first I'm prompted to enter a password, then once I do that, I get an error box telling me the Library needs repairing. So I click on Repair, and once again I'm prompted for a password, which I enter, then the same error box opens, and so it goes. Can anyone help me with this problem? I'd greatly appreciate it.
    Thor

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • HT1222 Having problem with  Notes at time will not record dictation on iPhone?

    Having problem with  Notes at time will not record dictation on iPhone?

    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.
    If that doesn't help have your phone examined by an apple technician. Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • A problem with Notes...

    I'm sorry if I posted this in the wrong place, but wasn't sure where to go.
    I'm having problems with notes on my Mac running 10.8.4.
    I've done searches, but cannot find my problem.
    I have set up an iCloud account. I can see my notes in iCloud, but if I try to use the Notes.app, I get the above response. The prefs seem to be set up, I must be doing something wrong.
    Thank you for any help,
    mhh

    Apparently I don't know how to paste.
    The message reads:
    "This Mac can't connect to iCloud because of a problem with  [email protected]"

  • Problem with not enough resolutions Late 2013 iMac 27"

    Hi guys.
    Last friday arrive to my home my new top iMac --> i7 / 16Gb / 3Tb FusionDrive / GTX 780
    I always use 1920x1080 resolution display in my older iMac Mid 2010 27" but in my new iMac say this:
    I need 1920x180. Is it possible change the resolution with scrips or edit one file...?
    Thanks

    baltwoJul 21, 2014 10:07 PM
    Re: Re: Problem with not enough resolutions Late 2013 iMac 27"in response to GoldFran
    Might be primitive, but free, and does the job.
    the truth is you're right. Sometimes we search any solutions but this is some complicated when the best fix normally, It´s easy solution... "Okam's razor"

  • Problem with not getting Internet Connect on AirPort Express

    Problem with not getting Internet Connect on AirPort Express (version7.6.4). Error says cannot get valid IP address. Have reset Siemens SpeedStream 4100 several time, even with tech support from the big "A" DSL provider. Plug MacBook Pro directly into modem and works fine. Unplugged AirPort, even reset it, still no luck. A bad Express?? or am not looking in the right place to make connection. Was working fine up until Sunday.

    Connect the AirPort Express (AX) to the cable modem via Ethernet cable.
    In configuring the AX using AirPort Utility:
    Under Internet, set the connection to be Ethernet using DHCP.
    Under Connection Sharing, set it to distribute a range of IP addresses.
    Under AirPort>Wireless, set the Wireless Mode to Create a wireless network, and fill in the remaining settings in the same window. Until you get it working, you might want to set Wireless Security to None.

  • Problems with notes and mark ups in pdf

    I'm having problems with the Adobe reader for iPad.
    Whenever I modify a pdf file, adding notes or any other mark up, I'm not able to see any of the markups in the file when I open the same file with another application or I send it via e-mail.
    Only the digital signature is still visible.
    Thanks

    You are correct. When i open it with Adobe i get my mark ups etc. When i use Apple`s pdf view i do not.
    Problem solved.
    Date: Mon, 17 Dec 2012 10:46:22 -0700
    From: [email protected]
    To: [email protected]
    Subject: Problems with notes and mark ups in pdf
    Re: Problems with notes and mark ups in pdf created by Pat Wibbeler in Adobe Reader for iOS - View the full discussion
    Can you share what applications you are using to view the notes after emailing? You have to view the document in a Reader that supports annotations. Apple ships a built in pdf viewer (like the one used in iBooks) that many iOS developers use (e.g. Dropbox, email). This built in PDF viewer does not support rendering annotations. However, many other applications (like the Adobe Reader for iOS and the Adobe desktop products) do support Annotation rendering. Similarly, one of our competitor's PDF viewers (PDFExpert) supports this functionality as well. Annotations are part of the PDF standard and the specification is widely available and we would love to see more renderers support it!
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4927598#4927598
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4927598#4927598
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4927598#4927598. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Reader for iOS by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problems with reference field in material type

    Hi,
    I have problem with field reference in material type creation.
    When I define a self-defined field reference ZERS (copy of standard field reference HERS) for a own defined material type ZERS (copy of material type HERS), I get the following error message:
    Field reference ZERS has not been set up
    Message no. CZ127
    Diagnosis
    You have specified a field reference that has not been set up.
    Procedure
    Set up the new field reference or use an already existing field reference.
    I do not understand why because the entry ZERS is present in table T130A.
    Here is the IMG config I have made:
    1. Logistics general->Material Master->Field selection->Maintain field selection for Data Screens (here I made copy of field reference HERS and named it ZERS)
    2. Logistics general->Material Master->Basic Settings->Material types->Define attributes of Material types (here I made a copy of material type HERS and named it ZERS. I then tried to set the field T134-FLREF "Field reference" to ZERS, but then the error message appears)
    Does anyone know what config I am missing?
    Or any reason why the error message CZ127 is coming up?
    Thanks

    Must have been system error, I deleted all entries and did it all over again, it worked.

  • My phone is iphone 4 (GSM)-american type with IOS5.11 , i have problem with sim card failer (korek type)

    my phone is iphone 4 (GSM)-american type with IOS5.011 , i have problem with sim card failer (korek type)

    Sounds like your iPhone is locked to AT&T. Contact them to see
    if you qualify for unlocking.
    This link may provide some assistance:
    unlocking AT&T iPhones (thanks to wjosten for the link)
    http://www.att.com/esupport/article.jsp?sid=KB414532#fbid=Ont7guWFCdY

  • Viewing Excel Files using Tomcat - Problem with caching

    Hi all,
    A small part of an application I'm writing has links to Excel files for users to view/download. I'm currently using Tomcat v5 as the web/app server and have some very simple code (an example is shown below) which calls the excel file.
    <%@ page contentType = "application/vnd.ms-excel" %>
    <%
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
    response.sendRedirect("file1.xls");
    %>
    This all works except but I'm having one big problem.
    The xls file (file1.xls) is updated via a share on the server so each month, the xls file is overwritten with the same name but with different contents. I'm finding that when an update is made to the xls file and the user then attempts to view the new file in the browser they recieve only the old xls file. It's caching the xls file and I don't want it to. How can I fix this so that it automatically gives the user the new updated file.
    The only way I've managed to get Tomcat to do this is to delete the work directory and delete the file from my IE temp folder and then restart Tomcat - this is a bit much!
    Any help would be greatly appreciated.
    Thanks.

    I'd a problem with caching a few years back, for a servlet request which returned an SVG file.
    As a workaround, I ended up putting appending "#" and a timestamp / random number after it. The browser assuming each request was new, and didn't use the cache.
    Eg.
    http://myserver/returnSVG.do#1234567
    where 1234567 is a timestamp / random.
    Not sure whether you can do this on a file based URL... but maybe worth a shot...
    regards,
    Owen

  • Problems with Notes on my iphone

    I love the Notes "app" that comes default with the iphone. However, I've been having problems with it, now that I use it a lot and am able to observe the smaller details.
    I see that there are two forms of Notes, those linked to my email and those "on my iphone". Right now I have the setting left as "on my gmail", so the notes get backed up there every time. This is good, since I have the annoying problem that I can save a note on the iphone, and the next day when I try to access it, it is no longer there (although I can find it in my gmail account). Worse yet is that I can already have a note saved, go into it later to add something, and before my very eyes the system will update (or something) and the information I've just written in will disappear.
    Please help!

    Hey G.Russo,
    Thanks for the question and detailed information. I understand that you are experiencing issues with the multi-touch display on your iPhone 5s. The following resource outlines troubleshooting steps for this symptom:
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Restart your device
    Hold the On/Off button until "slider to power off" appears. Slide to power off your device. When it is off, press the On/Off button to turn it back on.
    If you can't restart your device, reset it by pressing and holding the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears.
    Clean the screen with a soft, slightly damp, lint-free cloth.
    Avoid using the device while wearing gloves, with wet hands, or immediately after applying hand lotion.
    If you have a protective case, or if you are using a plastic sheet or film on the display, try removing them and testing the device without it.
    If the steps above don't resolve your issue, please schedule a service appointment with an Apple Retail Store for evaluation. If an Apple Retail store is not an option, contact Apple to find out your best service option or see the Service FAQ for your product.
    Thanks,
    Matt M.

  • I'm having problems with Notes after upgrade to OS4. Anyone else?

    After upgrading mu iphone 3GS to the new OS4, I'm having serious problems with my Notes. If I edit old notes and klick Done, it now takes longer then ever to save. And when the save is finished, my latest edits are gone! The note is back to the text before I opened it up for editing...
    Has enyone experienced this after upgrading?
    Also, why does it take such a long time so save the notes now? I can see in the "progress bar" the phone is connecting to the Internet after klicking Done. Why is that? It never did that before. Does the new OS4 save all notes on some sort of server instead of just saving on my phone? Can I shut this function off somehow?
    Thanx for all answeres!

    I am having the same issue but havent been able to find a solution yet.

Maybe you are looking for

  • Is there a way to export all of the playlists to an XML file?

    I have a ton of playlists in iTunes.  I love making them.  However, I have two computers.  A PC and a Macbook.  I've currently had to export every single playlist to an XML file and then import them on the other machine to keep them in sync.  Is ther

  • GL Account Change to Open Item Management

    Hi, Initially I have not created one account as open item management.  After a period of time(after some transactions) I have made the balance Zero in that account and I have tried to create open item management for the account.  But system is not ac

  • Join Existing Network Wirelessly Disables Ethernet Ports?

    So I have an Airport Extreme upstairs (my main router, connecting to modem), and another one downstairs. I have several devices downstairs that need Ethernet connection. Whenever I set up my downstairs AE to join existing wireless network created by

  • Internet connection cuts in and out, only on iMac 2.8 Duo, not MacBook Pro

    Problem started 2 weeks ago Only on my new iMac, my internet connection disappears randomly, without any problem at the same time on the laptop or iPhone, and with no loss of Airport function/connection, only the internet and mail access is lost, and

  • Simple and reliable method to preform an OCR on a pdf? [SOLVED]

    I have Acrobat at work which does a wonderful job preforming an OCR (optical character recognition) on scanned pdf files so that one can do keyword searching within the pdf.  I have spent the past hour following-up various guides on the 'net at large