Unable to resolve a reference to a  variable

I am having an error message telling me that it is unable to a resolve a reference to a variable when I try to query a certain data block. I have debugged the form and have made certain that the correct variables are in the form. Why am I getting this error? Here is my code:
Declare     
     n_proj_id t_assignment.proj_id%TYPE := NULL;
     n_con_id t_consultant.con_id%TYPE;
begin
     n_con_id := :t_consultant.con_id;
     SELECT proj_id
     INTO n_proj_id
     FROM t_consultant
     WHERE t_consultant.con_id = n_con_id;
     IF n_proj_id IS NOT NULL THEN
          Set_Block_Property('t_assignment', ONETIME_WHERE, 'proj_id = :n_proj_id');
          go_block('t_assignment');
          execute_query;
     END IF;
end;

it's the n_proj_id variable that can't be reference. Just wanted to clarify.

Similar Messages

  • Enter Journal - FRM-40105: Unable to resolve reference to item GLXJEENT_A

    Hello,
    When I am opening the form Enter Journals in General Ledger, the following messages is prompted:
    FRM-40105: Unable to resolve reference to item GLXJEENT_A
    Note that if I turn the Custom code Off, the error does not appear.
    Please help,
    Vikram

    Thanks Dirk,
    I have open the CUSTOM.pll file in form builder and found the following:
    fdrcsid('$Header: CUSTOM.pld 115.5.1150.1 2000/02/07 16:10:16 pkm ship $');
    I have applied a patch on the environment to update version to R12.1.2.
    Should this Header information in the CUSTOM.pll be updated? how do we do update it?

  • Error unable to resolve reference to items.

    hello experts,
    i have a problem in oracle form.i have to search item that are coming thorugh db. a same items comes multiple time.
    suppose a item XXX comes five times in form then when i search for this item XXX then cursor search this part five times one by one
    i using below code for searching.then that error comes unable to resolve reference to items.pls help me to resolve this issue.
    DECLARE
    temp_last number(2);
    item varchar2(30);
    chk_exc exception;
    i number(2);
    j number(2);
    BEGIN
    go_block('BLOCK3');
    last_record;
    temp_last:=to_number(:system.cursor_record);
    for i in 1..temp_last
    loop
    go_record(i);
    item:=:BLOCK3.item;
    if ITEM=:BLOCK1.SEARCH_PART
    THEN
    GO_ITEM(':BLOCK3.item');
    end if;
    end loop;
    exception
    when chk_exc then
    mess(' Not Exist !');
    Raise form_trigger_failure;
    END;
    Thanks
    Ravi

    Hi Ravi,
    try this code
    DECLARE
         temp_last number(2);
         item varchar2(30);
         chk_exc exception;
         i number(2);
         j number(2);
    BEGIN
         go_block('BLOCK3');
         last_record;
         temp_last:=to_number(:system.cursor_record);
         for i in 1..temp_last loop
              go_record(i);
              item:=:BLOCK3.item;
              if ITEM=:BLOCK1.SEARCH_PART THEN
                   GO_ITEM('BLOCK3.item');
              end if;
         end loop;
         exception
         when chk_exc then
         message(' Not Exist !');
         message(' Not Exist !');
         Raise form_trigger_failure;
    END; Hope works...
    hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • FRM-10405 UNABLE TO RESOLVE REFERENCE

    im using forms 6i.
    i have a tabular block named "SUB". in which i have a text field named "LTYPE".
    on LTYPE field i have a post change trigger in which i have a tiny code
         if :sub.ltype='B' then
              set_item_property(':sub.subcode',navigable,property_true);
              go_item(':sub.subcode');
              end if;
    it shows FRM-10405 UNABLE TO RESOLVE REFERENCE TO ITEM :SUB.SUBCODE.
    can anybody help me whats the problem

    Gul wrote:
    im using forms 6i.
    i have a tabular block named "SUB". in which i have a text field named "LTYPE".
    on LTYPE field i have a post change trigger in which i have a tiny code
         if :sub.ltype='B' then
              set_item_property(':sub.subcode',navigable,property_true);
              go_item(':sub.subcode');
              end if;
    it shows FRM-10405 UNABLE TO RESOLVE REFERENCE TO ITEM :SUB.SUBCODE.
    Little mistake.
    replace go_item(':sub.subcode');
    to
    go_item('sub.subcode');Hope this works

  • See error Frm-40105 : unable to resolve reference to item 20.

    hi master
    sir when i put this code on when_button_press then give this error
    go_block('emp');
    enter_query;
    :emp.deptno := 10;
    execute_query;
    error
    Frm-40105 : unable to resolve reference to item 20.
    sir please give me idea
    Thanking you

    Frm-40105
    Cause:  Runtime error. A GO_ITEM statement references a nonexistent item.
    Which suggests that there might be some code in your form which causes this error (in)directly.

  • Suppressing unable to resolve reference to parameter... message

    We have converted our applications to Oracle 9I (Internet) from Oracle 5 (Client Server).
    We force a closing of an extra browser window by creating a .pll with a customized function called close_browser which runs close.htm and then does an exit_form to replace exit_form. We have forms call other forms, if the form is called, then it checks a forms parameter called parameter.pr_called. We want to just modify the library and not modify 100s of forms but :parameter.pr_called does not exist in a number of forms but we need to check parameter.pr_called with a NAME_IN in the library just in case it is called so we don't close the browser window if the form is a called form. It would then simply exit form and go back to the original form. When we check for name_in('parameter.pr_called) = 'Y' to check for this condition, we get unable to resolve reference to parameter pr_called.
    We have tried changing message levels, but that only works for error messages and not messages. There seems to be no programming way to do a find_parameter for a form parameter. Any suggestions on how to prevent the message from appearing. We would not want to modify all the forms.
    Thank you,
    - Brian

    If you want to add this parameter to all your forms in batch - this is simple to do with the Java API - here's some sample code.
    package oracle.forms.jdapi.demos;
    import oracle.forms.jdapi.*;
    public class AddParam
      public AddParam(String formName, String parameterName, String parameterValue)
        try
          // Open the module - this implicitly starts JDAPI
          FormModule form = FormModule.open(formName);
          System.out.println("Processing " + form.getName());
          // see if the parameter already exists
          ModuleParameter param = null;
          try
            param = ModuleParameter.find(form, parameterName);
          catch (JdapiException cjdex)
            System.out.println("Parameter not present needs creating...");
          if (param == null)
            // create the required Param
            param = new ModuleParameter(form,parameterName);
            param.setParameterDataType(JdapiTypes.PADA_CHARACTER_CTID);
            param.setMaximumLength(3); //assuming Y/N, YES/NO??
            param.setParameterInitializeValue(parameterValue);
            System.out.println("Parameter created...");
            //we've made a change so save...
            form.save(formName);
            System.out.println("Form Saved...");
          else
            System.out.println("Parameter already exists...");
          form.destroy();
          Jdapi.shutdown();
        catch (JdapiException jdex)
          System.out.println(jdex.toString());
       * @param Pass the name of the Form as an agument to the class
      public static void main(String[] args)
        String paramName = "PR_CALLED";
        String paramDefaultValue = "N";
        AddParam addParam = new AddParam(args[0], paramName, paramDefaultValue);
        System.exit(0);
    }

  • Unable to resolve reference/Cannot find Canvas

    Hi,
    I have generated a form with Designer 6i. It has 3 tabs. On the second or third tab, when I diminish the width property of a BOUND TEXT ITEM , I get 2 error messages one after the other :
    - FRM-40105. Unable to resolve reference to item <item name>. ...
    - FRM-41053. Cannot find Canvas--invalid ID.
    If the width is equal or bigger than its original value, it works fine. As soon as I change the value to a smaller one, it doesn't work anymore.
    Any help would be appreciated,
    Denise

    Hi,
    When you reference an item using:
    set_item_property(<varchar2 field>, ...)
    you should format the item name as:
    'BLOCKNAME.ITEMNAME';
    For example, set_item_property('NCP.B', enabled, property_true);
    The colon is only used when you actually want the value of the item.
    I can't remember, but this might be case sensitive too - so use uppercase.
    Cheers
    Chris

  • FRM - 40105 : Unable to resolve reference to item item name

    Hi,
    FRM - 40105 : Unable to resolve reference to item <item name>
    When I am opening a form I am getting the above mentioned error. Instead of <Item name> how we can display the error like <:CTRL_BLK.DOC_DATE>
    Thanks & Regards,
    Jenson

    Hi,
    Actually I know what is the reason for getting this error. What I tried to ask you is any way to display the item name, which error is occurred.
    In the form around more than hundred item setting the SET_ITEM_PROPERTY , there only I am getting this error. Like this around more than five form I have to debug. I would like to know through error handling routine or some other code we can display the exact item name, which error is occurred.
    Thanks & Regards,
    Jenson V.A.

  • URL Portal error: Unable to resolve comp/env/ejb/URIManager/

    I am attempting to creat a URL portal using the Web Service Portlet Wizard.
    The Wizard seems to build the jsp fine, but I get the following error in the
    portlet when I try to bring it up:
    Error retrieving page at http://www.bloomberg.com/index.html Exception:
    Unable to resolve comp/env/ejb/URIManager/ Resolved: 'comp/env/ejb'
    Unresolved:'URIManager'
    I can't even find this path in my installation, nor any reference to
    URIManager. Am I missing a class somewhere? (Note: I have all this
    installed on my laptop for testing, and am not currently working off our
    main development server.)
    Thanks for your help.
    - JKL

    JKL,
    I have not used the Portlet Wizard, so I can't answer your question specifically.
    But I can help direct you on where to look.
    There should be an EJB deployment descriptor ejb-jar.xml in the ejb jar file that
    contains the following entry:
    <ejb-reference-description>
    <ejb-ref-name>ejb/URIManager</ejb-ref-name>
    <jndi-name>some class name</jndi-name>
    </ejb-reference-description>
    That is what to look for.
    PJL
    "JKL" <[email protected]> wrote:
    I am attempting to creat a URL portal using the Web Service Portlet Wizard.
    The Wizard seems to build the jsp fine, but I get the following error
    in the
    portlet when I try to bring it up:
    Error retrieving page at http://www.bloomberg.com/index.html Exception:
    Unable to resolve comp/env/ejb/URIManager/ Resolved: 'comp/env/ejb'
    Unresolved:'URIManager'
    I can't even find this path in my installation, nor any reference to
    URIManager. Am I missing a class somewhere? (Note: I have all this
    installed on my laptop for testing, and am not currently working off
    our
    main development server.)
    Thanks for your help.
    - JKL

  • FRM-40105:Unable to resolv refrnce to item INV_SUM_FOLDER.match_status_flag

    After entering into Payables Vision Operations(USA)--> Invoices-->entry-->invoces. Enter the header details, while click on lines, the error is "FRM-40105: Unable to resolve reference to item INV_SUM_FOLDER.match_status_flag" populated.
    While click on ok on error form, another error is "frm-41072 cannot create group appcore_condition" populated.
    Please fix the issue.

    If this is a standard eBusiness Suite form (not a custom form in EBS) report it to Oracle Support. Other questions about EBS should be posted in the EBS forum.

  • 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

    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

  • 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

  • Unable to resolve JNDI DataSource in weblogic 12c When you upgrade web application

    I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
    public static DataSource getJndiDataSource(String name) {
      JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
      Properties jndiEnvironment = new Properties();
      jndiEnvironment.put("java.naming.factory.initial",
      "weblogic.jndi.WLInitialContextFactory");
      dsLookup.setJndiEnvironment(jndiEnvironment);
      try {
      dsLookup.setResourceRef(false);
      return dsLookup.getDataSource(name);
      } catch (Exception e) {
      dsLookup.setResourceRef(true);
      return dsLookup.getDataSource(name);
    And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
    javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
    Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'

    I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
    public static DataSource getJndiDataSource(String name) {
      JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
      Properties jndiEnvironment = new Properties();
      jndiEnvironment.put("java.naming.factory.initial",
      "weblogic.jndi.WLInitialContextFactory");
      dsLookup.setJndiEnvironment(jndiEnvironment);
      try {
      dsLookup.setResourceRef(false);
      return dsLookup.getDataSource(name);
      } catch (Exception e) {
      dsLookup.setResourceRef(true);
      return dsLookup.getDataSource(name);
    And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
    javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
    Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'

  • Unable to resolve Apache-Tomcat after 5.0.2 Upgrade / Content Server Install

    I recently upgraded from 5.0.1 to 5.0.2. With 5.0.1, I was able to resolve to http://<apache-tomcat.domain.com>:8080 as well as http://<apache-tomcat.domain.com>:8080/ptcsand http://<apache-tomcat.domain.com>:8080/ptcs/diagnosticsTest.jsp. However, after upgrading to 5.0.2, I am unable to resolve to any of these URLs. The 'Content Server' admin. folder shows up within the admin. ui and all necessary objects are there. Other than the upgrade, no other changes were made to the server. Any suggestions? Thanks.

    Did you upgrade to Tomcat 4.1.27LE version ?

Maybe you are looking for

  • Watermarking with Photoshop Elements 10

    I am trying to watermark some of my photos, I have learned to do them individually. I have also learned to do them with the "process multiple files" , however I have tried over half of the fonts, and even at 72 they are too small. Some of them you ca

  • How do I re-open the window with downloads?

    How do I access the dialog box containing my previous downloads?

  • Send message in LAN

    What package to use to send messages in LAN? When a message is sent a graphical dialog box appears at receiver's side.

  • Itunes is stuck on mini player off screen somewhere!

    Uninstall didnt work, ctrl-shift-F doesnt work. when i slide my cursor over the menu bar pop up it vanishes! Ive tried the display settings. please help. my phone needs itunes and so do i lol

  • Stickies dashboard

    I accidentaly deleted a very important sticky on my dashboard. Using time machine, I can't find an older version of the "StickiesDatabase" file in My user's library, as told in many other topics. Where can I find it ? Thanks for help, Kirsten