InvocationTargetException on Tutorial 17. Step 10 - Issue3

I'm having an InvocationTargetException when the loginaction.do code is trying
to
// Retrieve patient properties.
Patient patient =
getPatientSession().findPatientByEmail(user.getUsername());
Patient is null and getting InvocationTargetException exception.
Any ideas?
Julio

Thanks Julio. It looks like this user, [email protected], doesn't have
permission to invoke this EJB.
Caused by: java.rmi.AccessException: [EJB:010160]Security Violation: User:'[email protected]'
has insufficient permission to access EJB: type=<ejb>,application=medrecEar,
module=sessionEjbs, ejb=AdminSessionEJB, method=create,methodInterface=Home,
signature={}.Can you check the policy on the MedRecEAR or if there are finer restrictions
(like on AdminSessionEJB itself), check that [email protected] has
permission. It might be that there is a policy on either of these resources
and that this user does not belong either to the group or role on which the
policy is constrained. Since PatientSessionEJB and AdminSessionEJB exist in
the same EAR, a policy might exist on AdminSessionEJB.
Let me know what you find. Thanks.
"Julio" <[email protected]> wrote in message
news:[email protected]...
>
Chris,
I went more deep into the code and found the exception generated whenPatientSessionEJB
trying to set context.
// Session bean homes.
adminSession = JNDILookupUtils.getAdminSession();
After that went to EJBHomeFactory and the problem arises in method publicObject
getObj(String pJndiLookupName, Class homeClass)
throws EJBException, NamingException.
Looks like the exception java.lang.reflect.InvocationTargetException isgenerated
when the code is trying to create a AdminSession instance. ...
Object obj = m.invoke (objLocalHome, new Object[0]);
where objLocalHome is the AdminSessionHome interface.
Another log..
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.medrec.utils.EJBHomeFactory.getObj(EJBHomeFactory.java:184)
at com.bea.medrec.utils.ServiceLocator.getObj(ServiceLocator.java:160)
atcom.bea.medrec.controller.JNDILookupUtils.getAdminSession(JNDILookupUtils.ja
va:182)
atcom.bea.medrec.controller.PatientSessionEJB.setSessionContext(PatientSession
EJB.java:100)
atcom.bea.medrec.controller.PatientSessionEJB_sgsjnk_Impl.setSessionContext(Pa
tientSessionEJB_sgsjnk_Impl.java:111)
atweblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:268
atweblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.jav
a:168)
atweblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:1
10)
atweblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:130)
atweblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
:70)
atcom.bea.medrec.controller.PatientSessionEJB_sgsjnk_EOImpl.findPatientByEmail
(PatientSessionEJB_sgsjnk_EOImpl.java:241)
at com.bea.medrec.actions.LoginAction.authenticate(LoginAction.java:152)
at com.bea.medrec.actions.LoginAction.executeAction(LoginAction.java:83)
at com.bea.medrec.actions.BaseAction.execute(BaseAction.java:70)
atorg.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:480)
atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atcom.bea.medrec.filters.RequestEncodingFilter.doFilter(RequestEncodingFilter.
java:44)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6356)
atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3635)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: java.rmi.AccessException: [EJB:010160]Security Violation: User:'[email protected]'
has insufficient permission to access EJB: type=<ejb>,application=medrecEar,
module=sessionEjbs, ejb=AdminSessionEJB, method=create,methodInterface=Home,
signature={}.
atweblogic.ejb20.internal.MethodDescriptor.checkMethodPermissionsRemote(Method
Descriptor.java:465)
atweblogic.ejb20.internal.StatelessEJBHome.create(StatelessEJBHome.java:151)
atcom.bea.medrec.controller.AdminSessionEJB_e1en28_HomeImpl.create(AdminSessio
nEJB_e1en28_HomeImpl.java:86)
... 38 more
Thanks,
Julio
"Julio" <[email protected]> wrote:
Chris,
Here a more detail stack trace....
java.rmi.RemoteException: EJB Exception: ; nested exception is:
javax.ejb.EJBException: nested exception is:
java.lang.reflect.InvocationTargetException
atweblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils
.java:103)
atweblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:3
04)
atweblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:140)
atweblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java
:70)
atcom.bea.medrec.controller.PatientSessionEJB_sgsjnk_EOImpl.findPatientByEmail
(PatientSessionEJB_sgsjnk_EOImpl.java:83)
at com.bea.medrec.actions.LoginAction.authenticate(LoginAction.java:152)
at com.bea.medrec.actions.LoginAction.executeAction(LoginAction.java:83)
at com.bea.medrec.actions.BaseAction.execute(BaseAction.java:70)
atorg.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:480)
atorg.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
atorg.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:971)
atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:402)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atcom.bea.medrec.filters.RequestEncodingFilter.doFilter(RequestEncodingFilter.
java:44)
atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:6356)
atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:317)
atweblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3635)
atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: javax.ejb.EJBException: nested exception is:java.lang.reflect.InvocationTargetException
at com.bea.medrec.utils.EJBHomeFactory.getObj(EJBHomeFactory.java:182)
at com.bea.medrec.utils.ServiceLocator.getObj(ServiceLocator.java:160)
atcom.bea.medrec.controller.JNDILookupUtils.getAdminSession(JNDILookupUtils.ja
va:182)
atcom.bea.medrec.controller.PatientSessionEJB.setSessionContext(PatientSession
EJB.java:100)
atcom.bea.medrec.controller.PatientSessionEJB_sgsjnk_Impl.setSessionContext(Pa
tientSessionEJB_sgsjnk_Impl.java:111)
atweblogic.ejb20.manager.StatelessManager.createBean(StatelessManager.java:268
atweblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.jav
a:168)
atweblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:1
10)
atweblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
atweblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:130)
... 24 more
Thanks,
Julio
"Julio" <[email protected]> wrote:
Chris,
Here a word attachment with the server's log. User is [email protected].
And yes,
there is data in Patient table. Larry is there.
Any ideas,
Thanks,
Julio
"Chris Wall" <[email protected]> wrote:
Hey Julio.
Can you please pass along the full stacktrace? Which username as you
logging in as? Also, through the PointBase console (to start,
WL_HOME/common/eval/Pointbase/bin/StartPointBaseConsole.cmd/sh), check
to
see if data exists for the patient.
Thanks.
"Julio" <[email protected]> wrote in message
news:[email protected]...
I'm having an InvocationTargetException when the loginaction.do codeis
trying
to
// Retrieve patient properties.
Patient patient =
getPatientSession().findPatientByEmail(user.getUsername());
Patient is null and getting InvocationTargetException exception.
Any ideas?
Julio

Similar Messages

  • Problem in OAF Search Tutorial, In Step 2.6 Create an EO

    I have applied a patch 7523554 for JDeveloper. I am using Jdeveloper 10.1.3.3.0 for R12 OAF development. Trying to learn OAF through given Tutorials in the patch. I have completed Hello Word Tutorial Successfully. However facing problem in Search Tutorial, In Step 2.6 Create an Employee Entity Object (EO). I am not able to view any single database schema object in Entity Object Wizard. Database Scema Check boxes are grayed out. I can connect to the data base successfull though Jdeveloper.
    Edited by: user11936331 on Sep 24, 2009 12:10 AM

    SOLUTION: I have been having this problem in version 10.1.3.3.0 for e-biz 12.0.6 and also 12.1
    If you have been following the tutorial, note that stages 2.1 - 2.2 are no longer required (in V10). However, if you go to stage 2.3 you have not manually created the BC4J packages and have thus not connected to the database. (Manually connecting in the connections section does not help here!)
    Thus when trying to create the EO (stage 2.6) the database schema checkboxes are greyed out. To overcome this:
    1. before trying to create the EO, open NEW/Business tier/ADF Business Components/Business Components from Tables.
    2. Click OK and it will ask you to connect.
    3. Do this now and then cancel out of the wizard
    You are now connected, so that whengoing back and trying to create an EO, the checkboxes are now visible and the table can be chosen and all it's attributes visible in the next stage.

  • HT1451 Cannot recover iTunes library based on teh tutorial, next steps?

    I'm working OS X 10.7.4 on my Mac but get a "Open" option on step 8, followed by message, "The file iTunes.library.itl cannot be imported because it does not appear to be a valid exported file."  Now what?  Thanks, BJ

    a) this is just a nudge if you're getting over Christmas or
    b) Have I defeated the best Apple brains?

  • Javaee5 Tutorial first step error(can not run ant)

    Hi all,
    I have just installed Sun Java System Application Server enterprise Edition in my computer.
    My system is getoo .
    I copy the javaee5Tutorial to the directory of Sun Java System Application Server enterprise Edition
    Here is the error:
    in the bookstore1 directory: run ant
    Buildfile: build.xml
    BUILD FAILED
    /opt/SUNWappserver/javaeetutorial5/examples/web/bookstore1/build.xml:23: The following error occurred while executing this line:
    /opt/SUNWappserver/javaeetutorial5/examples/bp-project/main.xml:20: Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute.
    Total time: 1 second
    regards!
    aries211

    Hi all ....
    it's me again.....I just try a couple of minutes ago to run ANT for the bookstore1 of the Example Servlets of the Java EE 5 Tutorial and still getting this frustated error:
    C:\javaeetutorial5\examples\web\bookstore1>ant
    Buildfile: build.xml
    -pre-init:
    init:
    default-ear:
    build-common:
    -pre-init:
    init:
    default-ear:
    -pre-compile:
    bpp-actual-compilation:
    [echo] Compiling bookstore
    [javac] Compiling 11 source files to C:\javaeetutorial5\examples\web\booksto
    re\build\classes
    [javac] javac: invalid target release: 1.5
    [javac] Usage: javac <options> <source files>
    [javac] where possible options include:
    [javac] -g Generate all debugging info
    [javac] -g:none Generate no debugging info
    [javac] -g:{lines,vars,source} Generate only some debugging info
    [javac] -nowarn Generate no warnings
    [javac] -verbose Output messages about what the compiler
    is doing
    [javac] -deprecation Output source locations where deprecated
    APIs are used
    [javac] -classpath <path> Specify where to find user class files
    [javac] -sourcepath <path> Specify where to find input source files
    [javac] -bootclasspath <path> Override location of bootstrap class fil
    es
    [javac] -extdirs <dirs> Override location of installed extension
    s
    [javac] -d <directory> Specify where to place generated class f
    iles
    [javac] -encoding <encoding> Specify character encoding used by sourc
    e files
    [javac] -source <release> Provide source compatibility with specif
    ied release
    [javac] -target <release> Generate class files for specific VM ver
    sion
    [javac] -help Print a synopsis of standard options
    [subant] Failure for target 'default' of: C:\javaeetutorial5\examples\web\boo
    kstore\build.xml
    [subant] The following error occurred while executing this line:
    [subant] C:\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:89
    : Compile failed; see the compiler error output for details.
    copy-common-jars:
    [mkdir] Created dir: C:\javaeetutorial5\examples\web\bookstore1\build\web\WE
    B-INF\lib
    BUILD FAILED
    C:\javaeetutorial5\examples\web\bookstore1\build.xml:36: Warning: Could not find
    file C:\javaeetutorial5\examples\web\bookstore\dist\bookstore.jar to copy.
    Total time: 1 second
    C:\javaeetutorial5\examples\web\bookstore1>
    Here it is the build.properties file
    # uncomment the property javaee.home, and add the path
    # to your GlassFish Java EE 5 SDK installation
    javaee.home=c:/Sun/AppServer
    javaee.tutorial.home=c:/javaeetutorial5
    # machine name (or the IP address) where the applications will be deployed.
    javaee.server.name=localhost
    # port number where the app-server is accessed by the users
    javaee.server.port=8080
    # port number where the admin server of the app-server is available
    javaee.adminserver.port=4848
    # Uncomment the property j2ee.server.username,
    # and replace the administrator username of the app-server
    javaee.server.username=admin
    # Uncomment the property j2ee.server.passwordfile,
    # and replace the following line to point to a file that
    # contains the admin password for your app-server.
    # The file should contain the password in the following line:
    # AS_ADMIN_PASSWORD=adminadmin
    # Notice that the password is adminadmin since this is
    # the default password used by the glassfish app-server installation.
    javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt
    appserver.instance=server
    # Uncomment and set this property to the location of the browser you
    # choose to launch when an application is deployed.
    # On Windows and Mac OS X the default browser is used.
    #default.browser=/Applications/Firefox.app/Contents/MacOS/firefox-bin
    # Database vendor property for db tasks
    db.vendor=javadb
    This is in my SYSTEM VARIABLE:
    CLASSPATH= c:\sun\appserver\lib;C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\com.ibm.mq.jar;c:\j2sdk1.4.2_07;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip\
    javaee.home = C:\\Sun\\AppServer
    JAVA_HOME = c:\j2sdk1.4.2_07
    Thank you in advanced....

  • I want weblog or tutorial for component usage in abap web dynpro

    Hi team,
    I want to know how component usage works in abap web dynpro.so can you please help me with providing a tutorial and step by step to use component in it.
    Thanks,
    Mainak

    Hi Mainak.
    In https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11">tutorial [original link is broken] [original link is broken]
    Hope this helps.
    Cheers,
    Sascha

  • BSP Applications step by step

    hi,
        could any one send me the step by step procedure to create web enabled report through BSP Applications. or pls send any related links.
                   thnx in advance,
                   santosh.

    Hi
    To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
    If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
    The following tutorials are available:
    ·         First Tutorial: First Steps with Business Server Pages…
    ·         Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
    ·         Third tutorial: Our First Online Bookshop
    ·         Fourth tutorial: Further Developing the Bookshop
    ·         A small Tutorial is also available for your first steps with the Model View Controller design pattern.
    ·         For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
    When creating BSP applications, note the browser dependencies described in Note 598860.
    steps:
    1) start the transaction RZ10.
    2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
    3) u will also find three options in the same window.
    Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
    4) Now click on change button.
    5) here u will find parameter icm/host_name_full, so now set it as FQDN.
    6) Now copy ur settings with new version number.
    7) Activate that version.
    8) And now please restart ur WAS.
    So this will set ur FQDN, and also don't forget to login using Admin User.
    Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    if not then activate all.
    check this link
    Read this weblog...
    /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
    it consists of screen shots also
    Reward all helpfull answers
    Regards
    Pavan
    Message was edited by:
            Pavan praveen

  • Tutorial for new Data Upload feature in 4.1?

    Greetings,
    Is there a tutorial available for using the new Data Upload feature in 4.1? We have not upgraded to 4.1 yet and I would like to try out the new feature on my APEX test workspace, so I can use the new feature once we are upgraded to 4.1.
    Thanks,
    John

    I installed the Product Portal Sample Database and went to page 21. Very nice looking. Is there any tutorial for this Sample application? In other words, is there a tutorial that uses this application as its basis?
    What I am really looking for (my apologies if I have not been clear) is a tutorial that steps you through the process of setting up the new feature of Data Upload in APEX 4.1. I would like to create a new application on my test workspace and learn how to set up the Data Upload page.
    Seeing the Data Load in action is very helpful though. Thanks for pointing me to this.
    Thanks,
    John

  • JDev EJB Tutorial problem

    JDev v.9.0.3.2(build 1145)
    Using the built-in help facility instructions on the EJB Tutorial, I am stuck on Part 5; Step 1.
    (Copied directly from tutorial)
    *****begin tutorial instructions*******
    Step 1: Adding a Create Method to the Entity Bean
    The first step is to add a new create() method on the Dept entity bean.
    To add a new create() method: In the Navigator, double-click Dept to open the EJB Module Editor.
    Expand the node for Dept and click the Methods node.
    In the Method Category list, choose Create methods.
    Click Add.
    In the Method Details dialog box, in the Parameters field, type the following:Long deptno, String dname, Long manager, Long location Click OK to close the dialog.
    Your new create() method appears in the list of methods. Click OK to close the EJB Module Editor.
    To add code to the Dept entity bean: In the Navigator, expand the node for the Dept bean and double-click DeptBean.java.
    In the Structure pane, double-click ejbCreate(long, String, long, long) to jump to that method in the code.
    Replace the stub method with the following code:
    public DeptPK ejbCreate(Long deptno, String dname, Long manager, Long location)
    this.setDepartment_id(deptno);
    this.setDepartment_name(dname);
    this.setManager_id(manager);
    this.setLocation_id(location);
    return new DeptPK(deptno);
    In the Navigator, right click DeptBean.java and choose Make DeptBean.java to make sure it compiles without errors.
    *****end of tutorial instrucions*********
    I cannot get the 'hrApp' EJB to compile.
    The compiler complaint:
    Error(18,10): class DeptPK not found in class hr.impl.DeptBean
    Error(24,16): class DeptPK not found in class hr.impl.DeptBean
    Any recommendations are appreciated.
    Thanks,
    Robert Stuart

    Mistake: misnamed the bean in problem statement.
    I meant to say the 'DeptBean' (not hrApp EJB) did not compile, using sample code from instructions.
    Surely someone can help.
    Robert

  • A better Tutorial

    I have gone through most of the Java Web Services Tutorial, however, there is no comprehensive example. Does anyone know if there is a tutorial which steps through building, publishing, and subscribing to a web service. I am looking to set up an entire test system.
    Any suggestions?

    For EA1, what we have is available out @
    http://java.sun.com/webservices/downloads/webservicespack.html
    I will pass your feed back out to our docs group.
    Amlan

  • Simple tutorial for using alv-grid for data entry into table, please!

    Hi friends,
    I urgently need a basic, simple tutorial or step-by-step or sample code on the following:
    I want to have a alv-grid like entry list where i can add/remove additional lines/entries that then are saved into an internal table. Please help me with that, as i studied already some documents but do not really get the idea of how to do - <REMOVED BY MODERATOR>
    Thanks in advance,
    Edited by: Alvaro Tejada Galindo on Jan 11, 2008 6:18 PM

    hi clemens,
    follow this link it may be useful to u
    http://www.sap-basis-abap.com/sapab033.htm
    http://www.abapprogramming.blogspot.com/2007/04/alv-details.html
    for tutorial on alv:
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/ALV_tutorial.html
    i have pdf material also ican give it to you if u give your email id.
    hope this helps you
    regards,
    sravanthi

  • Fix on MedRec Tutorial 10 will break tutorial 11

    According to Chris Wall, tutorial 10 of MedRec needs the following fix:
    1.) Add the following jars to your classpath. If these jars do not exist,
    compile and create them thru the src/common build script.
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\log4j-1.2.8.jar;
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\value.jar;
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\webServicesEjb_client.jar;
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\utils.jar
    2.) EJBGen 2.15 contains the -descriptorDir feature; 8.1 GA contains EJBGen
    2.13beta. Please remove this flag from your cmdline. You will also need to
    manually create the META-INF directory and copy the resultant descriptors to
    this directory.
    ==============================================
    Ok, I did that, and it worked. But when I did tutorial 11 Step 2, it gave me
    this err msg:
    C:\medrec_tutorial\src\medrecEar>ant -f my_webserv.xml
    Buildfile: my_webserv.xml
    build.ws:
    [autotype] Autotyping for javaComponents com.bea.medrec.webservices.MedRecWebServices
    [autotype] java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()
    [autotype] at java.lang.Class.getConstructor0(Class.java:1769)
    [autotype] at java.lang.Class.getConstructor(Class.java:1002)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1049)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
    [autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    [autotype] --------------- nested within: ------------------
    [autotype] weblogic.xml.schema.binding.BindingException: No default constructor
    was found for class weblogic.webservice.context.WebServiceContext loa
    ded from file:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
    All classes that will be serialized
    or deserialized must be non-interface, non-abstract classes that provide a public
    default constructor - with nested exception:
    [autotype] [java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1051)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
    [autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/medrec_tutorial/src/medrecEar/my_webserv.xml:12: weblogic.webservice.tools.build.WSBuildException:
    Failed to do type mapping - with nested exc
    eption:
    [weblogic.xml.schema.binding.BindingException: No default constructor was found
    for class weblogic.webservice.context.WebServiceContext loaded from fi
    le:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
    All classes that will be serialized or deseria
    lized must be non-interface, non-abstract classes that provide a public default
    constructor - with nested exception:
    [java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]]
    Total time: 4 seconds
    ====================================
    The classpath used in Tutorial 11 was the updated one from Tutorial 10. But it
    doesn't work. But when I changed the classpath back to the old one, it worked.
    Can you explain what is happening? Thank you.
    Kelvin Hung

    Hey Kelvin. Can you pass along your classpath? Thanks.
    "Kelvin Hung" <[email protected]> wrote:
    >
    According to Chris Wall, tutorial 10 of MedRec needs the following fix:
    1.) Add the following jars to your classpath. If these jars do not exist,
    compile and create them thru the src/common build script.
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\log4j-1.2.8.jar;
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\value.jar;
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\webServicesEjb_client.jar;
    C:\medrec_tutorial\build\physicianEar\APP-INF\lib\utils.jar
    2.) EJBGen 2.15 contains the -descriptorDir feature; 8.1 GA contains
    EJBGen
    2.13beta. Please remove this flag from your cmdline. You will also
    need to
    manually create the META-INF directory and copy the resultant descriptors
    to
    this directory.
    ==============================================
    Ok, I did that, and it worked. But when I did tutorial 11 Step 2, it
    gave me
    this err msg:
    C:\medrec_tutorial\src\medrecEar>ant -f my_webserv.xml
    Buildfile: my_webserv.xml
    build.ws:
    [autotype] Autotyping for javaComponents com.bea.medrec.webservices.MedRecWebServices
    [autotype] java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()
    [autotype] at java.lang.Class.getConstructor0(Class.java:1769)
    [autotype] at java.lang.Class.getConstructor(Class.java:1002)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1049)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
    [autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    [autotype] --------------- nested within: ------------------
    [autotype] weblogic.xml.schema.binding.BindingException: No default
    constructor
    was found for class weblogic.webservice.context.WebServiceContext loa
    ded from file:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
    All classes that will be serialized
    or deserialized must be non-interface, non-abstract classes that provide
    a public
    default constructor - with nested exception:
    [autotype] [java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.ensureValidClass(JavaInspector.java:1051)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.fillDescriptor(JavaInspector.java:174)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.getDescriptor(JavaInspector.java:139)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.JavaInspector.createDescriptorForClass(JavaInspector.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:106)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
    [autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
    [autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
    [autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
    [autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
    [autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
    [autotype] at org.apache.tools.ant.Task.perform(Task.java:317)
    [autotype] at org.apache.tools.ant.Target.execute(Target.java:309)
    [autotype] at org.apache.tools.ant.Target.performTasks(Target.java:334)
    [autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
    [autotype] at org.apache.tools.ant.Main.runBuild(Main.java:610)
    [autotype] at org.apache.tools.ant.Main.start(Main.java:196)
    [autotype] at org.apache.tools.ant.Main.main(Main.java:235)
    BUILD FAILED
    file:C:/medrec_tutorial/src/medrecEar/my_webserv.xml:12: weblogic.webservice.tools.build.WSBuildException:
    Failed to do type mapping - with nested exc
    eption:
    [weblogic.xml.schema.binding.BindingException: No default constructor
    was found
    for class weblogic.webservice.context.WebServiceContext loaded from fi
    le:/C:/bea/weblogic81/server/lib/webservices.jar!/weblogic/webservice/context/WebServiceContext.class.
    All classes that will be serialized or deseria
    lized must be non-interface, non-abstract classes that provide a public
    default
    constructor - with nested exception:
    [java.lang.NoSuchMethodException: weblogic.webservice.context.WebServiceContext.<init>()]]
    Total time: 4 seconds
    ====================================
    The classpath used in Tutorial 11 was the updated one from Tutorial 10.
    But it
    doesn't work. But when I changed the classpath back to the old one,
    it worked.
    Can you explain what is happening? Thank you.
    Kelvin Hung

  • IChat tutorial or instruction set up?

    Hello guys! Is there any good tutorial or step by step iChat set up? Thank you! Igor.

    Hi,
    In words it can be fairly simple.
    1) Register Screen Name or ID depending on Service to be used.
    2) Launch iChat and enter Screen Name or ID on the page for Service to be used
    OR open iChat and go to Preferences > Accounts and click the Add ( + ) Button and fill in details there.
    3) add Buddy.
    However there are places you can trip up and have Problems.
    If you register for an @mac.com name  for instance the password has to be 16 characters or Less.
    This is a valid AIM Screen Name.
    As it is also a Apple ID you will need to link it to another Email address.
    This has to be one that is NOT already linked to an Apple ID
    If you are using a Gmail ID then you have to Enable Talk on your Google Account.
    An in iChat the Name you enter MUST be exactly as it appears on the Google Mail Web page
    (the Mail app seems to allow you to enter [email protected] or [email protected] but it makes a difference in iChat).
    NOTE.
    If you have an AIM Valid Name (MobileMe, @Mac.com or AIM ) then you buddy has to as well.  (Any of these would be an "AIM" List)
    If you have a GoogleTalk ID or a Jabber one then so does you Buddy.
    iChat will not be able to Text chat (Or other chats) to Google/Jabber Buddies entered in a AIM List or vice versa (Adding AIM Buddies to a  Jabber/Google List)
    (Video and Audio Only chats are iChat to iChat only for Jabber and Google Buddy Lists)
    11:17 PM      Thursday; August 18, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Help me on BSP step by step please

    help me on BSP step by step please
    thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi
    To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
    If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
    The following tutorials are available:
    · First Tutorial: First Steps with Business Server Pages…
    · Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
    · Third tutorial: Our First Online Bookshop
    · Fourth tutorial: Further Developing the Bookshop
    · A small Tutorial is also available for your first steps with the Model View Controller design pattern.
    · For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
    When creating BSP applications, note the browser dependencies described in Note 598860.
    steps:
    1) start the transaction RZ10.
    2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
    3) u will also find three options in the same window.
    Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
    4) Now click on change button.
    5) here u will find parameter icm/host_name_full, so now set it as FQDN.
    6) Now copy ur settings with new version number.
    7) Activate that version.
    8) And now please restart ur WAS.
    So this will set ur FQDN, and also don't forget to login using Admin User.
    Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    if not then activate all.
    check this link
    Read this weblog...
    /people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
    http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
    it consists of screen shots also
    Check it.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
    Reward points if useful
    Regards
    Ashu

  • Building a WebCenter Application Step by Step Issue

    I am experincing a problem with the code on page 60 of the Building a WebCenter Application Step by Step tutorial. Step 9 ask to insert content repository code in the SRWelcome.jspx JSF page (see below). When I run the page the ${pageContext.request.contextPath}${bindings['getURI_returnURI'].inputValue}" dose not work as expected. It should show the wecome.html page. However when the page is displayed the SRWelcome.jspx page which contains the refference code appear to loop back on it self thus repeatedly displaying inside the SRWelcome.jspx in the iframe.
    Has anyone experinced this problem?
    <f:verbatim>
    <iframe height="450" width="850"
    src="${pageContext.request.contextPath}${bindings['getURI_returnURI'].inputValue}"
    frameborder="0">
    </iframe>
    </f:verbatim>
    This is my JDev environment:
    ADF Business Components     10.1.3.41.57
    Java(TM) Platform     1.5.0_06
    Oracle IDE     10.1.3.41.57
    Embbed OC4J Sever Log Info:
    Jun 20, 2008 9:54:19 AM oracle.vcr.datacontrol.VcrDataControl invokeOperation
    INFO: Invoking data control operation getURI on instance SRContentRepository
    Jun 20, 2008 9:54:20 AM oracle.vcr.datacontrol.VcrDCDef getConnection
    INFO: Retrieving repository connection from ADF
    Jun 20, 2008 9:54:20 AM oracle.vcr.datacontrol.VcrDCDef getVcrSession
    INFO: Log on to the repository.

    I had the same problem. The SRWelcome.jspx page was recursively displayed inside the iframe. The cause is that the getURI method is not working correctly (refer to metalink note 470353.1). I could resolve this by applying patch 6447083 and recreating of the content repository afterwards.

  • Tutorial for servlet developent

    Hello,
    I'm trying to develop a servlet. Is there any tutorial or step by step guide?
    How has the servlet to be deployed?
    Best regards,
    Christian
    Edited by: Christian Kaiser on Jul 15, 2010 2:45 PM

    Hello,
    you can easly develop a servlet NWDS.
    File -> New Project -> Web -> Dynamic Web Project
    Then go to the root an choose new servlet in the context menu.
    Regards
    Christian

Maybe you are looking for

  • T code MB5B , the storage location will be reset

    dear All, I want to see stock on posting date of particular storage location with values. When i try T code MB5B and select valuated stock, (it says storage location will be reset). and i used another T code MC.9 and MC49 , but these T codes didn't m

  • Setting Delay in File Adapter

    Hi All, I have a file to ABAP proxy asynchronous scenario. In the source directory i have 2 xml files. The second XML file should be picked up by the file adapter only after processing the First file by the ABAP proxy. I know about setting delay in M

  • No permissions on share - Keynote?

    Hello, I have an installation of the newest Keynote on an iMac with Mavericks.  When saving a Keynote file to a Windows server share, it will allow it to save, but when opening from that share and attempting to work with the file, it will not let me

  • Why do i get "Null" in mysql database?

    Hi Im trying to update a flash movie quiz that records names and question answers which i didnt write. The quiz works except it replaces the name with null. All the other records work fine. I have deleted out the res2 - res12 just to shorten it up, t

  • Where can i watch the live event today (oct. 4th)

    Where can i watch the live event today (oct. 4th)? I knwo it's going on now. All the links i have tried will not open, even in different browsers. Maybe i am trying the wrong ones. Any ideas? -Thanks