Exception in thread "main" javax.naming.NameNotFoundException: Unable to re

Hi friends,
I am running simple Client program of JMS to produce text message. I have JMSServer under JMS tab in weblogic home site.my desnation is topic its name is topic2.Following Error occurs
C:\j2sdk1.4.2_12\bin>java Client1
Exception in thread "main" javax.naming.NameNotFoundException: Unable to resolve
'topic1' Resolved [Root exception is javax.naming.NameNotFoundException: Unabl
e to resolve 'topic1' Resolved ]; remaining name 'topic1'
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
ava:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:284)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:244)
at weblogic.jndi.internal.ServerNamingNode_813_WLStub.lookup(Unknown Sou
rce)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:369)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:357)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at Client1.main(Client1.java:21)
Caused by: javax.naming.NameNotFoundException: Unable to resolve 'topic1' Resolv
ed
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(Basic
NamingNode.java:897)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.jav
a:230)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.j
ava:154)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:18
8)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
144)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:415)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
C:\j2sdk1.4.2_12\bin>

I am no expert to this but, I have gotten that error when I try to subscribe to a topic that does not exist.
Make sure your server is running and that the topic exists.

Similar Messages

  • Exception in thread "main" javax.naming.NoInitialContextException: Need to

    Hey,
    I am exploring the technique 'JMS'. I found an sample code on the Internet (https://www.redhat.gl/docs/manuals/jboss/jboss-eap-4.2/doc/Server_Configuration_Guide/JMS_Examples-A_Point_To_Point_Example.html).
    But unfortunately, by running the code on my local computer, I got an NoInitialContextException (Exception in thread "main" javax.naming.NoInitialContextException: Need to ...Application resource file: java.naming.factory.initial). After searching on the Internet, I discovered I need to configure some JNDI values. But, also after passing on the variables to the class by parameter (-Djava.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory), I still get the same error.
    What have I forgotten? Hope someone can help. Thanks!
    Tongue78.
    public void setupPTP()
    throws JMSException,
    NamingException
    InitialContext iniCtx = new InitialContext();
    Object tmp = iniCtx.lookup("ConnectionFactory"); // exception occurs here..
    QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
    conn = qcf.createQueueConnection();
    que = (Queue) iniCtx.lookup("queue/testQueue");
    session = conn.createQueueSession(false,
    QueueSession.AUTO_ACKNOWLEDGE);
    conn.start();
    ....

    Refer to the Sun App Server documentation.
    http://docs.sun.com/source/819-0079/dgacc.htmlIt lists down the steps you need to follow.

  • Javax.naming.NameNotFoundException: Unable to resolve

    Dear friends,
    I am doing simple application EJB3 with JSF but I got this exception any help please.
    javax.naming.NameNotFoundException: Unable to resolve 'SessionEJB'. Resolved ''; remaining name 'SessionEJB'
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
         at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
         at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:393)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at asu.view.backing.Login.validate(Login.java:127)
         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:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         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:387)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         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)

    now I got this error,
    even my select is simple
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].; nested exception is: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].
         at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1328)
         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 $Proxy144.createQuery(Unknown Source)
         at asu.model.SessionEJBBean.validateLogin(SessionEJBBean.java:51)
         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 $Proxy147.validateLogin(Unknown Source)
         at asu.model.SessionEJB_qxt9um_SessionEJBImpl.validateLogin(SessionEJB_qxt9um_SessionEJBImpl.java:316)
         at asu.model.SessionEJB_qxt9um_SessionEJBImpl_CBV.validateLogin(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 $Proxy145.validateLogin(Unknown Source)
         at asu.view.backing.Login.validate(Login.java:129)
         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:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         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:387)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         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: Exception [EclipseLink-8004] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].
         at org.eclipse.persistence.exceptions.JPQLException.aliasResolutionException(JPQLException.java:192)
         at org.eclipse.persistence.internal.jpa.parsing.VariableNode.validate(VariableNode.java:166)
         at org.eclipse.persistence.internal.jpa.parsing.Node.validate(Node.java:91)
         at org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode.validate(BinaryOperatorNode.java:34)
         at org.eclipse.persistence.internal.jpa.parsing.EqualsNode.validate(EqualsNode.java:41)
         at org.eclipse.persistence.internal.jpa.parsing.WhereNode.validate(WhereNode.java:34)
         at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:211)
         at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:187)
         at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:177)
         at org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree.populateReadQueryInternal(JPQLParseTree.java:110)
         at org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree.populateQuery(JPQLParseTree.java:84)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:202)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:173)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:125)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:109)
         at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1326)
         ... 90 more
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].; nested exception is: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:120)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:102)
         at $Proxy145.validateLogin(Unknown Source)
         at asu.view.backing.Login.validate(Login.java:129)
         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:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         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:387)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:62)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         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: An exception occurred while creating a query in EntityManager:
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].
         at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1328)
         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 $Proxy144.createQuery(Unknown Source)
         at asu.model.SessionEJBBean.validateLogin(SessionEJBBean.java:51)
         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 $Proxy147.validateLogin(Unknown Source)
         at asu.model.SessionEJB_qxt9um_SessionEJBImpl.validateLogin(SessionEJB_qxt9um_SessionEJBImpl.java:316)
         at asu.model.SessionEJB_qxt9um_SessionEJBImpl_CBV.validateLogin(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)
         ... 52 more
    Caused by: Exception [EclipseLink-8004] (Eclipse Persistence Services - 2.0.2.v20100323-r6872): org.eclipse.persistence.exceptions.JPQLException
    Exception Description: Error compiling the query [select o.username , o.password from Authentication o where username=:p_username ], line 1, column 59: unknown identification variable [username]. The FROM clause of the query does not declare an identification variable [username].
         at org.eclipse.persistence.exceptions.JPQLException.aliasResolutionException(JPQLException.java:192)
         at org.eclipse.persistence.internal.jpa.parsing.VariableNode.validate(VariableNode.java:166)
         at org.eclipse.persistence.internal.jpa.parsing.Node.validate(Node.java:91)
         at org.eclipse.persistence.internal.jpa.parsing.BinaryOperatorNode.validate(BinaryOperatorNode.java:34)
         at org.eclipse.persistence.internal.jpa.parsing.EqualsNode.validate(EqualsNode.java:41)
         at org.eclipse.persistence.internal.jpa.parsing.WhereNode.validate(WhereNode.java:34)
         at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:211)
         at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:187)
         at org.eclipse.persistence.internal.jpa.parsing.ParseTree.validate(ParseTree.java:177)
         at org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree.populateReadQueryInternal(JPQLParseTree.java:110)
         at org.eclipse.persistence.internal.jpa.parsing.JPQLParseTree.populateQuery(JPQLParseTree.java:84)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:202)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:173)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:125)
         at org.eclipse.persistence.internal.jpa.EJBQueryImpl.<init>(EJBQueryImpl.java:109)
         at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1326)
         ... 90 more

  • Exception in thread "main" java.lang.Error: Unable to find named traits: org.puremvc.as3.multicore.p

    Hi all,
    i try  to  use  pfi with a  project that i did with  air  in flash builder.
    I make my swf with ant  task
        <target name="releasecompile" depends="init">
        <echo>
                  Ant Task :: releaseCompile
        </echo>
            <java jar="${MXMLC.JAR}" fork="true" failonerror="true">
               <arg value="-debug=false"/>
                <arg value="+flexlib=${SDK_HOME}frameworks"/>
                <arg value="+configname=air"/>
                <arg value="-file-specs=${MAIN_SOURCE_FILE}"/>
                <arg value="-output=${build}/${APP_ROOT_FILE}"/>
            <arg value="-external-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5.swc" />
            </java>
        </target>
    i have a swf in result  and i play  pfi like this
    ./pfi -package -target ipa-ad-hoc -provisioning-profile /Users/stef/Desktop/PROJECT/PROJECT_Config-2.mobileprovision -storetype pkcs12 -keystore /Users/stef/Desktop/PROJECT/Certificats2.p12 -storepass mypass /Users/stef/Desktop/PROJECT/PROJECTConfig.ipa /Users/stef/Documents/Adobe\ Flash\ Builder\ 4/PROJECT/src/PROJECTConfigurateur-app.xml -C /Users/stef/Desktop/PROJECT/ PROJECTConfigurateur.swf  Default.png icons/Icon57.png icons/Icon29.png icons/Icon512.png
    Exception in thread "main" java.lang.Error: Unable to find named traits: org.puremvc.as3.multicore.patterns.facade::Facade
    at adobe.abc.Domain.resolveTypeName(Domain.java:195)
    at adobe.abc.Domain.resolveTypeName(Domain.java:112)
    at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:274)
    at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:837)
    at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:388)
    at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:280)
    at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:160)
    at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:329)
    at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:600)
    at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:196)
    at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:366)
    at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:65)
    at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:165)
    at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)
    at com.adobe.air.ipa.PFI.parseArgsAndGo(PFI.java:152)
    at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)
    at com.adobe.air.ipa.PFI.main(PFI.java:112)
    do you have some  ideas about this ?
    Regards
    Stef

    Ok,
        <target name="releasecompile" depends="init">
        <echo>
                  Ant Task :: releaseCompile
        </echo>
            <java jar="${MXMLC.JAR}" fork="true" failonerror="true">
               <arg value="-debug=false"/>
                <arg value="+flexlib=${SDK_HOME}frameworks"/>
                <arg value="+configname=air"/>
                <arg value="-file-specs=${MAIN_SOURCE_FILE}"/>
                <arg value="-output=${build}/${APP_ROOT_FILE}"/>
            <arg value="-external-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5. swc" />
            </java>
        </target>
    I mistake  this line
      <arg value="-external-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5. swc" />
    must be
    <arg value="-library-path+=${APP_ROOT}/libs/PureMVC_AS3_MultiCore_1_0_5.swc" />
    for  include the content in the swf.
    Regards
    Stef

  • Export Release Build error - Exception in thread "main" java.lang.Error: Unable to find named traits

    I've been developing an AIR application for Android and iOS. During development, I've run the application (in debug mode) in the desktop simulator as well as on an iPhone 4 and a Nook Tablet.
    However, I recently tried to "Export Release Build" for iOS and hit the following error: (I've stripped out the package and class information in the error message below)
    !ENTRY com.adobe.flexbuilder.project 4 43 2012-04-06 13:09:15.516
    !MESSAGE Error occurred while packaging the application:
    Exception in thread "main" java.lang.Error: Unable to find named traits: valid.package.path.here::ValidClassName
              at adobe.abc.Domain.resolveTypeName(Domain.java:231)
              at adobe.abc.Domain.resolveTypeName(Domain.java:148)
              at adobe.abc.GlobalOptimizer.sccp_eval(GlobalOptimizer.java:6665)
              at adobe.abc.GlobalOptimizer.sccp_analyze(GlobalOptimizer.java:5909)
              at adobe.abc.GlobalOptimizer.sccp(GlobalOptimizer.java:4628)
              at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:3514)
              at adobe.abc.GlobalOptimizer.optimize(GlobalOptimizer.java:2215)
              at adobe.abc.LLVMEmitter.optimizeABCs(LLVMEmitter.java:526)
              at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:336)
              at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcodeImpl(AOTCompiler.java:472)
              at com.adobe.air.ipa.BitcodeGenerator.main(BitcodeGenerator.java:82)
    Compilation failed while executing : ADT
    !STACK 0
    java.lang.Exception
              at com.adobe.flexbuilder.project.internal.FlexProjectCore.createErrorStatus(FlexProjectCore. java:1019)
              at com.adobe.flexbuilder.util.logging.GlobalLogImpl.log(GlobalLogImpl.java:66)
              at com.adobe.flexbuilder.util.logging.GlobalLog.log(GlobalLog.java:52)
              at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.doPackage (ExportReleaseVersionWizard.java:283)
              at com.adobe.flexbuilder.exportimport.releaseversion.ui.ExportReleaseVersionWizard.performFi nish(ExportReleaseVersionWizard.java:152)
              at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
              at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
              at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
              at org.eclipse.jface.window.Window.open(Window.java:801)
              at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction$1.run(Export ReleaseVersionAction.java:97)
              at com.adobe.flexbuilder.exportimport.releaseversion.ExportReleaseVersionAction.run(ExportRe leaseVersionAction.java:103)
              at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
              at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
              at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)
              at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
              at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
              at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
              at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
              at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
              at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:108)
              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
              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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    The class the error message is referring to is defined with a SWC that my project links to. However, I've even tried to define a class with that same name (and location) within my project and it still fails to find it.
    Why am I able to Project->Clean and run this project within the desktop AIR player (or on the device in debug mode) but unable to export it as a release build?
    I have found a couple of threads mentioning a similar error but none of them have been marked as resolved.

    At this point I feel I am talking to myself, but I will share my work-around in case it helps another who may stumble across this post.
    In my particular case, both my main AIR application and my ANE wrapper library were referencing the same external Flex library (same revision). Both projects had the library linkage set to merge. Changing the linkage to "External" on one of the 2 libraries (it doesn't seem to matter which) and leaving the other as "Merged into code" enabled the export to complete without the bizarre "Unable to find named traits" error.

  • Aused by: javax.naming.NameNotFoundException: Unable to resolve 'RuntimeConfigService'. Resolved ''; remaining name 'RuntimeConfigService'

    Hi - While starting my weblogic admin server which is configured with Primavera and has BPM on that is throwing error like.
    Please help me on this.
    <Aug 27, 2013 3:09:31 PM IST> <Warning> <oracle.soa.services.workflow.worklist> <BEA-000000> <<.> Error while setting task display, this can happen with app l
    oading issue, trying to load for 16>
    TaskFlow Registration: TaskFlowDeployerThread.registerTaskFlowWithTask - calling TaskFlowPropsUtil.setTaskDisplayInfo - iteration-17
    TaskFlow Registration: TaskFlowPropsUtil.setTaskDisplayInfo - begin with following params
    ClientLookupType=REMOTE
    CompositeVerion=null
    CompositeAppName=null
    TaskDefinitionNamespace=http://xmlns.oracle.com/P6ConfigValidator/P6ConfigValidator/ConfigurationReport
    Hostname=gcdsinggn3abac02
    URI=/workflow/P6ConfigUI/faces/adf.task-flow?_id=ConfigurationReport_TaskFlow&_document=WEB-INF/ConfigurationReport_TaskFlow.xml
    TaskFlow Registration: TaskFlowPropsUtil.setTaskDisplayInfo - using namespace - http://xmlns.oracle.com/P6ConfigValidator/P6ConfigValidator/ConfigurationRepor
    t
    TaskFlow Registration: TaskFlowPropsUtil.setTaskDisplayInfo (private) - begin
    TaskFlow Registration: TaskFlowPropsUtil.setTaskDisplayInfo (private) - obtaining existing taskDisplayInfo for namespace: http://xmlns.oracle.com/P6ConfigVali
    dator/P6ConfigValidator/ConfigurationReport
    oracle.bpel.services.workflow.client.WorkflowServiceClientException: javax.naming.NameNotFoundException: Unable to resolve 'RuntimeConfigService'. Resolved ''
    ; remaining name 'RuntimeConfigService'
            at oracle.bpel.services.workflow.runtimeconfig.client.RuntimeConfigServiceRemoteClient.getTaskDisplayInfo(RuntimeConfigServiceRemoteClient.java:698)
            at sun.reflect.GeneratedMethodAccessor318.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invokeTarget(WFClientRetryInvocationHandler.java:133)
            at oracle.bpel.services.workflow.client.WFClientRetryInvocationHandler.invoke(WFClientRetryInvocationHandler.java:72)
            at $Proxy124.getTaskDisplayInfo(Unknown Source)
            at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.setTaskDisplayInfo(TaskFlowPropsUtil.java:850)
            at oracle.bpel.services.workflow.client.worklist.util.TaskFlowPropsUtil.setTaskDisplayInfo(TaskFlowPropsUtil.java:825)
            at oracle.bpel.services.workflow.client.worklist.servlet.TaskFlowDeployerThread.registerTaskFlowWithTask(TaskFlowDeployerThread.java:276)
            at oracle.bpel.services.workflow.client.worklist.servlet.TaskFlowDeployerThread.run(TaskFlowDeployerThread.java:133)
            at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'RuntimeConfigService'. Resolved ''; remaining name 'RuntimeConfigService'
            at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
            at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
            at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
            at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
            at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:412)
            at javax.naming.InitialContext.lookup(InitialContext.java:392)
            at oracle.bpel.services.workflow.runtimeconfig.client.RuntimeConfigServiceRemoteClient.getTaskDisplayInfo(RuntimeConfigServiceRemoteClient.java:693)
            ... 11 more
    TaskFlow Registration: TaskFlowDeployerThread.registerTaskFlowWithTask - Error while setting task display, this can happen with app loading issue, trying to l
    oad for 17

    Can any one help me Please ...

  • Javax.naming.NameNotFoundException: Unable to resolve 'TaskQueryService' -

    Hi,
    I am getting the following BPEL error on clicking tasks tab in OIM11g...please advise. Appreciate your help!
    <Error occurred while connecting to BPEL>
    <Error> <oracle.iam.tasklist.agentry.task> <BEA-00
    0000> < javax.naming.NameNotFoundException: Unable to resolve 'TaskQueryService'
    . Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to r
    esolve 'TaskQueryService'. Resolved '']; remaining name 'TaskQueryService'>
    <Warning> <oracle.iam.consoles.faces.mvc.common> <
    BEA-000000> <oracle.iam.platform.canonic.base.NoteException: An error occurred w
    hile searching tasks from the SOA Server.>
    Thanks,
    Sudhakar

    I guess SOA installation did not happen properly. Reinstallation took care of this issue.

  • Javax.naming.NameNotFoundException: Unable to resolve 'cgDataSource'

    Hello,
    I'm getting the following error when I try to test my web service. I will really appreciate your help.
    Thanks
    Godwin
    =========error message=====weblogic platform 8.1=====
    Error: An unexpected exception occurred while attempting to locate the
    run-time information for this Web Service. Error:
    javax.ejb.EJBException:nested exception is:
    javax.naming.NameNotFoundException: Unable to resolve 'cgDataSource'
    Resolved ; remaining name 'cgDataSource'
    =======================================================
    ===========code========================================
    public class Hello implements com.bea.jws.WebService
    public Callback callback;
    static final long serialVersionUID = 1L;
    * @common:operation
    public String hello_sync(String name)
    return "Hello, " + name + "!";
    * @common:operation
    * @jws:conversation phase="start"
    * @common:message-buffer enable="true"
    public void hello_async(String name)
    String greeting;
    greeting = "Hello, " + name + "!";
    this.callback.hello_callback(greeting);
    public interface Callback extends com.bea.control.ServiceControl
    * @jws:conversation phase="finish"
    * @common:message-buffer enable="true"
    void hello_callback(String message);
    }

    Make sure you have the datasource set up through the console (ie it is the database datasource) and deployed to the server you are deploying your webservice to.

  • Javax.naming.NameNotFoundException: Unable to resolve 'jppsacntrQ' Resolved: ''

    Hi,
              I have written a simple client to receive messages from a 'jppsacntrQ'
              queue,
              The jms server which keeps this queue is already targetted at the
              server I am running.
              I have closed my command prompt and restarted WLS a few times but I am
              still getting this error.
              Has anyone else encountered the same problem?
              Appreciate the help ...
              Victor
              c:\program files\intellij-idea-3.0.4\jre\bin\java.exe -Xmx128M
              -Djava.home=C:\Program Files\IntelliJ-IDEA-3.0.4\jre -classpath
              c:\program files\intellij-idea-3.0.4\jre\lib\tools.jar;C:\Program
              Files\IntelliJ-IDEA-3.0.4\lib\idea_rt.jar;C:\Program
              Files\IntelliJ-IDEA-3.0.4\lib\ant.jar;C:\Program
              Files\IntelliJ-IDEA-3.0.4\lib\optional.jar;C:\Program
              Files\IntelliJ-IDEA-3.0.4\lib\\rt\xerces1.jar
              com.intellij.rt.ant.execution.AntMain -logger
              com.intellij.rt.ant.execution.IdeaAntLogger -verbose
              -Dbuild.compiler.emacs=true -buildfile
              C:\java-projects\portnet-jp\build.xml test-polling-subscriber
              build.xml
              test-polling-subscriber
              java
              Running Start Polling Task ...
              DEBUG [main]: subscriber.propertyFile.path=C:/java-projects/portnet-jp/resources/configuration/JPContainer.cfg
              DEBUG [main]: java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
              DEBUG [main]: java.naming.provider.url=t3://localhost:7001
              DEBUG [main]: java.naming.referral=throw
              DEBUG [main]: java.naming.security.authentication=simple
              DEBUG [main]: java.naming.security.principal=null
              DEBUG [main]: java.naming.security.credentials=null
              DEBUG [main]: sleepTimePerCycle=15000
              DEBUG [main]: queueConnectionFactoryName=pnsgQCF
              DEBUG [main]: incomingQueueName=jppsacntrQ
              DEBUG [main]: incomingFileStorePath=C:/java-projects/portnet-jp/resources/data/JP/Container/IN
              DEBUG [main]: timestampFormat=yyyyMMddHHmm
              INFO [main]: Setting Up Queue and QueueConnectionFactory ...
              DEBUG [main]: Looking up QueueConnectionFactory: pnsgQCF
              DEBUG [main]: Looking up Incoming Queue: jppsacntrQ
              javax.naming.NameNotFoundException: Unable to resolve 'jppsacntrQ'
              Resolved: '' Unresolved:'jppsacntrQ' ; remaining name 'jppsacntrQ'
                   at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
                   at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
                   at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
                   at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown
              Source)
                   at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
                   at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
                   at javax.naming.InitialContext.lookup(Unknown Source)
                   at pow.business.JP.Container.JPCntrSubscriber.init(JPCntrSubscriber.java:162)
                   at pow.business.JP.Container.JPCntrSubscriber.<init>(JPCntrSubscriber.java:58)
                   at pow.business.JP.Container.Main.start(Main.java:183)
                   at pow.business.JP.Container.Main.main(Main.java:289)
              Please check whether 'jndi.properties' is available in the CLASSPATH
              and whether it has been configured properly.
              Java Result: -1
              Build completed with 1 error and 13 warnings. Time: 13 s
              

              Looks OK - did you check your log file for error messages?
              Post the log file if you want me take a look.
              [email protected] (Kok Liang) wrote:
              >Here it is:
              >
              ><?xml version="1.0" encoding="UTF-8"?>
              ><!--Last updated on: Sat May 24 01:50:49 SGT 2003, If your domain is
              >active, please do not edit the config.xml file. Any changes made to
              >that file while the domain is active will not have any effect on the
              >domain's configuration and are likely to be lost. If your domain is
              >inactive, you may edit this file with an XML editor. If you do so,
              >please refer to the BEA Weblogic Server Configuration Reference
              >documentation available from
              >http://edocs.bea.com/wls/docs70/config_xml. In general, we recommend
              >that changes to your configuration file be made through the
              >Administration Console.-->
              ><Domain ConfigurationVersion="7.0.1.0" Name="portnet-domain">
              >     <Application Deployed="true" Name="DefaultWebApp"
              >Path=".\applications" StagedTargets="" TwoPhase="false">
              >          <WebAppComponent Name="DefaultWebApp" Targets="portnet-server"
              >URI="DefaultWebApp"/>
              >     </Application>
              >     <Application Deployed="true" Name="certificate" Path=".\applications"
              >StagedTargets="" TwoPhase="false">
              >          <WebAppComponent Name="certificate" Targets="portnet-server"
              >URI="certificate.war"/>
              >     </Application>
              >     <Application Deployed="true" Name="jive3"
              >Path="C:\java-libraries\jive_forums_pro_3_0_9" TwoPhase="true">
              >          <WebAppComponent Name="jive3" Targets="portnet-server"
              >URI="jive3.war"/>
              >     </Application>
              >     <ApplicationManager Name="portnet-domain"/>
              >     <EmbeddedLDAP Credential="{3DES}U0sIdpap3Jn35/agldr/nk4n9q5Vo449V4F0z3bLPsM="
              >Name="portnet-domain"/>
              >     <FileRealm Name="wl_default_file_realm"/>
              >     <JMSConnectionFactory DefaultDeliveryMode="Persistent"
              >JNDIName="pnsgQCF" Name="pnsgQCF" Targets="portnet-server"/>
              >     <JMSDestinationKey Name="portnet-jms-dest-key"/>
              >     <JMSFileStore Directory="c:\bea\user_projects\portnet-domain\logs\file-store"
              >Name="portnet-jms-file-store"/>
              >     <JMSServer Name="portnet-jms-server" Store="portnet-jms-file-store"
              >Targets="portnet-server">
              >          <JMSQueue BytesPagingEnabled="false"
              >DeliveryModeOverride="Persistent"
              >DestinationKeys="portnet-jms-dest-key" JNDIName="jppsacntrQ"
              >MessagesPagingEnabled="false" Name="jppsacntrQ" StoreEnabled="true"/>
              >          <JMSQueue BytesPagingEnabled="false"
              >DeliveryModeOverride="Persistent"
              >DestinationKeys="portnet-jms-dest-key" JNDIName="psajpcntrQ"
              >MessagesPagingEnabled="false" Name="psajpcntrQ" StoreEnabled="true"/>
              >     </JMSServer>
              >     <JTA Name="portnet-domain"/>
              >     <Log FileName=".\wl-domain.log" Name="portnet-domain"/>
              >     <PasswordPolicy Name="wl_default_password_policy"/>
              >     <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
              >     <SNMPAgent Name="portnet-domain"/>
              >     <Security GuestDisabled="false" Name="portnet-domain"
              >PasswordPolicy="wl_default_password_policy" Realm="wl_default_realm"
              >RealmSetup="true"/>
              >     <SecurityConfiguration
              >Credential="{3DES}iE0EWRYurlOnPzbJk1HTM6ajARYfmNrCU4UL/1iAQRJOQGyzRoBdl9bhnBu6JzIucTmQclA22XOW7WwQpMguyQqbLDIGr1VA"
              >Name="portnet-domain"/>
              >     <Server ListenPort="7001" Name="portnet-server"
              >NativeIOEnabled="true" ServerVersion="7.0.1.0"
              >StdoutDebugEnabled="true">
              >          <COM Name="portnet-server"/>
              >          <ExecuteQueue Name="default" ThreadCount="15"/>
              >          <IIOP Name="portnet-server"/>
              >          <JTAMigratableTarget Cluster="" Name="portnet-server"
              >UserPreferredServer="portnet-server"/>
              >          <JTARecoveryService Name="portnet-server"/>
              >          <KernelDebug Name="portnet-server"/>
              >          <Log FileName="portnet-server\portnet-server.log"
              >Name="portnet-server"/>
              >          <SSL Enabled="true" HostnameVerificationIgnored="true"
              >ListenPort="7002" Name="portnet-server"
              >ServerCertificateFileName="democert.pem"
              >ServerPrivateKeyAlias="demokey"
              >ServerPrivateKeyPassPhrase="{3DES}F9QhYhhBa4InPlBKebOlAw=="/>
              >          <ServerDebug Name="portnet-server"/>
              >          <ServerStart Name="portnet-server"/>
              >          <WebServer DefaultWebApp="DefaultWebApp"
              >LogFileName="portnet-server\access.log" LoggingEnabled="true"
              >Name="portnet-server"/>
              >     </Server>
              ></Domain>
              >
              >
              >Tom Barnes <[email protected]> wrote in message news:<[email protected]>...
              >> Please post your config.xml
              >>
              >> Kok Liang wrote:
              >> > Hi,
              >> >
              >> > I have written a simple client to receive messages from a 'jppsacntrQ'
              >> > queue,
              >> >
              >> > The jms server which keeps this queue is already targetted at the
              >> > server I am running.
              >> >
              >> > I have closed my command prompt and restarted WLS a few times but
              >I am
              >> > still getting this error.
              >> >
              >> > Has anyone else encountered the same problem?
              >> >
              >> > Appreciate the help ...
              >> >
              >> > Victor
              >> >
              >> > c:\program files\intellij-idea-3.0.4\jre\bin\java.exe -Xmx128M
              >> > -Djava.home=C:\Program Files\IntelliJ-IDEA-3.0.4\jre -classpath
              >> > c:\program files\intellij-idea-3.0.4\jre\lib\tools.jar;C:\Program
              >> > Files\IntelliJ-IDEA-3.0.4\lib\idea_rt.jar;C:\Program
              >> > Files\IntelliJ-IDEA-3.0.4\lib\ant.jar;C:\Program
              >> > Files\IntelliJ-IDEA-3.0.4\lib\optional.jar;C:\Program
              >> > Files\IntelliJ-IDEA-3.0.4\lib\\rt\xerces1.jar
              >> > com.intellij.rt.ant.execution.AntMain -logger
              >> > com.intellij.rt.ant.execution.IdeaAntLogger -verbose
              >> > -Dbuild.compiler.emacs=true -buildfile
              >> > C:\java-projects\portnet-jp\build.xml test-polling-subscriber
              >> > build.xml
              >> > test-polling-subscriber
              >> > java
              >> > Running Start Polling Task ...
              >> > DEBUG [main]: subscriber.propertyFile.path=C:/java-projects/portnet-jp/resources/configuration/JPContainer.cfg
              >> > DEBUG [main]: java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
              >> > DEBUG [main]: java.naming.provider.url=t3://localhost:7001
              >> > DEBUG [main]: java.naming.referral=throw
              >> > DEBUG [main]: java.naming.security.authentication=simple
              >> > DEBUG [main]: java.naming.security.principal=null
              >> > DEBUG [main]: java.naming.security.credentials=null
              >> > DEBUG [main]: sleepTimePerCycle=15000
              >> > DEBUG [main]: queueConnectionFactoryName=pnsgQCF
              >> > DEBUG [main]: incomingQueueName=jppsacntrQ
              >> > DEBUG [main]: incomingFileStorePath=C:/java-projects/portnet-jp/resources/data/JP/Container/IN
              >> > DEBUG [main]: timestampFormat=yyyyMMddHHmm
              >> > INFO [main]: Setting Up Queue and QueueConnectionFactory ...
              >> > DEBUG [main]: Looking up QueueConnectionFactory: pnsgQCF
              >> > DEBUG [main]: Looking up Incoming Queue: jppsacntrQ
              >> > javax.naming.NameNotFoundException: Unable to resolve 'jppsacntrQ'
              >> > Resolved: '' Unresolved:'jppsacntrQ' ; remaining name 'jppsacntrQ'
              >> >      at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
              >> >      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
              >> >      at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
              >> >      at weblogic.jndi.internal.ServerNamingNode_WLStub.lookup(Unknown
              >> > Source)
              >> >      at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:337)
              >> >      at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:332)
              >> >      at javax.naming.InitialContext.lookup(Unknown Source)
              >> >      at pow.business.JP.Container.JPCntrSubscriber.init(JPCntrSubscriber.java:162)
              >> >      at pow.business.JP.Container.JPCntrSubscriber.<init>(JPCntrSubscriber.java:58)
              >> >      at pow.business.JP.Container.Main.start(Main.java:183)
              >> >      at pow.business.JP.Container.Main.main(Main.java:289)
              >> > Please check whether 'jndi.properties' is available in the CLASSPATH
              >> > and whether it has been configured properly.
              >> > Java Result: -1
              >> >
              >> > Build completed with 1 error and 13 warnings. Time: 13 s
              

  • Javax.naming.NameNotFoundException: Unable to resolve ejb-link.

    Env: JDK 1.3.1_08
    Weblogic: 7.0
    We are attempting to use EJB's (session) and have it all localized in a jar.
    The Business and Custom Logic is all compiled to WEB-INF/classes. All the jars including the EJB jar is under WEB-INF/lib.
    On Startup Weblogic throws the error message
    weblogic.management.ApplicationException: activate failed for application
    Module Name: application, Error: weblogic.j2ee.DeploymentException: Could not setup environment - with nested exception:
    [javax.naming.NameNotFoundException: Unable to resolve ejb-link. Appejb.jar#AppServerBean is not in the context. The context includes the following link bindings: {} Make sure the link reference is relative to the URI of the referencing module.]
    I have tried using the ../ notation before the Appejb.jar in the web.xml and what not, but that does not work either.
    I have sucesfully deployed the EJB jar through the weblogic console.
    Any Clues or suggestions will be most appreciated..
    thanks
    -a

    Create a ear application from the ejb jar and web application war.
    Copy ear application to the applications directory.
    In the ejb-link element in web.xml specify the relative path to the ejb jar.
    <ejb-link>../Appejb.jar</ejb-link>
    thanks,
    Deepak
    Akshay <[email protected]> wrote:
    Env: JDK 1.3.1_08
    Weblogic: 7.0
    We are attempting to use EJB's (session) and have it all localized in
    a jar.
    The Business and Custom Logic is all compiled to WEB-INF/classes. All
    the jars including the EJB jar is under WEB-INF/lib.
    On Startup Weblogic throws the error message
    weblogic.management.ApplicationException: activate failed for application
    Module Name: application, Error: weblogic.j2ee.DeploymentException: Could
    not setup environment - with nested exception:
    [javax.naming.NameNotFoundException: Unable to resolve ejb-link. Appejb.jar#AppServerBean
    is not in the context. The context includes the following link bindings:
    {} Make sure the link reference is relative to the URI of the referencing
    module.]
    I have tried using the ../ notation before the Appejb.jar in the web.xml
    and what not, but that does not work either.
    I have sucesfully deployed the EJB jar through the weblogic console.
    Any Clues or suggestions will be most appreciated..
    thanks
    -a

  • Exception in thread "main" javax.mail.NoSuchProviderException: invalid prov

    HI,
    I am trying to read mails from my inbox i amgetting the ErrorC:\javamail>java
    Readmail
    Exception in thread "main" javax.mail.NoSuchProviderException: No provider for IMAP
            at javax.mail.Session.getProvider(Session.java:455)
            at javax.mail.Session.getStore(Session.java:530)
            at javax.mail.Session.getStore(Session.java:510)
            at Readmail.main(Readmail.java:24)My Code is    {
    String host = "hostname";
    String username = "user";
    String password = "password";
    // Create empty properties
    Properties props = new Properties();
    // Get session
    Session session = Session.getDefaultInstance(props,null);
    // Get the store
    Store store = session.getStore("IMAP");
    store.connect(host, username, password);
    // Get folder
    Folder folder = store.getFolder("Inbox");
    folder.open(Folder.READ_ONLY);
    // Get directory
    Message message[] = folder.getMessages();
    for (int i=0, n=message.length; i<n; i++)
       System.out.println(i + ": " + message.getFrom()[0]
    + "\t" + message[i].getSubject());
    // Close connection
    folder.close(false);
    store.close();
    I have also tried POP3 and MIME and SMTP
    Can anyone help me Thanks

    hi bshannon,
    I am getting the same error for others but for pop3 the error is as below
    Exception in thread "main" javax.mail.MessagingException: Connect failed;
      nested exception is:
            java.net.ConnectException: Connection refused: connect
            at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
            at javax.mail.Service.connect(Service.java:275)
            at javax.mail.Service.connect(Service.java:156)
            at Readmail.main(Readmail.java:25)
    Caused by: java.net.ConnectException: Connection refused: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
            at java.net.Socket.connect(Socket.java:452)
            at java.net.Socket.connect(Socket.java:402)
            at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
            at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
            at com.sun.mail.pop3.Protocol.<init>(Protocol.java:81)
            at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
            at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
            ... 3 more

  • Javax.naming.NameNotFoundException: Unable to resolve 'ATGProductionDS'   - in Weblogic on starting the server

    Hi,
    I am not able to resolve the JNDI name - ATGProductionDS
    I have used CIM to create this and i am using ATG10.2 with MYSQL as my database and weblogic.
    /atg/epub/file/ConfigFileSystem journaling file system started: vfs=file:/C:
    /Stixs/ATG/ATG10.2/home/PublishingAgent/deploymentconfig/live/config/ journalDirectory=C:\Stixs\ATG\ATG10.2\home\PublishingAgent\deploymentc
    onfig\data\config
    **** Error      Fri Dec 27 20:58:35 EST 2013    1388195915495   /atg/dynamo/service/jdbc/DirectJTDataSource     Failed to resolve ATGProduct
    ionDS   javax.naming.NameNotFoundException: Unable to resolve 'ATGProductionDS'. Resolved ''; remaining name 'ATGProductionDS'
    **** Error      Fri Dec 27 20:58:35 EST 2013    1388195915495   /atg/dynamo/service/jdbc/DirectJTDataSource             at weblogic.jndi.int
    ernal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    **** Error      Fri Dec 27 20:58:35 EST 2013    1388195915495   /atg/dynamo/service/jdbc/DirectJTDataSource             at weblogic.jndi.int
    Entries from Weblogic console -datasources
    ATGBatchDS
    Generic
    ATGBatchDS
    ATGProductionDS
    Generic
    ATGProductionDS
    atg_production_lockserver, atg_publishing_lockserver
    ATGPublishingDS
    Generic
    ATGPublishingDS
    atg_publishing_lockserver
    Please provide assistance.

    Hi,
    if you click the "Control" tab for the ATGProductionDS datasource in the Weblogic console does it show the State as running?
    Does the "Monitoring" tab for the datasource show the State as running? If you click on the "Testing" tab can you test the datasource successfully?
    If you inspect the Server using the Weblogic console there is a link "View JNDI Tree" If you click the link do you see the datasource listed in the left pane?
    Do you see any errors for the ATGProductionDS in the Weblogic server log and out log files?

  • Javax.naming.NameNotFoundException: Unable to resolve comp/env/CustomerBeanRef

    Hi,
    I used wls 6.1 sp2 and the sql2000 I wonder any one have the following problem
    before.
    in the weblogic-ejb-jar.xml I defined tthe <local-jndi name>customer.LocalCustomerHome</local-jndi-name>
    and in the jsp page I lookup by InitialContext ic = new InitialContext(); // System.out.println("Init
    context"); System.out.println(ic.toString()); Object o = ic.lookup("customer.LocalCustomerHome");
    I am using global namespace(customer.LocalCustomerHome) rather than the local
    java:comp/env/ejb namespace in here.
    when I try to run the jsp file to create customer I got javax.naming.NameNotFoundException:
    Unable to resolve comp/env/CustomerBeanRef I changed the comp/env/CustomerBeanRef
    in the lookup code of the jsp to customer.LocalCustomerHome that is defined in
    weblogic-ejb-jar.xml but it still refer to comp/env/CustomerBeanRef.
    I stop the wlserver and deleted all __generate.class from the jsp then restart
    the wlserver it still the same.
    Thanks
    -------part of weblogic-ejb-jar.xml -----------
    <weblogic-enterprise-bean> <ejb-name>CustomerBean</ejb-name> <entity-descriptor>
    <persistence> <persistence-type> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version> <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
    </persistence-type> <persistence-use> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>6.0</type-version> </persistence-use>
    </persistence>
    </entity-descriptor>
    <local-jndi-name>customer.LocalCustomerHome</local-jndi-name> </weblogic-enterprise-bean>
    -------------------end of weblogic-ejb-jar.xml ---------------
    [createCustomer.jsp]

    Hi,
    set this under startup script at java option.
    -Dweblogic.jndi.retainenvironment=true
    and restart the server again.
    Regards,
    Kal

  • Exception in thread "main" javax.mail.MessagingException: [EOF]

    hi i have a new Application which i need to send Email from it to people
    i have tried the code in my university pc's and i works soo fine...but in my home
    it gave my error
    here is the code
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class TestMail
         public static void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException
             boolean debug = false;
              //Set the host smtp address
              Properties props = new Properties();
              props.put("mail.smtp.host", "mx2.hotmail.com");
             // create some properties and get the default Session
             Session session = Session.getDefaultInstance(props, null);
             session.setDebug(debug);
             // create a message
                  Message msg = new MimeMessage(session);
             // set the from and to address
             InternetAddress addressFrom = new InternetAddress(from);
             msg.setFrom(addressFrom);
             InternetAddress[] addressTo = new InternetAddress[recipients.length];
             for (int i = 0; i < recipients.length; i++)
                 addressTo[i] = new InternetAddress(recipients);
         msg.setRecipients(Message.RecipientType.TO, addressTo);
         // Optional : You can also set your custom headers in the Email if you Want
         msg.addHeader("MyHeaderName", "myHeaderValue");
         // Setting the Subject and Content Type
         msg.setSubject(subject);
         msg.setContent(message, "text/plain");
         Transport.send(msg);
         public static void main(String args[])throws MessagingException
              String mailers[] = new String[1];
              mailers[0] = "[email protected]";
              postMail(mailers,"hello","hello my dear ay","[email protected]");
    }and  here is the output of the programe(the error)Exception in thread "main" javax.mail.MessagingException: [EOF]
    at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1481)
    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
    512)
    at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
    at javax.mail.Transport.send0(Transport.java:189)
    at javax.mail.Transport.send(Transport.java:118)
    at TestMail.postMail(TestMail.java:39)
    at TestMail.main(TestMail.java:45)
    Press any key to continue . . .plz help meee
    Edited by: mld on Dec 30, 2007 9:37 AM
    Edited by: mld on Dec 31, 2007 2:32 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    i have tried every thing
    i put stmp.bebug in my code and it gave me the following (tis is a part of the output...the other is not important)
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: not loading file: C:\Program Files\Java\jdk1.5.0_06\jre\lib\javamail.addr
    ess.map
    DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.5.0_06\jre\lib\
    javamail.address.map (The system cannot find the file specified)
    Exception in thread "main" javax.mail.MessagingException: [EOF]
            at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1481)
            at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1
    512)
            at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1054)
            at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:634)
            at javax.mail.Transport.send0(Transport.java:189)
            at javax.mail.Transport.send(Transport.java:118)
            at TestMail.postMail(TestMail.java:43)
            at TestMail.main(TestMail.java:49)
    Press any key to continue . . .

  • Javax.naming.NameNotFoundException: Unable to resolve OATS_common_DS

    In case anyone runs up against this it looks like some MS Security patches can mess up an OATS install.
    In the <INSTALL_LOCATION>:\OracleATS\oats\servers\AdminServer\logs\oats.log you will see exception messages
    saying you it cannot reach a SID / resolve OATS_COMMON_DS.
    The resolution was to update the registry key: HKLM\SOFTWARE\Microsoft\MSDTC\Security\XaTransactions
    and set it to a value of 1.
    Regards,
    John A. Booth
    http://www.metavero.com

    No problem :-) Happy to hear that you fixed it.
    BTW, there is a tool provided with OATS (Database Configuration Tool) allowing you to review/reconnect to the database. I didn't think about it at first but this is a good idea to try that one next one you (or someone else) faces the problem.
    Database Configuration Tool: <oats_install>/bin/DbConfig.sh
    Some other useful tools:
    Create Support Package: <oats_install>/bin/oats_support.sh
    OLT Agent Authentication Manager: <oats_install>/jdk/jre/bin/javaw -jar <oats_install>/agentmanager/AMAuthManager.jar
    Restart OATS App Service: <oats_install>/bin/restartSvc.sh [OracleATSServer | OracleATSAgent]
    Stop OATS App Service: <oats_install>/bin/stopSvc.sh [OracleATSServer | OracleATSAgent]
    JB

Maybe you are looking for

  • Portal Drive Single Sign On and Kerberos Authentication

    Hi, We are using NW2004s SP10 Portal and we have successfully configured Kerberos authentication with Windows Active Directory 2003. To access the KM Content in windows explorer format, we are using Portal Drive but Portal Drive still asks for authen

  • How to get the date/time of flush shared_pool commands?

    I think there´s some script, which in been runned with a privileged user, that is recurring flushing the shared_pool. Is there a way to know the last date/time when an 'alter system flush shared_pool' was issued? Or, better, how can I tell Oracle RDB

  • Need opinions / benefits of previous experience - PD and external document repository integrations ....

    We are using PD in support of our EA Program. Current efforts have been focused on getting started from a zero base and working on ensuring we have a consistent baseline for the 100(ish) business systems that this effort encompasses. This has largely

  • How to Document mode to EDGE by default

    Windows 7 x64 SP1 enviroment, IE11 patched via WSUS to all Computers. In F12 developer tools, document mode is not EDGE as default. Our Customer requires to be EDGE on all Computers. This is something I´m not femiliar with and there is no Policy or P

  • Phishing attempt?

    I just got an email from "Katie Salomon"... How the heck am I receiving spam from my own email address? It was an ad trying to link me to the Facebook page of luxuryitalianrealty.com.  I didnt click the link, but I'm quite concerned that someone has