Unknown component: ENDECA_BULK_ADD_OR_REPLACE_RECORDS class

Hi,
I see below error while running the graph:
INFO [main] - Graph definition file: graph\LoadData.grf
ERROR [main] - Unknown component: ENDECA_BULK_ADD_OR_REPLACE_RECORDS class: ENDECA_BULK_ADD_OR_REPLACE_RECORDS
java.lang.ClassNotFoundException: ENDECA_BULK_ADD_OR_REPLACE_RECORDS
what is the jar file to have this component?
It seems that I have all set to classpath as below.
Still getting same error.
Thanks
Pradeep K Pathak
=======================================
I tested forward slash with backward also but same error.
=======================================
USER_CLASSPATH=
"java.exe" -classpath ";;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\;;;c:\Ora
cle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/annotations.jar;c:\Oracle\Endeca\
Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/cloveretl.engine.jar;c:\Oracle\Endeca\Discov
ery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/commons-cli-1.1.jar;c:\Oracle\Endeca\Discovery\2.3
.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/commons-codec-1.4.jar;c:\Oracle\Endeca\Discovery\2.3.0\In
tegrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/commons-httpclient-3.1.jar;c:\Oracle\Endeca\Discovery\2.3.0\In
tegrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/commons-io-1.4.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator
\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/commons-io-LICENSE.txt;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plu
gins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/commons-logging-1.1.1.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plug
ins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/commons-net-2.0.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com
.cloveretl.gui_3.2.1\lib\bin\.\../lib/dom4j-1.6.1.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.
gui_3.2.1\lib\bin\.\../lib/ftp4j-1.4.3.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\l
ib\bin\.\../lib/ftp4j-LICENSE.txt;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\
../lib/httpclient-4.1.1.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib
/httpcore-4.1.1.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/icu4j-L
ICENSE.html;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/icu4j-normalize
r_transliterator-4.8.1.1.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../li
b/icu4j-unicode-LICENSE.txt;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib
/jakarta-oro-2.0.8.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/javo
lution.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jaxb-api-LICENSE
.txt;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jaxb-api.jar;c:\Oracle
\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jaxb-impl-LICENSE.txt;c:\Oracle\Ende
ca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jaxb-impl.jar;c:\Oracle\Endeca\Discovery\
2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jaxen-1.1.1.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integ
rator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jets3t-0.8.0.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plug
ins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jms.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.g
ui_3.2.1\lib\bin\.\../lib/joda-time-1.6.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\
lib\bin\.\../lib/jsch-0.1.42.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\.
./lib/jsr173_1.0_api.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/jx
l.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/LICENSE.txt;c:\Oracle
\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/log4j-1.2.15.jar;c:\Oracle\Endeca\Di
scovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/openxml4j-1.0-beta.jar;c:\Oracle\Endeca\Discov
ery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/org.eclipse.nebula.widgets.grid-1.0.0-SNAPSHOT.jar
;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/poi-3.8-beta4-20110826.jar
;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/poi-ooxml-3.8-beta4-201108
26.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/poi-ooxml-schemas-3.
8-beta4-20110826.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/sardin
e.jar;c:\Oracle\Endeca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/tar.jar;c:\Oracle\End
eca\Discovery\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/truezip-6.8.1.jar;c:\Oracle\Endeca\Disco
very\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/xmlbeans-2.3.0.jar;c:\Oracle\Endeca\Discovery\2.3
.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/XmlSchema-1.4.3.jar;c:\Oracle\Endeca\Discovery\2.3.0\Inte
grator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\../lib/XmlSchema-LICENSE.txt" "-Dclover.home=c:\Oracle\Endeca\Discovery
\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\.." org.jetel.main.runGraph -plugins "c:\Oracle\Endeca\Disco
very\2.3.0\Integrator\plugins\com.cloveretl.gui_3.2.1\lib\bin\.\..\plugins" -noJMX graph\LoadData.grf
===========================================================

Hi! Thanks for your reply,
I did what you said (drag the component again to the Graph and delete the old one) but I am still getting the same error (The component that is not being found is the RESET DATA STORE),
One thing I forgot to tell you is that I am running it from the command line using "./clover" command line which is located in
/home/oracle/Endeca/Discovery/2.3.0/Integrator/plugins/com.cloveretl.gui_3.2.1/lib/bin
When I ran from the Integrator it worked OK.
I am using Endeca 2.3.0. and I am executing it like the following:
./clover runGraph /home/oracle/Endeca/workspace/MFGProject/graph/RunAllGraphs.grf
Any new ideas?

Similar Messages

  • Unknown component: ENDECA_RESET_DATA_STORE

    Hi All,
    I am new to Endeca. I am trying to Run 'ResetDataStore.grf' from Clover Server and its getting into errors.
    Pool: Error loading graph:/u01/Oracle/Middleware/user_projects/domains/integrator_domain/sandboxes/inv-uniinc/graph/ResetDataStore.grf Unknown component: ENDECA_RESET_DATA_STORE class: ENDECA_RESET_DATA_STORE
    java.lang.RuntimeException: Pool: Error loading graph:/u01/Oracle/Middleware/user_projects/domains/integrator_domain/sandboxes/inv-uniinc/graph/ResetDataStore.grf Unknown component: ENDECA_RESET_DATA_STORE class: ENDECA_RESET_DATA_STORE
            at com.cloveretl.server.c.b.g.c(Unknown Source)
            at com.cloveretl.server.c.b.g.d(Unknown Source)
            at com.cloveretl.server.c.b.g.b(Unknown Source)
            at com.cloveretl.server.c.h.a(Unknown Source)
            at com.cloveretl.server.c.h.executeGraph(Unknown Source)
            at com.cloveretl.server.c.j.executeGraph(Unknown Source)
            at com.cloveretl.server.facade.a.a.executeGraphAsync(Unknown Source)
            at com.cloveretl.server.web.gui.k.actionRunGraph(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    Caused by: java.lang.RuntimeException: Unknown component: ENDECA_RESET_DATA_STORE class: ENDECA_RESET_DATA_STORE
            at org.jetel.component.ComponentFactory.getComponentClass(ComponentFactory.java:96)
            at org.jetel.component.ComponentFactory.createComponent(ComponentFactory.java:114)
            at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiateNodes(TransformationGraphXMLReaderWriter.java:495)
            at org.jetel.graph.TransformationGraphXMLReaderWriter.instantiatePhases(TransformationGraphXMLReaderWriter.java:458)
            at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:370)
            at org.jetel.graph.TransformationGraphXMLReaderWriter.read(TransformationGraphXMLReaderWriter.java:290)
            at org.jetel.graph.TransformationGraphXMLReaderWriter.loadGraph(TransformationGraphXMLReaderWriter.java:219)
            ... 56 more
    Caused by: java.lang.ClassNotFoundException: ENDECA_RESET_DATA_STORE
            at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
            at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
            at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
            at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
            at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:188)
            at org.jetel.component.ComponentFactory.getComponentClass(ComponentFactory.java:85)
            ... 62 more
    My Edeca Server is located in different machine and I need to connect to that server lets say and reset the Data Store from my Clover Client or Clover Server.
    Could anyone please guide me?
    Thanks,
    Harish

    Hello Harish,
    The problem is likely in the fact that Integrator cannot connect to the Endeca Server running on  a separate machine.
    To troubleshoot this issue, you need to verify that you can make a connection to the Endeca Server from Integrator's host.
    Please read this topic and check your settings in etc/hosts on the Endeca Server machine: https://docs.oracle.com/cd/E40518_01/server.761/es_admin/toc.htm#Hostname%20resolution%20in%20the%20Endeca%20Server
    JM

  • IllegalArgumentException: Unknown entity bean class

    Hi. I try to make a connection with mysql database by using entity classes which i create via Netbeans' tools. But when i try to use the create method for entity persist, in the entity controller class, i get an error message like that;
    (The User class is marked with the @Entity annonation)
    java.lang.IllegalArgumentException: Unknown entity bean class: class entity.User, please verify that this class has been marked with the @Entity annotation.
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:576)
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.find(EntityManagerImpl.java:460)
    at controller.UserJpaController.findUser(UserJpaController.java:125)
    at controller.UserJpaController.create(UserJpaController.java:43)
    at bean.UserBean.save(UserBean.java:115)
    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.sun.el.parser.AstValue.invoke(AstValue.java:234)
    at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297)
    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98)
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
    at javax.faces.component.UICommand.broadcast(UICommand.java:315)
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
    at java.lang.Thread.run(Thread.java:619)
    i use glass fish v3
    persistence.xml is automaticaly created by netbeans.
    Please help.
    Edited by: MOD on Aug 5, 2010 9:41 AM

    And this is the JPAController class which i created automaticly using Netbeans IDE tools.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package controller;
    import controller.exceptions.NonexistentEntityException;
    import controller.exceptions.PreexistingEntityException;
    import entity.User;
    import java.util.List;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.Persistence;
    import javax.persistence.Query;
    import javax.persistence.EntityNotFoundException;
    import javax.persistence.criteria.CriteriaQuery;
    import javax.persistence.criteria.Root;
    * @author PC
    public class UserJpaController {
        public UserJpaController() {
            emf = Persistence.createEntityManagerFactory("MyPersonelWebBlogPU");
        private EntityManagerFactory emf = null;
        public EntityManager getEntityManager() {
            return emf.createEntityManager();
        public void create(User user) throws PreexistingEntityException, Exception {
            EntityManager em = null;
            try {
                em = getEntityManager();
                em.getTransaction().begin();
                em.persist(user);
                em.getTransaction().commit();
            } catch (Exception ex) {
                if (findUser(user.getUsername()) != null) {
                    throw new PreexistingEntityException("User " + user + " already exists.", ex);
                throw ex;
            } finally {
                if (em != null) {
                    em.close();
        public void edit(User user) throws NonexistentEntityException, Exception {
            EntityManager em = null;
            try {
                em = getEntityManager();
                em.getTransaction().begin();
                user = em.merge(user);
                em.getTransaction().commit();
            } catch (Exception ex) {
                String msg = ex.getLocalizedMessage();
                if (msg == null || msg.length() == 0) {
                    String id = user.getUsername();
                    if (findUser(id) == null) {
                        throw new NonexistentEntityException("The user with id " + id + " no longer exists.");
                throw ex;
            } finally {
                if (em != null) {
                    em.close();
        public void destroy(String id) throws NonexistentEntityException {
            EntityManager em = null;
            try {
                em = getEntityManager();
                em.getTransaction().begin();
                User user;
                try {
                    user = em.getReference(User.class, id);
                    user.getUsername();
                } catch (EntityNotFoundException enfe) {
                    throw new NonexistentEntityException("The user with id " + id + " no longer exists.", enfe);
                em.remove(user);
                em.getTransaction().commit();
            } finally {
                if (em != null) {
                    em.close();
        public List<User> findUserEntities() {
            return findUserEntities(true, -1, -1);
        public List<User> findUserEntities(int maxResults, int firstResult) {
            return findUserEntities(false, maxResults, firstResult);
        private List<User> findUserEntities(boolean all, int maxResults, int firstResult) {
            EntityManager em = getEntityManager();
            try {
                CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
                cq.select(cq.from(User.class));
                Query q = em.createQuery(cq);
                if (!all) {
                    q.setMaxResults(maxResults);
                    q.setFirstResult(firstResult);
                return q.getResultList();
            } finally {
                em.close();
        public User findUser(String id) {
            EntityManager em = getEntityManager();
            try {
                return em.find(User.class, id);
            } finally {
                em.close();
        public int getUserCount() {
            EntityManager em = getEntityManager();
            try {
                CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
                Root<User> rt = cq.from(User.class);
                cq.select(em.getCriteriaBuilder().count(rt));
                Query q = em.createQuery(cq);
                return ((Long) q.getSingleResult()).intValue();
            } finally {
                em.close();
    }When i instantiate this JPAController class and use its create method to persist a User it gives me the error which i posted in my first message.

  • Msi.webprintlist fatal error during installation could not open key: unknown/component/da42bc899bf25

    msi.webprintlist fatal error during installation  could not open key: unknown/component/da42bc899bf25bdaf18c3b9b1a1ee8\ab4027db46dde994b955a68c2fdf44a. verify that you have sufficient access to that key, or contact your support personnel.  please go to http:\\hp.com\support for troubleshooting information about "fatal error" and " msi.webprintlist"

    Hi Assennatog, the problem could be in the registry keys that are still present even if you completely uninstalled all the NI SW. So, after having uninstalled every NI apllication, try to execute the keys deleting proccess, by using MSIBlast, in the way it's explained in the attached doc. Ciao!
    Attachments:
    msi.doc ‏32 KB

  • "Unknown entity bean class"

    Hi there,
    I'm learning using JPA by writing a web application example that check username and password. I use Sun Application Server 9.1 and Myeclipse to build and deloy.
    I've got Runtime Exception:
    Unknown entity bean class: class vn.kbnn.dtkb.system.dto.UserDTO, please verify that this class has been marked with the @Entity annotation.
    Please help me because this error message is not help, my class have @Entity annotation already. Not redeploy bug also.
    Here is my code:
    package vn.kbnn.framework.controller;
    // ... imports
    public abstract class XApplicationManager implements ServletContextListener {
    bq. protected static EntityManagerFactory entityManagerFactory; \\ protected static ThreadLocal<EntityManager> threadLocal; \\ protected static ServletContext servletContext; \\ protected static Logger logger;
    //... contructors, setters, getters
    package vn.kbnn.dtkb.controller;
    //... imports
    public class ApplicationManager extends XApplicationManager {
    bq. public ApplicationManager() {bq. super(); \\ ApplicationManager.entityManagerFactory = Persistence.createEntityManagerFactory("vn.kbnn.dtkb.dao.JPA"); \\ ApplicationManager.threadLocal = new ThreadLocal<EntityManager>(); \\ ApplicationManager.logger = Logger.getLogger("vn.kbnn.dtkb.dao.Logger"); \\ logger.setLevel(Level.ALL);
    bq. public void     contextInitialized(ServletContextEvent ce) {bq. ApplicationManager.servletContext = ce.getServletContext();
    bq. public void contextDestroyed(ServletContextEvent ce) {}
    package vn.kbnn.framework.dao;
    //... imports
    public abstract class XDAO {
    bq. protected EntityManager em;
    bq. public XDAO(EntityManagerFactory emf, ThreadLocal<EntityManager> threadLocal){bq. this.em = getEntityManager(_emf, _threadLocal);
         private EntityManager getEntityManager(EntityManagerFactory emf, ThreadLocal<EntityManager> threadLocal) {
    bq. EntityManager manager = _threadLocal.get(); \\ if (manager == null || !manager.isOpen()) {bq. manager = _emf.createEntityManager(); \\ _threadLocal.set(manager);
              return manager;
    package vn.kbnn.framework.system.dao;
    //... imports
    public abstract class XUserDAO extends XDAO {
    bq. public XUserDAO(EntityManagerFactory emf, ThreadLocal<EntityManager> threadLocal) {bq. super(_emf, _threadLocal);
    package vn.kbnn.dtkb.system.dao;
    //... imports
    public class UserDAO extends XUserDAO {
    bq. public UserDAO(EntityManagerFactory emf, ThreadLocal<EntityManager> threadLocal) {bq. super(_emf, _threadLocal);
         public UserDTO findByPk(String _pk) throws RuntimeException {
    bq. try {bq. UserDTO instance = em.find(UserDTO.class, _pk);
    bq. return instance;
              } catch (RuntimeException re) {
    bq. throw re;
    package vn.kbnn.framework.facade;
    public abstract class XFacade {
    package vn.kbnn.framework.system.facade;
    //... imports
    bq. public abstract class XLoginFacade extends XFacade { \\ public abstract XUserDTO login(String _id, String _password) throws RuntimeException, XProfessionalException;
    package vn.kbnn.dtkb.login.facade;
    //... imports
    public class LoginFacade extends XLoginFacade {
    bq. public UserDTO login(String id, String password) throws RuntimeException, XProfessionalException{bq. UserDTO userDTO = new UserDTO(); \\ UserDAO userDAO = new UserDAO(ApplicationManager.getEntityManagerFactory(), ApplicationManager.getThreadLocal()); \\ try {bq. userDTO = userDAO.findByPk(_id);
    bq. if (userDTO.getPassword() == _password) {
    bq. bq. return userDTO;
    bq. } else {
    bq. bq. XProfessionalException xProfessionalException = new XProfessionalException("Id and password are not matched.");
    bq. throw xProfessionalException;
    bq. bq. }
    bq. } catch (RuntimeException re){bq. throw re;
    package vn.kbnn.framework.dto;
    //... imports
    @SuppressWarnings("serial")
    @MappedSuperclass
    public abstract class XDTO implements java.io.Serializable {
    bq. @Id     @Column(name="pk", unique=true, nullable=false, insertable=true, updatable=false, length=8) \\ private String pk; \\ @Column(name="sid", unique=true, nullable=false, insertable=true, updatable=false, length=8) \\ private String sid;
    //... constructors, setters, getters
    package vn.kbnn.framework.system.dto;
    //...imports
    bq. @SuppressWarnings("serial") \\ @MappedSuperclass \\ public abstract class XUserDTO extends XDTO { \\ @Column(name="password", unique=false, nullable=false, insertable=true, updatable=true, length=8) \\ private String password;
    //... contructors, setters, getters
    package vn.kbnn.dtkb.system.dto;
    *//... imports*
    *@SuppressWarnings("serial")*
    *@Entity*
    *@Table(name = "t_User", schema = "DTKB")*
    *public class UserDTO extends XUserDTO {*
    bq. *public UserDTO() {*
    bq. bq. super();
    bq. *     }*
    persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <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
    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
    bq. <persistence-unit name="vn.kbnn.dtkb.dao.JPA" transaction-type="JTA">bq. <jta-data-source>jdbc/dtkb</jta-data-source>
         </persistence-unit>
    </persistence>

    I've got the same error for a long time and I still can't fix it, did you?

  • T:div throws Component property class is not writable

    I'm using the Tomahawk div-tag including the rendered attribute to check if the wrapped components should be rendered. An exception is thrown indicating the component property is not writable. In other words, I think it means there's no public set-method. However, there is. I'm also using the same rendered expression in t:inputText / t:outputText element/s where it does work.
    What's so specific with the t:div?
    Also I wonder why there's a set-method needed as I don't use it..
    please help,
    thanks,
    dave

    If it says 'component property class is not writable' maybe it is talking about the component property 'class'? not 'rendered'.

  • Unknown component(s)

    Can anyone help denitrify the unknown components within this connection?
    C:\>netstat /v /b
    Active Connections
    Proto Local Address Foreign Address State PID
    TCP owner-wam9o2stk:1041 localhost:27015 ESTABLISHED 3376
    C:\WINDOWS\system32\mswsock.dll
    C:\WINDOWS\system32\WS2_32.dll
    C:\Program Files\Common Files\Apple\Mobile Device Support\bin\iTunesMobileDevi
    ce.dll
    C:\WINDOWS\system32\ADVAPI32.dll
    C:\WINDOWS\system32\kernel32.dll
    [iTunesHelper.exe]
    TCP owner-wam9o2stk:1084 localhost:27015 ESTABLISHED 1996
    C:\WINDOWS\system32\mswsock.dll
    C:\WINDOWS\system32\WS2_32.dll
    C:\Program Files\Common Files\Apple\Mobile Device Support\bin\iTunesMobileDevi
    ce.dll
    -- unknown component(s) --
    [iTunes.exe]
    TCP owner-wam9o2stk:1085 localhost:5354 ESTABLISHED 1996
    C:\WINDOWS\system32\mswsock.dll
    C:\WINDOWS\system32\WS2_32.dll
    C:\WINDOWS\system32\dnssd.dll
    -- unknown component(s) --
    [iTunes.exe]
    TCP owner-wam9o2stk:1086 localhost:5354 ESTABLISHED 1996
    C:\WINDOWS\system32\mswsock.dll
    C:\WINDOWS\system32\WS2_32.dll
    C:\WINDOWS\system32\dnssd.dll
    C:\WINDOWS\system32\ADVAPI32.dll
    C:\WINDOWS\system32\kernel32.dll
    [iTunes.exe]
    TCP owner-wam9o2stk:5354 localhost:1086 ESTABLISHED 1848
    C:\WINDOWS\system32\WS2_32.dll
    C:\Program Files\Bonjour\mDNSResponder.exe
    C:\WINDOWS\system32\kernel32.dll
    [mDNSResponder.exe]
    TCP owner-wam9o2stk:5354 localhost:1085 ESTABLISHED 1848
    C:\WINDOWS\system32\WS2_32.dll
    C:\Program Files\Bonjour\mDNSResponder.exe
    C:\WINDOWS\system32\kernel32.dll
    [mDNSResponder.exe]
    TCP owner-wam9o2stk:27015 localhost:1084 ESTABLISHED 1808
    C:\WINDOWS\system32\WS2_32.dll
    C:\Program Files\Common Files\Apple\Mobile Device Support\bin\AppleMobileDevic
    eService.exe
    C:\WINDOWS\system32\ADVAPI32.dll
    C:\WINDOWS\system32\kernel32.dll
    [AppleMobileDeviceService.exe]
    TCP owner-wam9o2stk:27015 localhost:1041 ESTABLISHED 1808
    C:\WINDOWS\system32\WS2_32.dll
    C:\Program Files\Common Files\Apple\Mobile Device Support\bin\AppleMobileDevic
    eService.exe
    C:\WINDOWS\system32\ADVAPI32.dll
    C:\WINDOWS\system32\kernel32.dll
    [AppleMobileDeviceService.exe]
    TCP owner-wam9o2stk:1102 scfire-chi-aa02.stream.aol.com:http ESTABLISHED
    1996
    C:\WINDOWS\system32\WS2_32.dll
    C:\WINDOWS\system32\WININET.dll
    [iTunes.exe]

    Yes, good idea. It is now posted there.
    Any way I can Delete this post??

  • Unknown type name 'class'; did you mean 'Class'?

    I have a C++ class declaration in FTracker.h file.
    class FTracker // error marks are here
    When I #include/#import this header in my fooUser.mm file, it compiles. When I do #include/#import it in my fooUser.h file it doesn't, and the compiler errors are.
    Unknown type name 'class'; did you mean 'Class'?
    Excpected ';' after top level declarator.
    I'm using XCode 6.0.1 (6A317), LLVM compiler 6.0,...
    Anyone give ma  a suggestion..

  • Custom component/tag class:  ---which setters/getters do what?

    Hi
    I'm trying to create a custom component, but, there is a major concept that I do not understand...
    ---What are the setters/getters in the "component" class used for?...
    ---What are the setters/getters in the "tag" class used for?
    Another way of asking is...
    ---Which setters/getters are used simply to keep track of attribute name/id/key?
    ---Which setters and getters refer to the actual objects that the attribute names point to?
    The reason for my confusion is that nearly all "custom component" examples I've seen thus far, utilize attributes that point to "String" objects... (i.e., as opposed to ArrayList, HashMap, etc)...
    This makes it difficult for me to distinguish whether the String values in the getters/setters are referring to the String name/"id" of the attribute...or, the String "value" of the attribute...
    I have not been able to verify how I should code the getter/setters (and type casts) for other kinds of objects like ArrayLists, HashMaps, etc
    For example, a typical logic mechanism Ive seen in the custom "tag" examples is as follows...
    in a "tag" class...
            if( tabledata != null )
                if (isValueReference (tabledata))
                    FacesContext context = FacesContext.getCurrentInstance ();
                    Application app = context.getApplication ();
                    ValueBinding vb = app.createValueBinding (tabledata);
                    component.setValueBinding ("tabledata", vb);
                else
                    component.getAttributes ().put ("tabledata", tabledata);
    in the "component" class...
        public void setTabledata (List tabledata)
            this.tabledata = tabledata;
        public List getTabledata ()
            if(null != tabledata)
                return tabledata;
            ValueBinding _vb = getValueBinding ("tabledata");
            if(_vb != null)
                return (List)_vb.getValue (getFacesContext ());
            else
                return null;
        }...considering the above code,
    ---when/where should the "tabledata" variable be referring the "name/id" of the attribute?...
    ---when/where should the "tabledata" variable be referring to the "value" of the attribute?...
    ...as, I need to change the type casting to adjust to what it should be...
    ***NOTE: This is one error that I'm getting, and I believe it is because I do not understand how getter/setter is used in "component" and "tag" classe, i.e., :
    "org.apache.jasper.JasperException: jsp.error.beans.property.conversion
         org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:885)"...
    Thanks for any help on this!
    sd

    The "tabledata" variable always refers the local value of the attribute.
    When using a value binding to some backing bean,
    the local value is null and the model value is owned by the bean.
    You don't need any casting in the tag class nor the component class.
    The setters/getters in the component class specify the type of the attributes.
    Conversion from/to String to/from the type is done automatically if possible.
    When the automatic conversion is impossible, you should specify f:converter
    for the attribute.

  • Component and Class ?!

    Dear all,
    Call for answers and discussion!!!
    1. Component has a clear seperation between the specification and implementation? I can't understand here.The interface define some operations,but eventually we need coding to realize it. Where is the speration?
    A class also has methods and coding to realize it. But why we never say a class has a seperation between the specification and implementation?
    2. Component has interface; Java has interface. Are they the same idea or different?
    Call for answers.
    Thanks

    dunno what your meaning of "general component" is, but the interface goes as follows
    if you write code that calls methods in another class you MUST have a variable that is an instance of that class (except for some static and abstract classes that can return an instance, but lets not go that far yet)
    consider though that you want 2 different classes (which dont share any usefull inheritance for what you want to do) to have some behaviour that is the same
    the way you do this is by interfaces
    you define the 2 classes to implement the interface you want, then when you can use the interface class name as the type of the variable you want to handle
    example (not a great one but..)
    2 classes Cat and Dog
    and a Vector of Cats and Dogs (you dont know what order)
    you could define Cat and Dog to implement an inteface called Speak with methods talk() and shout()
    when you retrive an instance of Cat or Dog from the vector (in order to get it to talk) the you could write
    Speak anAnimal=(Speak)vectorOfAnimals.elementAt(index);
    anAnimal.shout();
    not a great example since you could write a super class of Cat and Dog called Animal that has these methods
    but consider if you mix up a few Computers in there
    there are very few similarities between Animal, Cat and Dog that warant a super class to implement them. how ever you may well want a Computer to talk()

  • WI_ID parameter in Application Parameter in webdynpro component using class

    Hi All,
    I want to use WI_ID parameter in Application Parameter in my webdynpro component.
    And i am using class instead of BOR.
    I used this with BOR earlier, but can any one let me know that how to do the same if i am using class.
    Currently i created one parameter as WI_ID in my application parameter, and try to read that in my HANDLEDEFAULT method of windows, i created importing parameter as WI_ID also in HANDLEDEFAULT method.
    but still not getting any value in this parameter.
    How to set this parameter.
    Thanks,
    Amar.

    Hi,
    What is actually your question? Are you trying to get the WD application to work with UWL?
    If this is the case, then just make sure first that the wd application parameter works without the UWL. This should work just like you are doing - importing parameters of the handle default method. Make sure that the parameter works. Test it with launching the WD application with browser <application_url>&wd_id=12345. If you are not getting this working, u should ask it from the WDA forum.
    Then if the question is about how to configure the parameter with UWL, you need to configure it a bit differently with BOR. But maybe you should post your XML here to see what is wrong.
    Regards,
    Karri

  • 'loading' component by 'class name' to jSplitPane ?

    ok lets make it simple..
    im developing a project using netbean 6, and instead of standard menu, i try to develop menu using jtree
    this how i try to achieve:
    i have a jtree, i use it as a menu tree that will execute (when ValueChanged event trigered) an setRightComponent with panels..
    i create a panels inside a 'hidden' container..
    and somehow i found a piece of code on the internet..
    that will enumerate and find any components inside a container..
    when user click the tree node, my code read which node has been clicked and return a string..
    the returned string then used to get the container by those 'piece of code' and returned a component
    that component then used by setRightComponent to set the panels
    its work..
    its fine if i only had less than 50 panels..
    now, my question:
    what happen if i had 1000 or more panels?
    i dont want that panels loaded to memory at first time, is there any method to do this?
    ive already figure out the alternative way and reach the dead end (for me)..
    this my alternative:
    i put my panels(class) inside a package (not container)
    then i use class.forName(String className) function to get them
    i can create the instance/object using newInstance()
    but i can only get an instance of object from that function not a component/jpanel instance
    and setRightComponent only accept a component (not an object)
    so the second question is..
    can i some how 'parse' object to 'component'?
    thanks, i realy need an enlightment..
    Edited by: causa.vitae on Jan 1, 2008 10:08 AM
    Edited by: causa.vitae on Jan 1, 2008 10:12 AM

    causa.vitae wrote:
    im developing a project using netbean 6, and instead of standard menu, i try to develop menu using jtree
    i have a jtree, i use it as a menu tree that will execute (when ValueChanged event trigered) an setRightComponent with panels..
    i create a panels inside a 'hidden' container..
    and somehow i found a piece of code on the internet..
    that will enumerate and find any components inside a container..
    when user click the tree node, my code read which node has been clicked and return a string..
    the returned string then used to get the container by those 'piece of code' and returned a component
    that component then used by setRightComponent to set the panels
    its work..
    its fine if i only had less than 50 panels..I'm not 100% sure I understand this. You may want to show what you are trying to do by showing us a small example of your code that compiles and demonstrates on a small scale what you are trying, an SSCCE. For more info on SSCCEs please look here:
    http://homepage1.nifty.com/algafield/sscce.html
    now, my question:
    what happen if i had 1000 or more panels?Why would you have 1000+ panels? What is the rationale for this design?
    i dont want that panels loaded to memory at first time, is there any method to do this?good question. I suppose you could create JPanels on the fly.
    ive already figure out the alternative way and reach the dead end (for me)..
    this my alternative:
    i put my panels(class) inside a package (not container)
    then i use class.forName(String className) function to get them
    i can create the instance/object using newInstance()
    but i can only get an instance of object from that function not a component/jpanel instance
    and setRightComponent only accept a component (not an object)
    so the second question is..
    can i some how 'parse' object to 'component'?Have you tried casting? I don't know if this would work (without an SSCCE as described above), but if the Object received is truly a JPanel then casting it to a JPanel should work. If it's not a JPanel, then you have to rethink your design a bit (perhaps not a bad idea anyway).
    Finally, since this is a Swing-related question, I suggest that if you post a similar question in the future, you post it in the Swing forum.
    Good luck.

  • Create a ADF component by Class.forName (11g)

    Hello,
    I'm loading a list of components by an XML, and I'd like to create an istance by Class.forName, for example:
    UIComponent componet = (UIComponent)Class.forName("oracle.adf.view.rich.component.rich.input.RichInputText").newInstance();
    but the system give me this error:
    java.lang.ClassNotFoundException: oracle.adf.view.rich.component.rich.input.RichInputText
    In the class there is the import RichInputText of and in the same class this works:
    oracle.adf.view.rich.component.rich.input.RichInputText title = new RichInputText();
    Any idea?
    Thank you,
    Cristian

    Hi,
    If I create my component extending Container, clients could think it's a Container (but in fact, I only used the Container feature to layout the component).
    For instance, if a API client call myCustom.add(aWidget), it will break the layout of my custom component.
    I can tell in the javadoc that this component must not be used as a container.
    But there are other situations when a client can inadvertantly think it's a container.
    Imagine that you write a method addTreeListener() that recursively register a listener to all components of a container. I don't want the Canvas and Scrollbar of my custom component to call back the listeners, but I want to hide my custom component to hide its internal and call back the listeners.
    As I said, it's mainly a design question, but I wanted to improve my custom component...
    Pierre M�tras

  • Itunes wont update to latest version - Comes up with "unknown component" error message! any ideas how to fix?

    Itunes wont sync with iPhone 4 as saying needs a newer version of iTunes, But iTunes wont update
    Is bringing up an error message
    Could not open Key
    Unknown components
    Any ideas of a fix?
    Thanks

    Try the following user tip:
    "Could not open key: UNKNOWN\Components\[LongStringOfLettersAndNumbers]\[LongStringOfLettersAndNumbe rs]" error messages when installing iTunes for Windows

  • Standard Component Definition Class Change

    Hello Experts
    1) STD. UI Component: FICACMP_WLI
        1st Viewset screen -> Search
                                    -> Search result
                 When i press 'Continue' button on the serach result view, it will take me to next screen with worklist details
        2nd Viewset Screen -> Worklist Details
                When i press 'Workitem + Interact' on the worklist details view, it will take me to next screen with 'Actions'
       3rd Viewset Screen -> Action List
    Requirement       
       1) I need to prepare Custom 'Search' View and 'Search result' view as per custom requirement, As per requirment I need to change Query_Result method also.
       2) When i press 'Continue' button on the 'Search Result' view then it must take screen directly to 3rd screen 'Action list'
       3) From ' Action List' standard functionality has to work.
    Options:
    I am planning to enhance Standard UI Component 'FICACMP_WLI' to do my requirement
    or
    do I need to prepare my custom component and i need to add component Usuage in standard UI component?
    If i add custom component then there is a small problem, standard QUERY_RESULT method is populating so many attributes which are using in next screens, when i use my custom BOL QUERY_RESULT method i can't populate the standard attributes method, because they all are protected.
    Note: Everything must be standard functionality , only i need to change 'Search' and 'Search result' , 'Query_result' method  and Navigation from 1st screen to 3rd screen.
    Just i need to skip 2nd screen.
    Please guide me.
    Thanks & Regards,
    Sarath Kothuri

    Hi Sarat,
    In my view, First enhance the UI component and then enhance the Search and Search Result view and put your custom logic there by redefining the existing methods. Then find out the event handler method for "Continue" and 'Workitem + Interact'  buttons, now redefine the event handler for "Continue" button and write the Copy paste the code from 'Workitem + Interact' event handler method. Please note I am assuming that all the views discussed in the query is in the same component.
    Regards
    Ajay

Maybe you are looking for

  • Package problems

    I wrote a pretty big program with a bunch of classes and i need to divide them into subdirectories for organization. I made the directories and placed the source .java files in the directory where they belong. My main application class, along with so

  • My 3gs screen slides side to side but not up and down

    my iphone 3gs screen works sliding it side to side but not up and down. i dropped it a few days ago and it stopped working

  • SMS Service integration

    I have looked around the forums but haven't found any definitive answers, has anyone found a good SMS Broadcast Service that can be integrated with BC? Thanks for any help!

  • EDI 835 message tweak

    I have a EDI message from one trading partner, I need to send it to multiple partner after processing. If I need to tweak the message to send it to one of the trading partner. How can I do it ? What are various ways to do it ?

  • Business area for item code

    Hi gurus, Without the business area assigned (for item code) i couldnt create a customer reqmt. How should i create a business area for a certain item code.?