Create folder path if it does not exist

I've asked a question similar to this. But what I need to do now is make a folder for the file I am writing. If the path exists, my code works fine. It writes the file as expected. However, if the folder path does not exist, nothing gets written. Note that the file does not need to exist for the code to work. I always thought that whatever path I provided would be created but I guess that's not the case. Does anyone know how to do this?
[Edit] Also, I'm wondering if a file created can be set to hidden in explorer

That's actually no an issue in this case, whether the folder exists or not. I was having a problem with the actual creation of the folder. But we found in the documentation the answer.
For future googlers who might be in the same boat:
path = new Folder("/blah/blah/blah");
path.create();

Similar Messages

  • Unable to lookup home: Path to object does not exist at : java:comp#

    Hallo,
    I do not understand why I am getting the exception:
    Unable to lookup home: Path to object does not exist at : java:comp#
    if i have defined in the ejb-j2ee-engine.xml the jndi name:
    <enterprise-beans>
         <enterprise-bean>
              <ejb-name>MyConverterBean</ejb-name>
              <jndi-name>MyConverterBean</jndi-name>
              <session-props/>
         </enterprise-bean>
    </enterprise-beans>
    and in the ejb-jar.xml :
    <enterprise-beans>
       <session>
          <description>the converter bean</description>
          <display-name>MyConverter</display-name>
          <ejb-name>MyConverterBean</ejb-name>
          <home>converter.MyConverterHome</home>
          <remote>converter.MyConverter</remote>
          <local-home>converter.MyConverterLocalHome</local-home>
          <local>converter.MyConverterLocal</local>
          <ejb-class>converter.MyConverterBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
        </session>
    </enterprise-beans>
    I am creating the EJB in this way:
    ic = new InitialContext();
    objRef = ic.lookup("java:comp/env/ejb/MyConverter");
    home = (MyConverterHome)PortableRemoteObject.narrow(objRef, MyConverterHome.class);
    converter = home.create();
    I checked in the Administrator tool under JDNI / ejbContext and I can see MyConverterBean in the list.
    Do you have any idea what I am doing wrong?
    thanks a lot for your help,
    SAPLernen

    Hi Vladimir,
    do you have some example or tutorial of how can i implement java proxies from a java stand alone application.
    i allready make everyting but i'm still having problem.
    this line give me a null
    queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)ctx.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
    this is my java class that invoke my ejb java proxy
    package com.gsk.xi.demo;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.sap.aii.proxy.xiruntime.core.MessageSpecifier;
    public class InvokeProxy {
         private Object objRef = null;
         private InitialContext ic = null;
         public String getRole(String name, String pwd){
              String role="0";
              UsersSyncMI_PortTypeLocalHome queryOutLocalHome=null;
              UsersSyncMI_PortTypeLocal queryOutLocal=null;
              try{
                   Context ctx = null;
                   Object ref = null;
                   Properties p = new Properties();
                   p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   p.put(Context.PROVIDER_URL, "buasapp012.gwamericas.corpnet1.com:50004");
                   p.put(Context.SECURITY_PRINCIPAL, "J2EE_ADMIN");
                   p.put(Context.SECURITY_CREDENTIALS, "was1234");
                   ctx = new InitialContext();
                   //objRef = ic.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
                   //queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)PortableRemoteObject.narrow(objRef, UsersSyncMI_PortTypeLocalHome.class);     
                   queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)ctx.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
                   queryOutLocal = queryOutLocalHome.create();
                   MessageSpecifier msg = queryOutLocal.$messageSpecifier();
                   msg.setSenderService("JAVA");
                   queryOutLocal.$messageSpecifier(msg);
                   UserDT_Type reqtype = new UserDT_Type();
                   reqtype.setUsername(name);
                   reqtype.setPassword(pwd);
                   UsersDBMTResponse_Type response = new UsersDBMTResponse_Type();
                   response = queryOutLocal.usersSyncMI(reqtype);
                   role = role + response.getStatementResponse().getRow().getRole();
              catch(Exception ex){
                   System.out.println(ex.getMessage());
              return role;
    } //end of class
    thanks for your time
    Lionel

  • Error: Path to object does not exist at Request

    Hi experts,
    i have a scenario asynchronous/syncrhonous: file to rfc and get back response rfc to other file. I have 3 communication channel: 1 sender file, 1 receiver file, 1 receiver RFC. The communication channel sender file show the follow error:
    Attempt to process file failed with com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at Request, the whole lookup name is localejbs/AF_Modules/Request/ResponseBean.
    I do not understand how modules(AF_Modules/Request/ResponseBean) in adapter works, the documents that I have found I am not much has clarified, could someone please explain and tell me something's error?
    very thanks,
    regards

    Hi,
    Check the receiver agreement, you might have configured the file receiver communication channel name instead of the RFC receiver communication channel name.
    Also check the module parameters in the sender file CC
    Processing sequence:
    Module name                                           Module type                               Module key
    AF_Modules/RequestResponseBean        Local Enterprise Bean                       1
    CallSapAdapter                                       Local Enterprise Bean                       2
    AF_Modules/ResponseOnewayBean         Local Enterprise Bean                       3
    Module configuration:
    Modulekey                              parameter name                         parametervalue
    1                                             passThrough                               true
    3                                            receiverChannel                            <File receiver  CC>
    3                                             receiverService                            <Receiver service name>
    Regards,
    Nithiyanandam

  • Get-Item: Cannot find path ' ' because it does not exist. While running Powershell script.

    I am trying to run a PowerShell script to upload files into a SharePoint site in an Azure environment...the script works fine on my local machine, but every time I run it in Azure (remotely), I get errors. Here is what my simple script looks like...
    if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
    Write-Host "Loading Sharepoint Module "
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    Add-PSSnapin -Name Microsoft.SharePoint.PowerShell
    if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell) -eq $null )
    Write-Host "Failed to load sharepoint snap-in. Could not proceed further, Aborting ..."
    Exit
    #Script settings
    $webUrl = "http://sampleWebUrl"
    $docLibraryName = "My Documents"
    $docLibraryUrlName = "My%20Documents"
    $localFolderPath = get-childitem "C:\Upload\Test Upload\My Documents\" -recurse
    $contentType = "ContenttType1"
    #Open web and library
    $web = Get-SPWeb $webUrl
    write-host "Web:" $web
    $docLibrary = $web.Lists[$docLibraryName]
    write-host "docLibrary:" $docLibrary
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
    write-host "files:" $files
    If ($contentType = "ContenttType1")
    #Open file
    $fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
    # Gather the file name
    $FileName = $File.Name
    #remove file extension
    $NewName = [IO.Path]::GetFileNameWithoutExtension($FileName)
    #split the file name by the "-" character
    $FileNameArray = $NewName.split("_")
    $check = $FileNameArray.Length
    #Add file
    $folder = $web.getfolder($docLibrary.rootFolder.URL)
    write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
    $spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)
    $spItem = $spFile.Item
    write-host "Success"
    write-host "SP File:" $spFile
    write-host "SP Item" $spItem
    #populate columns
    $spItem["Column1"] = $FileNameArray[0]
    $spItem["Column2"] = $FileNameArray[1]
    $spItem.Update()
    $fileStream.Close();
    Again, I can run this on my local machine and it works just fine, but when I attempt to run it on the Azure environment I get this error...
    Get-Item : Cannot find path 'C:\powershellscripts\12653_B7045.PDF' because it does not exist.
    At C:\PowerShellScripts\Upload-FilesIntoSharePointTester.ps1:32 char:42
    +     $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
    +                                          ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\powershellscripts\12653_B7045.PDF:String) [Get-Item], ItemNotFoundException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
    What strikes me first is the fact that the file its looking for is in the "C:\Upload\Test Upload\My Documents\" directory, but the error keeps saying "C:\powershellscripts\" which is where my script resides and not the files I want to
    upload into SharePoint. When I step through the code, all the variables are holding the correct values. The $localFolderPath shows the name of files that I am attempting to upload, so it recognizes them. But once I step through this particular line of code,
    the error occurs...
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
    Is this an error caused because I am remoting into the Azure environment? Has anyone dealt with this issue before? I would really appreciate the help. Thanks
    Update: quick thing I noticed is that these two lines of code are returning null values. Again, is this handled differently in Azure or remotely? I ask cause this is the way I know how to do this, locally.
    $docLibrary = $web.Lists[$docLibraryName]
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()

    "...square brackets are wildcard characters in Windows PowerShell..."
    When you use cd without a parameter it uses the -Path parameter. In this case you'll have to escape the square brackets so they are not considered wildcards. Each of the commands in the first example does the exact same thing.
    cd 'Learn PowerShell `[Do Whatever`]'
    cd -Path 'Learn PowerShell `[Do Whatever`]'
    cd (or Set-Location) also has a literal path parameter (-LiteralPath) that does not require using an escape character (`) before each of the brackets. Hope this helps.
    cd -LiteralPath 'Learn PowerShell [Do Whatever]'

  • While creating the user getting iPlanetAMUserService does not exist error.

    Hi,
    I was trying to create a user in access manger 7.1 console . I am getting error like iPlanetAMUserService does not exist.
    path: Access control>Realm>Subjects.
    can anyone please help me to give the suggestions.
    Thanks
    GV

    And why do you think those jars are required? Guess work? Glassfish already provides them, remove them from the application deployment and try again.

  • Create a file if it does not exist when a script runs

    I have a shell script I run using automator that puts on the clipboard a string like Page 001, Page 002 and so forth incrementing the number 00x everytime it runs. I use it when I need to sequentially name files when doing things like scanning documents and so forth.
    Presently, I have to manually create a file "~/counter" and enter the integer to start counting from. So if ~/counter contains 0, pbcopy places "Page 001" on the clipboard and so forth
    The shell script
    <pre class="jive-pre">
    #!/usr/bin/env bash
    myvar=$(cat ~/counter);
    let myvar=$myvar+1;
    mycopy=$(printf "Page %03d" $myvar);
    echo "$mycopy" | pbcopy;
    echo "$myvar" > ~/counter;
    </pre>
    works fine now.
    I want to modify the script so that if ~/counter does not exist, the script creates a file and initializes an integer value say 1 in the file. If the file exists, the script uses the integer used in the file.
    How can I get this done?

    And because I can not leave "Well Enough Alone"
    #!/usr/bin/env bash
    count=0
    [[ -r ~/counter ]] && read count anyjunk_aftercount <~/counter
    count=$((count+1))
    echo "$count" >~/counter
    printf "Page %03d" $count | pbcopy
    The anyjunk_aftercount is just in case something else gets into ~/counter. Assuming the first non-blank field on line 1 is the count, then anything following the count will be stuffed into anyjunk_aftercount and since the script ignores it, it will go away when the script re-writes ~/counter with just $count

  • Newly Created Folder Under My Folders Does Not show Up in Answers

    I created a new folder in My Folders using "Manage Catalog". It shows up in the Manage Catalog window but does not appear in Answers even after I refreshed the display. I've successfully created folders in the past, but this suddenly stopped working. The only thing that I had done was rename the Subject Area in the Administration tool. Does anyone have any insight as to why folders created does not show up under My Folder. However, I am able to create folders under Shared Folders.
    Thanks in advance.

    Hi user9213142,
    Just as an FYI, it's customary to award "Correct" points to Ashok for his assistance and setting your question to "Answered" so that other users can benefit from the help.
    Best regards,
    -Joe

  • Javascript to create bookmark for page that does not exist yet

    Hello all,
    Is there a way to write js for a bookmark that goes to a page that does not currently exist?
    For example, I have a 20 page pdf document.  We have FileMaker Pro that can 'append' to a PDF additional pages.  So when FileMaker pro appends two new pages (bringing us up to 22 pages), I'd like to have 2 'existing' bookmarks in the original 20 page pdf document that will, when clicked, go to page 21 and 22 respectfully.
    Is this possible and would anyone have the JS I would put into that bookmark?
    Thank you in advance!!

    Here's what I posted in the other forum you posted this to, in case it might help someone here:
    The JavaScript would be:
    // Go to page 21
    pageNum = 20;
    If there are fewer than 21 pages, it will go to the last page. If you want to avoid this, you could do something like:
    // Go to page 21 if there are at least 21 pages
    if (numPages > 20) pageNum = 20;

  • Creating Connection Pools/ Connection Pool does not exist error

    Hi everyone -
    I have a question about when/how weblogic creates connections pools.
    Here is the scenario. Sometimes when our weblogic server starts, our
    oracle database is not available. Therefor, weblogic can't create the
    connection pool. However, after oracle comes weblogic up, weblogic
    could create the connection pool, but it doesn't appear to be smart
    enough to do this. Is there a way to ask weblogic to attempt to
    recreate a connection pool?
    We've noticed this behavior on weblogic 6.0 sp2.
    Thanks,
    Scott

    If you define the pool with an initial size of zero, you should be OK. The
    server is currently a little severe with a pool when the server cannot
    create the pool with it's initial capacity, the pool isn't created. The server
    could create it later, if told to via the console or via the admin command line,
    or via the dynamic pool API, but init=0 is easiest.
    Joe
    Scott Gilpin wrote:
    Hi everyone -
    I have a question about when/how weblogic creates connections pools.
    Here is the scenario. Sometimes when our weblogic server starts, our
    oracle database is not available. Therefor, weblogic can't create the
    connection pool. However, after oracle comes weblogic up, weblogic
    could create the connection pool, but it doesn't appear to be smart
    enough to do this. Is there a way to ask weblogic to attempt to
    recreate a connection pool?
    We've noticed this behavior on weblogic 6.0 sp2.
    Thanks,
    Scott

  • The requested resource does not exist - EAR - Jsp

    Hy!
    Following a tutorial I'm trying to create a small application in the Developer Studio.
    I created a Table, an EJB-Project with an Entity Bean and a Stateless Session Bean, a Web-Project with a JSP-File and an EAR which I deployed. Now the JSP form should be available at http://[server-name]:50000/employee/view.
    But I get:
    404   Not Found - SAP J2EE Engine/6.40
    The requested resource does not exist.
    Details:     Go to main page of this application!
    "main page" is a link which refers to http://localhost:50000/index.html which is the SAP Engine Start Page.
    This is my first experience with sap netweaver. So I don't know where I should start to search for the problem or how to solve it.
    In the web.xml of the WebProject there is the following code for the servlet mapping:
    <servlet>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <jsp-file>/NewEmployee.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <url-pattern>/view</url-pattern>
    </servlet-mapping>
    This is the code in the application.xml of the ear which should make it possible to access the webproject under .../employee.
    <module>
         <web>
              <web-uri>EmployeeWeb.war</web-uri>
              <context-root>employee</context-root>
         </web>
    </module>
    Best Regards,
    Carina

    Hy!
    I tried several changes and found out, I just had to remove the ' / ' bevor NewEmployee.jsp in the jsp-file - tag.
    <servlet>
         <servlet-name>NewEmployee.jsp</servlet-name>
         <jsp-file>NewEmployee.jsp</jsp-file>
    </servlet>
    Now it works and I'm able to test the jsp. There's a form and after a submit a jndi-lookup is performed.
    Object ref=jndiContext.lookup("java:comp/ev/ejb/EmployeeService");
    It seems the EJB reference in the web.xml:
             <ejb-ref>
              <ejb-ref-name>ejb/EmployeeService</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <home>com.sap.bsp.EmployeeServicesHome</home>
              <remote>com.sap.bsp.EmployeeServices</remote>
              <ejb-link>EmployeeEjb.jar#EmployeeServicesBean</ejb-link>
         </ejb-ref>
    doesn't work, because I get:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/ev/ejb/EmployeeService.
    Looking forward to a hint
    Best regards,
    Carina

  • Error: Requested resource does not exist

    Hi
    I am using a J2EE application to connect to R/3. I am receiving the above mentioned error. I created a Web Module project. In that i created a package com.training.examples.servlet.GetSalesPage.java . This is going to be my controller.
    I also created a JSP page with a submit button. Once i click on the button, i get the following message "  The requested resource does not exist."
    In the JSP page i used the follwing Tag :
    <form action="<%= request.getContextPath() %>/servlet/GetSalesPage" method="POST">
    I know this is will be tough to understand with me just giving me a bigger picture. I am ready to give the code if anyone wishes to check it out also.
    Any help would be rewarded.
    Murali.

    Hi
    Thanks Vyara and Guru. I am actually trying to replicate the example of "Creating first J2EE application - flight bookings". So i am getting stuck with the basic things.
    Ur inputs were valuable.
    I added the Servlet in the Web.xml
    Here is my Web.XML
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                             "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <display-name>WEB APP</display-name>
        <description>WEB APP description</description>
          <servlet>
            <servlet-name>GetSalesPage</servlet-name>
            <servlet-class>com.training.examples.servlet.GetSalesPage</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>GetSalesList.jsp</servlet-name>
            <jsp-file>/GetSalesList.jsp</jsp-file>
        </servlet>
        <ejb-ref>
            <ejb-ref-name>ejb/SalesEJBBean</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <home>com.training.examples.SalesEJBHome</home>
            <remote>com.training.examples.SalesEJB</remote>
            <ejb-link>SalesBean</ejb-link>
        </ejb-ref>
    </web-app>
    Here is ejb-jar.xml in my EJB Project
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
         <description>EJB JAR description</description>
         <display-name>EJB JAR</display-name>
         <enterprise-beans>
              <session>
                   <ejb-name>SalesEJBBean</ejb-name>
                   <home>com.training.examples.SalesEJBHome</home>
                   <remote>com.training.examples.SalesEJB</remote>
                   <local-home>com.training.examples.SalesEJBLocalHome</local-home>
                   <local>com.training.examples.SalesEJBLocal</local>
                   <ejb-class>com.training.examples.SalesEJBBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Bean</transaction-type>
                   <resource-ref>
                        <res-ref-name>eis/SAPJRADemoFactory</res-ref-name>
                        <res-type>javax.resource.cci.ConnectionFactory</res-type>
                        <res-auth>Container</res-auth>
                        <res-sharing-scope>Shareable</res-sharing-scope>
                   </resource-ref>
              </session>
         </enterprise-beans>
    </ejb-jar>
    Now i am able to get the JSP page. When i key in data and click on submit button, i get the following error:
    <b>
    "Couldn't access bean salesEJB: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ejb/SalesEJB"</b>
    I have setup eis/SAPJRADemoFactory for my Flight Application and it is working fine. I am trying to use the same setting for my application also.
    Here is my GetSalesPage SERVLET Page :
    Created on May 9, 2006
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package com.training.examples.servlet;
    import java.io.IOException;
    import java.rmi.RemoteException;
    import java.util.List;
    import javax.ejb.CreateException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import com.training.examples.SalesEJB;
    import com.training.examples.SalesEJBHome;
    import com.training.examples.SalesSelection;
    @author MShanmugham
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class GetSalesPage extends HttpServlet {
    /* names of jsp pages */
    private static final String SELECT_SALES_ORDER= "/GetSalesList.jsp";
    // JNDI names
    private static final String PREFIX = "java:comp/env/ejb/";
    private static final String SALES_BEAN = "SalesEJB";
    public static final String BYF_SALES_SELECTION = "byf_sales_selection";
    public static final String BYF_SALES_LIST = "byf_sales_list";
    public static final String BYF_ERROR_MESSAGE = "byf_error_message";
    // class members
    private RequestDispatcher dispatcher = null;
    protected void doGet(
         HttpServletRequest request,
         HttpServletResponse response)
         throws ServletException, IOException {
         doPost(request, response);
    protected void doPost(
         HttpServletRequest request,
         HttpServletResponse response)
         throws ServletException, IOException {
         HttpSession session = request.getSession(true);     
         if(request.getParameter("select") != null) {
              // select or GET_SALES event -> retrieve sales list, display 1. page
              getSalesList( request, session);
              dispatcher = request.getRequestDispatcher(SELECT_SALES_ORDER);  
              dispatcher.forward(request, response);
         private void getSalesList( HttpServletRequest request, HttpSession session) {
         try {
              // get bean SalesEJB
              InitialContext initialcontext = new InitialContext();
              SalesEJBHome salesHome = (SalesEJBHome) initialcontext.lookup( PREFIX + SALES_BEAN);
              SalesEJB sales = salesHome.create();
              // get flight list
              String salesOrg = (String) request.getParameter("salesOrg");
              String customerNo = (String) request.getParameter("customerNo");
              SalesSelection salesSelection = null;
              if( (salesOrg != null) && (customerNo != null)) {
                   salesSelection = new SalesSelection( salesOrg, customerNo);
                   session.setAttribute( BYF_SALES_SELECTION,salesSelection);
              } else {
                   salesSelection = (SalesSelection) session.getAttribute( BYF_SALES_SELECTION);
              List salesList = sales.getSalesList(salesSelection);
              if( salesList == null) {
                   request.setAttribute(BYF_ERROR_MESSAGE,"No records found!");
              // set session and request attribute
              session.setAttribute( BYF_SALES_SELECTION, salesSelection);
              session.setAttribute( BYF_SALES_LIST, salesList);
         }catch(NamingException exc) {
              request.setAttribute(BYF_ERROR_MESSAGE, "Couldn't access bean salesEJB: " + exc.getMessage());
         }catch(CreateException exc) {
              request.setAttribute(BYF_ERROR_MESSAGE, "Couldn't create bean salesEJB: " + exc.getMessage());
         }catch(RemoteException exc) {
              request.setAttribute(BYF_ERROR_MESSAGE, "Bean salesEJB returned error message: " + exc.detail.getMessage());
    Here is the only JSP I am using GetSalesList.jsp
    <%@ page language="java" %>
    <%@ page import="com.training.examples.servlet.GetSalesPage"%>
    <%@ page import="com.training.examples.SalesSelection"%>
    <%@ page import="com.training.examples.salesData"%>
    <%
      // get the sales order selection data and the list of selected Orders
      SalesSelection salesSelection = (SalesSelection) session.getAttribute( GetSalesPage.BYF_SALES_SELECTION);
      List salesList = (List) session.getAttribute( GetSalesPage.BYF_SALES_LIST);
      // get the error message
      String errorMessage = (String) request.getAttribute( GetSalesPage.BYF_ERROR_MESSAGE);
    %>
    <html>
         <head>
              <title> Fetch Orders </title>
         </head>
         <body>
              <fieldset>
              <legend>
                   <b> Give the Sales Org and Customer Number </b>
              </legend>
    <form action="<%= request.getContextPath() %>/servlet/GetSalesPage" method="POST">
    Sales Organization:
    <% if(salesSelection == null) { %>
         <input type="text" size="16" name="salesOrg" value="">
    <% } else { %>
         <input type="text" size="16" name="salesOrg" value="<%= salesSelection.getSalesOrg() %>">
    <% } %>
    Customer Number:
    <% if(salesSelection == null) { %>
         <input type="text" size="16" name="customerNo" value="">
    <% } else { %>
         <input type="text" size="16" name="customerNo" value="<%= salesSelection.getCustomer() %>">
    <% } %>
    <br>
    <br>
    <input type="submit" name="select" value="Select">
    <br>
    <% if(salesList != null) { %>
    <table border="1" box="all">
    <tr>
    <th rowspan="2">&nbsp</th>
    <th rowspan="2">Sales Doc</th>
    <th rowspan="2">Item No</th>
    <th colspan="2">Material</th>
    </tr>
    <%     for(int i = 0; i < salesList.size(); i++) {  %>
         <tr>
              <td>
              <input type="radio" name="saleslist">
              </td>
                   <td><%= ((salesData)salesList.get(i)).getSd_doc()   %></td>
                   <td><%= ((salesData)salesList.get(i)).getItm_number() %></td>
                   <td><%= ((salesData)salesList.get(i)).getMaterial() %></td>
                   </tr>
              <br>
    <%  } %>          
    </table>
    <br><br>
    <input type="submit" name="continue" value="Continue">
    </form>
    <% } %>
    <% if (errorMessage != null) { %>
       <br>
       <tr>
          <td colspan="3">
             <font color="#D00000"><b><%= errorMessage %></b></font>
          </td>
       </tr> 
    <% } %>
              </fieldset>
              <p>
         </body>
    </html>
    Can you please help me out.
    Murali.

  • File Adapter to iSeries IFS "Configured source directory does not exist"

    Good day, All
    We are using PI 7.1
    I need the PI file adapter to pull a file off of an iSeries(AS400) IFS folder directory.
    I'm able to configure the file adapter to pull off files from the PI server C and D drives.
    I'm able to configure the file adapter to pull off files from other network drives.
    But the iSeries IFS folder keeps coming back "does not exist".
    I've configured the Source Directory with / and with \ and it doesn't help.
    I am able to navigate to the folder while logged into the PI server as the server admin.
    I've tried mapping a drive on the server to the IFS folder but that doesn't work either.
    Please help!!!
    I've wasted too much time trying different settings on this already.
    Any assistance would be greatly appreciated.
    Thanks,
    Chad

    Dear Chad,
    Please go through the following SDN link :
    - Configured source directory .... does not exist was suppressed
    give the write permisson to the directory for everyone group and check if that helps.
    Also, kindly go through the following links :
    1) http://wiki.sdn.sap.com/wiki/display/XI/TroubleshootingtheFile+Adapter (point 2)
    2) Not able to read files from Windows directory to Unix Server using NFS
    which might give some hints in solving your issue.
    Best Regards
    Nishwanth

  • Line item does not exists for Good issue

    Dear All,
    User have created a outbound delivery and perform Post good issue.No billing document has been created yet. Somehow lineitem does not exists in the delivery document however Material Document for Good issue exists with reference to Delivery Document. I tried to reverse the delivery document with reference . No error was occured but still no reversal was updated on Delivery document. I know it is not possible to delete line item without reversal of PGI but system is showing me the status as described
    Prompt response in this regard is highly appreciable
    Thank you,
    Nomi

    Solution has been identified, If goods has been issued then Returns Process wrt Sales Order  solved the problem for my rare process. Goods have been transfered to unristricted stock.
    Thank you all for your support
    Best Regards,
    NoMi

  • Workbook does not exist in document store

    Hi All,
    I have transported a workbook by selecting Role with "only necessry objects" then selected only my workbook, that transport was successful.
    My Role has different folders, this workbook is part of one of the folder.when this transport went through it messed up other workbooks in that folder. when i try to run other workbooks in that folder it says " workbook does not exist in document store"
    Can anybody explain me why is it sayin so, do i need to select all workbooks in that folder when i transport??
    Thanks in advance.
    Robyn.

    Hi Robyn.
    Sounds VERY like the issue we have to manage carefully, where an old transport has gone through, and undone the impact of a later transport - could that be the problem? If so, I will explain how we have set up a process to enable us to manage it, cos there are times when we have had up to 6 different workbooks going through in parallel, each with a role transport, and ensuring that the older ones dont undo the effect of the newer ones was nearly impossible!
    Patrick

  • E-Recruiting - Synchronization object u2018BPu2019 does not exist in customizing

    e-Recruiting Question: Version 6 u2013 patch 10
    The following error is presented when new eRec users are created or new external users are created.
    Synchronization object u2018BPu2019 does not exist in customizing
    I have concern that  customizing table CRMC_BUT_CALL_FU is not properly maintained as it initially dumped on creation, but after an update to the table the dump is resolved but I still receive the error. 
    Any hints or example of the configuration in this table for a working e-Recruiting system?
    Regards-
    b

    Update:
    After a lot of digging, we discovered that the JDO mapping is creating a lower bound with a one that should be a zero on the relationship... A forum suggested that adding cascade-delete will force the zero with no foreign key constraints...

Maybe you are looking for

  • Creating Sales Order with credit card using Process Order API

    Hi All, When trying to create sales order with payment type as Credit card using Order data storing into staging tables and then calling Order Import Concurrent Program. The order is being created in ENTERED state. While trying to passing the same de

  • Can' get movie clip to play

    I have a Flash movie that plays a movie clip called DR1 at frame 113 using this code: DR1.play(); There is nothing else going on in the movie for the length of the clip, but when I play the movie, the clip does not play - I just have a blank screen f

  • Generating Purchase Order forms in background

    Hi! I initially posted this thread in the MM Forum, but I was encouraged by a user to post it here. Please make me know if this isn't the right place. I have a little problem regarding the creation of the forms for Purchase Orders. I want the forms t

  • HT1338 how can i upgrade 10.5.8

    İ AM USİNG 10.5.8 ON MY PC.HOW CAN İ UPGRADE İT

  • Uninstalling Adobe Photoshop 3.0

    I installed Adobe Photoshop 3.0 from a free download on the Adobe site. I wish to uninstall it now. How do I go about the Uninstall process?