Error in Seeburger SFTP : Cannot create pending keystore PENDING/SSH_hosts

Hi All,
           I am developing a scenario where my sender is file and receiver is SFTP. It is pass through interface and to achive SFTP i used seeburger SFTP adapter. I generated the public from the certificate and shared the key with SFTP admin.
           Now whe i test the scenario i facing the following error in the SFTP channel @ RWB. The error is
Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: >> Description: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>> Details: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false, >> Description: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>> Details: putFile: Could not connect to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.HostVerificationException: Cannot create pending keystore PENDING/SSH_hosts/>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false
Has anyone faced the similar problem and resolved it , please help me on the same.
Thanks,
Siva.

Hi Srikanth,
                    I resolved the above error by creating aview in my keystore(nwa) . Now i am facing a new error.
                   The error looks something like this:
                 Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: >> Description: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>> Details: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false, >> Description: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>> Details: putFile: Could not connect to remote host; Reason: Unable to establish a connection to SSH server, the authentication has failed. Details: Server returned AUTHENTICATION_FAILED. Check user and key/password-settings.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false.
I am using a private key authentication and I gave my SAP PI userid as User and private key as the key present in NWA.
Can you please help me in resolving this error.
Thanks,
Sivarama Krishna

Similar Messages

  • I just installed Lightroom CC. When I try to open it, I get an error message: "An internal error has occurred.  Cannot create the required folder: ..."

    I just installed Lightroom CC. When I try to open it, I get an error message: "An internal error has occurred.  Cannot create the required folder: ..."

    Cannot create the required folder

  • Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain

    Hi, When im giving a default value to a date column in the attribute settings i get this error when im running my jsp page (bc4j web application):
    Error Message: JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value: 31-dic-2099
    How can i fix that? I�ve already trying all possible date formats.
    Thanku

    The default format for Date (oracle.sql.DATE which is the superclass of oracle.jbo.domain.Date) is yyyy-mm-dd.

  • I have installed Adobe Lightroom CC.  In the process of launching, a popup appears, that says:  "AN INTERNAL ERROR HAS OCCURRED.  Cannot create the required folder:  /Users/(my user name)/Library/Application Support/Adobe/Lightroom/Develop Presets."  So e

    I have installed Adobe Lightroom CC.  In the process of launching, a popup appears, that says:  "AN INTERNAL ERROR HAS OCCURRED.  Cannot create the required folder:  /Users/(my user name)/Library/Application Support/Adobe/Lightroom/Develop Presets."  So even though Lightroom CC is installed, it will not launch.  What do I need to do to allow it to launch?

    The problem was solved today.  Here's the full story.  I'm a Mac user.  At first I installed Lightroom CC on my iMac (desktop).  I had this problem so I called Adobe, and was referred to a "special unit" .  After about an hour the tech solved it for me ... we did a screen sharing and she took control of my computer for a loooong time.  Because of language difficulties, at first I wondered if she knew what she was doing but she eventually solved it.  Although she couldn't explain exactly what she was doing, she summarized it by saying "it was a permissions problem."  I asked if I would have the same issue later when I installed it on my laptop (Macbook Air).  She said probably not.
    But I did.  The same internal error popup arose on launch and launch did not complete on my laptop.  I tried chat but no joy so I eventually called Apple Care.  I had noticed that on my laptop (and the iMac for that matter), that there was no Library folder after my user name.  The Apple tech explained that the Library folder is actually there but it is hidden because it's very easy for users to do some very nasty things to their computer by going astray while in the Library folder.  The folder is actually there, but they hide it.  I did remember seeing that the tech helping me with my iMac had typed the work "Library" while she was controlling my computer.  Basically she had activated the hidden Library folder so she could open the path that Lightroom was trying to follow to create that "Develop Presets" folder.  For some reason, the inability to create that folder in the launch process was preventing launch from being completed.  The Apple tech said she didn't actually have to do that and activated the Library folder by use of the Go selection on the menu bar.  Anyway, once that complete path was replicated and opened, the next step was to go to the Lightroom Permissions field and add my user name to the user categories already there and enable "read and write" permissions to my user name.  Once done, I shut down my laptop, and then rebooted.  I launched Lightroom and then boom, voila, heavens to betsy, etc. it launched and suddenly a dismal weekend turned into a great one. 
    I am not a geek, so I hope this makes some sense.  I also hope Lightroom launches again tomorrow and beyond! 

  • Error message:FRM-12001: Cannot Create the record group(check your query)

    Requirement: Need to get employee name and number in the LOV in search criteria.
    So I created LOV "full_name" and Record group Query under Employee Name property palette with
    select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
    ,papf.employee_number
    from apps.per_all_people_f papf, apps.per_person_types ppt
    where sysdate between papf.effective_start_date and papf.effective_end_date AND papf.person_type_id=ppt.person_type_id AND ppt.system_person_type IN ('EMP', 'OTHER', 'CWK','EMP_APL')
    AND PPT.default_flag='Y' and papf.BUSINESS_GROUP_ID=1
    order by papf.full_name
    I was unable to save and getting error message "FRM-12001: Cannot Create the record group(check your query)".
    I cant use PER_ALL_PEOPLE_F.FULL_NAME since full name here is last_name||title||middle_names||firstname.
    But my requiremnet is papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name .
    Can any one of you help me.

    First, Magoo wrote:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name ( p_title in varchar2,
    p_last_name in varchar2,
    p_first_name in varchar2,
    p_mid_names in varchar2 ) return varchar2 is
    begin
    for l_rec in ( select decode ( p_title, null, null, p_title || ' ' ) ||
    p_last_name || ', ' || p_first_name ||
    decode ( p_mid_names, null, null, ' ' || p_mid_names ) full_name
    from dual ) loop
    return ( l_rec.full_name );
    end loop;
    end;</font></pre>
    Magoo, you don't ever need to use Select from Dual. And the loop is completely unnecessary, since Dual always returns only one record. This would be much simpler:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name
    ( p_title in varchar2,
    p_last_name in varchar2,
    p_first_name in varchar2,
    p_mid_names in varchar2 ) return varchar2 is
    begin
    Return ( Ltrim( Rtrim ( p_title
    ||' ' ||p_last_name
    ||', '||p_first_name
    ||' ' ||p_middle_names )));
    end;</font></pre>
    And second:
    user606106, you did not mention how you got your record group working. However, you DO have an issue with spaces. If you change this:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
    ,papf.employee_number </font></pre>
    to this:
    <pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select Ltrim(Rtrim(papf.title||' '||papf.last_name||', '
    ||papf.first_name||' '||papf.middle_names)) AS emp_full_name,
    papf.employee_number</font></pre>
    it should work. The Ltrim(Rtrim()) removes leading and trailing spaces from the resulting full name.

  • Error in Seeburger SFTP receiver in append mode.

    Hi,
    I am trying to do content conversion in Seeburger SFTP adapter at the receiver side and was successfully able to create the first CSV record.
    I am using append mode in receiver adapter.
    But when sent another record from sender; I got below error.
    Always, first record gets processed successfully then second and subsequent records always fails.
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: >> Description: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>> Details: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMPONENT_ERROR>>Retryable: true>>Fatal: true, >> Description: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>> Details: putFile: Target filename <out.txt>; Flags set: appending=<true>; ; Reason: Failed to convert Ace to the native form.>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMPONENT_ERROR>>Retryable: true>>Fatal: true
    Regards,
    Anirudh.

    An update.
    Error message "Unable to convert ACE to native format" means it is not able to convert A SCII C ompatible E ncoding to the native encoding which is used in file system.
    I am unable to make head or tail of it... I am doing content conversion in adapter module tab and have specified Transform.ContentType = text/plain;charset=utf-8
    The file which gets generated is of ANSI encoding and doesn't appear to be a problem as it works when the file gets generated for the first time.
    Also, it works OK when I use unique file name in receiver adatper where 1 file for each record is generated.
    The problem is only in append mode.
    When checked in Seeburger RWB, there was inconsistency in file details for messages.
    For the successful message, file details were:
    File details
    Host LTFBG-ANIRUD-PI.com
    Path /out
    File name OUT.CSV
    Remote file name OUT.CSV
    Detailed status description PUT command for file <OUT.CSV> has been performed successfully.
    whereas, for failed messages it was:
    File details
    Host LTFBG-ANIRUD-PI.com
    Path /out
    File name null
    Remote file name null
    Detailed status description Error on send, will be retried
    Could that be product error?
    Has anyone faced this problem before?
    regards,
    Anirudh.
    Edited by: Anirudh Vyas on Apr 10, 2009 8:31 PM
    Edited by: Anirudh Vyas on Apr 10, 2009 8:45 PM

  • Error /dev/rmt/0mn: cannot create when taking backup

    Hello Gurus
    I am getting the following error when I am trying to take SAP system backup on tape :-
    BR0278E Command output of 'LANG=C cd /oracle/SOL/sapbackup && echo .tape.hdr0 /usr/sap/SOL/SYS/exe/run/brtools -f detach LANG=C cpio -ovB > /dev/rmt/0mn':
    sh: /dev/rmt/0mn: cannot create
    BR0280I BRBACKUP time stamp: 2009-07-22 12.12.26
    BR0279E Return code from 'LANG=C cd /oracle/SOL/sapbackup && echo .tape.hdr0 /usr/sap/SOL/SYS/exe/run/brtools -f detach LANG=C cpio -ovB > /dev/rmt/0mn': 1
    BR0222E Copying /oracle/SOL/sapbackup/.tape.hdr0 to/from /dev/rmt/0mn failed due to previous errors
    BR0219E Initialization of volume SCRATCH in device /dev/rmt/0mn failed
    I checked the permissions of brtools as per SAP note 113747. I have set the correct permissions as per note.
    Server details :-SunOS cpdsol 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V440
    Please help mee
    Sarin

    Hello
    The permissions of brtools
    cpdsol:soladm 25% ls -al br*
    -rwsrwxr-x   1 orasol   sapsys   5758992 Jun 12 15:48 brarchive
    -rwsrwxr-x   1 orasol   sapsys   5920384 Jun 12 15:48 brbackup
    -rwsrwxr-x   1 orasol   sapsys   7786120 Jun 12 15:48 brconnect
    -rwxr-xr-x   1 soladm   sapsys   6281792 Jun 12 15:48 brrecover
    -rwxr-xr-x   1 soladm   sapsys   2482144 Jun 12 15:48 brrestore
    -rwxr-xr-x   1 soladm   sapsys   8107904 Jun 12 15:48 brspace
    -rwxr-xr-x   1 soladm   sapsys   3097984 Jun 12 15:48 brtools
    I also executed the command suggested by Joe
    cpdsol:soladm 29% grep tape_address /oracle/SOL/102_64/dbs/initSOL.sap | cat -ve
    tape_address = /dev/rmt/0mn$
    default: value of the tape_address parameter$
    tape_address_arch = /dev/rmt/0mn$
    tape_address_rew = /dev/rmt/0m$
    default: value of the tape_address_rew parameter$
    tape_address_rew_arch = /dev/rmt/0m$
    default: value of the tape_address_rew parameter$
    tape_address_ctl = /dev/...$
    default: value of the tape_address_rew_arch parameter$
    tape_address_ctl_arch = /dev/...$
    Does the $ at the end of the parameter have any significance ??
    Sarin

  • I cannot install itunes 10.5 on my XP laptop, the error says that it cannot create the folder for apple software update as it already exists but there is no sign of the folder, any new ideas?

    can anyone help with this issue that comes up during an Itunes 10.5 install on an XP laptop?
    i have tried the installer suggestions
    thanks

    I was finally able to install this POS.
    Here is what I did:
    I tried to install an even older version than 1.5
    I went to filehippo.com and downloaded the oldest version I could find there which was the version 1.0.7
    Here is the link to that page: http://www.filehippo.com/download_adobe_air/3853/
    Thank God that old version installed on my computer.
    After that the installation of current version (2.5) of this POS worked as well.

  • Error: 500    Cannot create bean of class Simulation

    Hello, I was working with J2ee 1.2 and suddenly I got this error. Any one has an idea about it?, I can't continue working.
    Thanks...
    Error: 500
    Internal Servlet Error:
    javax.servlet.ServletException: Cannot create bean of class Simulation
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:384)
         at _0005csimulation_0002ejspsimulation_jsp_325._jspService(_0005csimulation_0002ejspsimulation_jsp_325.java:215)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
         at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
         at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
         at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
         at java.lang.Thread.run(Thread.java:484)
    Root cause:
    javax.servlet.ServletException: Cannot create bean of class Simulation
         at _0005csimulation_0002ejspsimulation_jsp_325._jspService(_0005csimulation_0002ejspsimulation_jsp_325.java:79)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
         at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
         at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
         at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
         at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
         at java.lang.Thread.run(Thread.java:484)

    This is the code for the simulatin class.
    I think nothing special.
    Begin --- Simulation.java
    import java.io.*;
    import java.util.*;
    public class Simulation
    private int lastMessage;
    private int transactions;
    private int transaction_prospere;
    /* Creation des variables du system */
         private String Quantite_acheteurs;
         private String Quantite_vendeurs;
         private String Argent_initiale;
         private String Articles_initiales;
         private String Prix_initial;
         private String Mechants_acheteurs;
         private String Mechants_vendeurs;
         private String Cycles_simulation;
         private String Choisir_strategie;
         private String Choisir_formule;
         private String Afficher_resultats;
    int iAfficher_resultats = (new Integer(Afficher_resultats)).intValue();
         /* Section de declaration des constants */
         private int OFFRE_DE_VENTE = 0;
         private int DEMANDE_ACHAT = 1;
         private int BROADCAST = -1;
    private int TRICHEUR = -1;
         private int PROSPERE = 1;
         private int VRAI = 1;
         private int FAUX = 0;
    private int ACHETEUR = 0;
    private int VENDEUR = 1;
         private int GENTIL = 0;
         private int MECHANT = 1;
         private double SEUIL_MECHANT = 0.87;
    Messages message_anterieur= null;
    /*** PADOVAN ********************************/
         public String Padovan_alpha;
    Begin --- Creation des agents...
    Pour la creation des agents il y a une generation des chiffres aleatoires
         pour repartir les vendeurs et les acheteurs, ainsi que les gentils et les
         mechants dans le vecteur d'agents
         public Vector Creation_des_agents(){
    System.out.println ("<<<<<<<<<<Executing...Creation_des_agents>>>>>>>>");
    /* Le vector avec des agents....*/
              Vector agents = new Vector();
    lastMessage = 0; /* Le derni�re message ajout� au tableau */
              transactions = 0; /* Compteur pour les transactions */
              transaction_prospere = 0; /* Compteur pour les transaction prosp�res*/
              /* Conversion de variables de string a int */
    int iQuantite_acheteurs = (new Integer(Quantite_acheteurs)).intValue();
    int iQuantite_vendeurs = (new Integer(Quantite_vendeurs)).intValue();
    int iArgent_initiale = (new Integer(Argent_initiale)).intValue();
    int iArticles_initiales = (new Integer(Articles_initiales)).intValue();
    int iPrix_initial = (new Integer(Prix_initial)).intValue();
    int iMechants_acheteurs = (new Integer(Mechants_acheteurs)).intValue();
    int iMechants_vendeurs = (new Integer(Mechants_vendeurs)).intValue();
    int i; /* Compteur pour la generation des agents */
              double agent_type; /* Pour generation aleatoire et savoir si est acheteur ou vendeur */
              int iagent_type; /* Type d'agent acheteur=0, vendeur=1 */
              double agent_comportement; /* Pour generation aleatoire et savoir si est gentil ou mechant */
              int iagent_comportement; /* Comportement de l'agent 0=gentil, 1=mechant, gentil par default */
    int total=iQuantite_acheteurs+iQuantite_vendeurs;
              /* Pour les agents......... */
              int j=0;
              for (i=0;i<total;)
                   iagent_comportement = 0;
    j++;
                   agent_type=Math.random(); /* Pour repartir les agentes vendeurs et acheteurs aleatoirement. */
    iagent_type=(agent_type<0.5?0:1); /* 0-> acheteur, 1-> vendeur */
                   if (iagent_type==0){   /*Creation des acheteurs.... */
    if(iQuantite_acheteurs>0)
    iQuantite_acheteurs--; /* un acheteur de moins */
    /* Generation du comportement */
                             if (iMechants_acheteurs>0) /* Faltan generar agentes mechantes */
                             if ((iQuantite_acheteurs > iMechants_acheteurs))
    agent_comportement = Math.random(); /* Pour repartir les comportement de l'agent */
    iagent_comportement=(agent_comportement<0.5?0:1);     /* 0->gentil, 1->mechant */
                             else
                                  iagent_comportement=1;
                             if (iagent_comportement==1) /* S'il est mechante... */
    iMechants_acheteurs --;
                             Agents agent = new Agents(i,ACHETEUR,0,0,iArgent_initiale,iagent_comportement, total);
                             agent.setPadovan_alpha(Padovan_alpha);
                   i++;
    agents.addElement(agent);
                   else{                  /* Creation des vendeurs... */
    if(iQuantite_vendeurs>0)
                             iQuantite_vendeurs--; /* un vendeur de moins */
    /* Generation du comportement */
                             if (iMechants_vendeurs>0) /*Faltan generar agentes mechantes */
                             if ((iQuantite_vendeurs > iMechants_vendeurs))
    agent_comportement = Math.random(); /* Pour repartir les comportement de l'agent */
    iagent_comportement=(agent_comportement<0.5?0:1);     /* 0->gentil, 1->mechant */
                             else
                                  iagent_comportement=1;
                             if (iagent_comportement==1) /* S'il est mechante... */
    iMechants_vendeurs --;
    Agents agent = new Agents(i,VENDEUR,iArticles_initiales,iPrix_initial,0,iagent_comportement,total);
                             agent.setPadovan_alpha(Padovan_alpha);
                   i++;
    agents.addElement(agent);
         }/* End for */
    System.out.println ("<<<<<<<<<<Ending...Creation_des_agents>>>>>>>>>>");
    return agents;
         } /* End Creation_des_agents */
    End --- Creation des agents...
    Begin --- Setters and getters.........
    public void     setQuantite_acheteurs(String Quantite_acheteurs) {
              this.Quantite_acheteurs= Quantite_acheteurs;
    public void     setQuantite_vendeurs(String Quantite_vendeurs) {
              this.Quantite_vendeurs= Quantite_vendeurs;
    public void     setArgent_initiale(String Argent_initiale) {
              this.Argent_initiale= Argent_initiale;
    public void     setArticles_initiales(String Articles_initiales) {
              this.Articles_initiales= Articles_initiales;
    public void     setPrix_initial(String Prix_initial) {
              this.Prix_initial= Prix_initial;
    public void     setMechants_acheteurs(String Mechants_acheteurs) {
              this.Mechants_acheteurs= Mechants_acheteurs;
    public void     setMechants_vendeurs(String Mechants_vendeurs) {
              this.Mechants_vendeurs= Mechants_vendeurs;
    public void     setCycles_simulation(String Cycles_simulation) {
              this.Cycles_simulation= Cycles_simulation;
    public void     setChoisir_strategie(String Choisir_strategie) {
              this.Choisir_strategie= Choisir_strategie;
    public void     setChoisir_formule(String Choisir_formule) {
              this.Choisir_formule= Choisir_formule;
    public void     setPadovan_alpha(String Padovan_alpha) {
              this.Padovan_alpha= Padovan_alpha;
    public void     setAfficher_resultats(String Afficher_resultats) {
              this.Afficher_resultats= Afficher_resultats;
    public String getPadovan_alpha( ){
    return this.Padovan_alpha;
    } // End of the class Simulation
    End --- Simulation

  • Cannot create bean of class Error

    Ok first off I realize several people have post messages similar to this - but the replys to those messages didn't help me:
    Today the webserver I had my code on crashed - and was restarted.
    Everything is working except for 1 page.
    When I load it I get this error:
    Error: 500
    Location: /dynamic/VOTE_chart.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: Cannot create bean of class update.VoteBean
         at _0002fVOTE_0005fchart_0002ejspVOTE_0005fchart_jsp_6._jspService(_0002fVOTE_0005fchart_0002ejspVOTE_0005fchart_jsp_6.java:71)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
         at org.apache.tomcat.core.Handler.service(Handler.java:286)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
         at java.lang.Thread.run(Thread.java:484)
    This tells my sod all what's actually wrong - I've tried renaming the jsp, I've tried renaming and recompiling the bean but that didn't help either (yes I redirected towards page to the new bean).
    No-one here has a clue what the hell has gone wrong with this - especially cos I have at least 15 other beans in exactly the same place and they all work fine.
    If you wish I'll post the code of the relevant jsp here.
    Any suggestions?

    most of this is irrelevent but you should be able to find what you need
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta Http-Equiv="Cache-Control" Content="no-cache">
    <meta Http-Equiv="Pragma" Content="no-cache">
    <script language="JavaScript">
    <!--
    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v3.0
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    </head>
    <body bgcolor="#000066" onLoad="MM_preloadImages('images/previousOver.jpg','images/backOver.jpg')" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <jsp:useBean id="myBean" class= "update.VoteBean" scope="page" /> <jsp:setProperty name="myBean" property="*" />
    <%
    if (!myBean.isDone())
    {%>
    <form method="post">
    <table width="422" border="0" cellspacing="0" cellpadding="0" align="center" height="225">
    <tr>
    <td colspan="3" height="32"><img src="images/vote.jpg" width="480" height="42"></td>
    </tr>
    <tr bgcolor="#000066">
    <td colspan="3" height="32">
    <div align="left"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">previous
    results </font></b></div>
    </td>
    </tr>
    <tr>
    <td colspan="3" height="69">
    <div align="center"><img name="Image9" border="0" src="images/previous.jpg" width="160" height="23"></div>
    </td>
    </tr>
    <tr>
    <td colspan="3" height="32"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">this
    months vote</font></b></td>
    </tr>
    <tr>
    <td colspan="3" height="54">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="2" color="ffcc00"><%=myBean.getQuestion()%>
    </font></div>
    </td>
    </tr>
    </table>
    <table width="474" border="0" cellspacing="1" cellpadding="1" align="center" height="68">
    <tr>
    <td width="206">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="ONE">
    <%=myBean.getOption1()%></font> </div>
    </td>
    <% double thisVote=Double.parseDouble(myBean.getVotes1());
              double overall=myBean.getTotalVotes();
              double ans=(thisVote/overall)*100*3;
                   int intAns=(int)Math.round(ans);
              %>
    <td width="253"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="TWO">
    <%=myBean.getOption2()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes2());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253" height="2"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="THREE">
    <%=myBean.getOption3()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes3());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253" height="2"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="FOUR">
    <%=myBean.getOption4()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes4());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253" height="2"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    <tr>
    <td width="206" height="2">
    <div align="left"> <font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF">
    <input type="radio" name="radiobutton" value="FIVE">
    <%=myBean.getOption5()%></font> </div>
    </td>
    <% thisVote=Double.parseDouble(myBean.getVotes5());
              overall=myBean.getTotalVotes();
              ans=(thisVote/overall)*100*3;
                   intAns=(int)Math.round(ans);
              %>
    <td width="253"><font face="Arial, Helvetica, sans-serif" size="1" color="#FFFFFF"><img src="images/bar_white.jpg" width="<%=intAns%>" height="10">
    <%=intAns/3%>%</font> </td>
    </tr>
    </table>
    <p align="center">
    <input type="submit" name="Submit" value="Cast a Vote">
    </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    <p align="center"> </p>
    </form>
    <%
    else
    myBean.setDone(false);
    String done=myBean.checkVote();
    if (done.equals("OK"))
    System.out.println("OK");
    %>
    <table width="424" border="0" cellspacing="0" cellpadding="0" align="center" height="103">
    <tr bgcolor="#000066">
    <td height="43" colspan="2"><img src="images/vote.jpg" width="480" height="42"></td>
    </tr>
    <tr bgcolor="#000066">
    <td height="43" colspan="2">
    <div align="left"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">complete
    </font></b></div>
    </td>
    </tr>
    </table>
    <table width="463" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td width="327"><font face="Arial, Helvetica, sans-serif" size="1" color="#ffcc00">Thank
    you for voting. Your vote will be instantly added to the calculations.</font></td>
    <td width="109"> </td>
    </tr>
    </table>
    <table width="461" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td height="53">
    <div align="center"> <img name="Image10" border="0" src="images/back.jpg" width="160" height="23"></div>
    </td>
    </tr>
    <tr>
    <td height="397"> </td>
    </tr>
    </table>
    <%}else{
    System.out.println("Not equal or fell over");%>
    <table width="454" border="0" cellspacing="0" cellpadding="0" align="center" height="103">
    <tr bgcolor="#000066">
    <td height="43" colspan="2"><img src="images/vote.jpg" width="480" height="42"></td>
    </tr>
    <tr bgcolor="#000066">
    <td height="43" colspan="2">
    <div align="left"><b><font face="Arial, Helvetica, sans-serif" size="4" color="#cc0033">sorry
    </font></b></div>
    </td>
    </tr>
    </table>
    <table width="469" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td width="327"><font face="Arial, Helvetica, sans-serif" size="1" color="#ffcc00">There
    has been a problem casting your vote. Please try again later.</font></td>
    <td width="115"> </td>
    </tr>
    </table>
    <table width="467" border="0" cellspacing="3" cellpadding="4" align="center">
    <tr>
    <td height="37">
    <div align="center"> <img name="Image101" border="0" src="images/back.jpg" width="160" height="23">
    </div>
    </td>
    </tr>
    <tr>
    <td height="560"> </td>
    </tr>
    </table>
    <%}
    %>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    </body>
    </html>

  • Javax.servlet.ServletException: Cannot create bean of class

    People,
    HELP!! I am getting desperate!!!
    I am a newbie when it comes to TOMCAT, but i have been using Blazix before.
    My current system is using APACHE/TOMCAT on a Solaris machine and I keep hitting the same problem. I have gone through the archives but the only thing it states is to check the directory which i have done.
    I keep getting:
    Error 500
    Internal Error
    javax.servlet.ServletException: Cannot create bean of class MyClass
    The code used to work on the Blazix server so i am assuming it is something to do with a config parameter somewhere - but i do not know where. I have checked the directory/package structure and they seem to work. It even serves it when they are html pages not jsp, but obviously wont use the bean. :(
    I can post code if necessary.
    Please help
    Steve

    The FormData.class file is in examples/WEB-INF/classes/ directory.
    Is this wrong? then should it be in a package called examples.steve???
    <TITLE> Poc </TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <META NAME="Generator" CONTENT="Mozilla/4.61 [en] (WinNT; I) [Netscape]">
    <META NAME="Author" CONTENT="Steve Brodie">
    <META NAME="Proof of Concept order entry system" CONTENT="">
    <META NAME="PROOF OF CONCEPT ORDER ENTRY SYSTEM " CONTENT="">
    </HEAD>
    <%@ page import="steve.FormData" %>
    <jsp:useBean id="user" class="steve.FormData"/>
    <jsp:setProperty name="user" property="*"/>
    <FORM METHOD=POST ACTION="SaveDetails.jsp">
    <CENTER>
    <H1>     
    POC CNS demo <BR>
    POC Order Entry System <BR></H1>
    <H2><CENTER>PROOF OF CONCEPT ORDER ENTRY SYSTEM <BR>
    in order to illustrate the use of an new product<BR></H1>
    </CENTER>
    <BODY>
    Please enter the following details: <BR>
    Second name <INPUT TYPE=TEXT NAME=secondName SIZE=20><BR>
    First name <INPUT TYPE=TEXT NAME=firstName SIZE=20><BR>
    Address <INPUT TYPE=TEXT NAME=address1 SIZE=20><BR>
    Address <INPUT TYPE=TEXT NAME=address2 SIZE=20><BR>
    Post Code <INPUT TYPE=TEXT NAME=postCode SIZE=10><BR>
    Phone NO. <INPUT TYPE=TEXT NAME=phone SIZE=10><BR>
    <BR>
    Credit Card<INPUT TYPE=TEXT NAME=credit SIZE=15><BR>
    <BR>
    Quality of Service:
    <SELECT TYPE=TEXT NAME="QoS">
    <OPTION SELECTED TYPE=TEXT NAME=Gold>Gold <BR>
    <OPTION TYPE=TEXT NAME=Silver>Silver <BR>
    <OPTION TYPE=TEXT NAME=Bronze>Bronze <BR>
    </SELECT>
    <BR>
    <BR>
    <INPUT TYPE=RESET>
    <P><INPUT TYPE=SUBMIT>
    <BR>
    <BR>
    <IMG SRC=../images/Cisco.gif>
    </FORM>
    </BODY>
    </HTML>
    package steve;
    * @author Steven Brodie
    * @date
    * @version 0.0
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class FormData {
         String secondName = null;
         String firstName = null;
         String address1 = null;
         String address2 = null;
         String postCode = null;
         int credit = 0;
         int phone = 0;
         String qos = null;
         String file = "out";
         String filex = "xout";
         PrintWriter pout = null;
         PrintWriter xout = null;
         FormData() {
              try {
                   pout = new PrintWriter(new BufferedWriter(new FileWriter(file + ".txt")));
                   xout = new PrintWriter(new BufferedWriter(new FileWriter(filex + ".xml")));
              xout.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
              xout.println("<OrderEntry xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"");
              xout.println("xsi:noNamespaceSchemaLocation=\"http://machine2.com:8080/xml/xsd/OrderEntry.xsd\">");
              } catch (IOException ioe) {
                   System.err.println("DataFileWriter error ioe on init");
                   ioe.printStackTrace();
                   System.exit(1);
    public void setFirstName( String value ) {
    firstName = value;
              System.out.println(firstName);
              pout.println(firstName);
              xout.println("<firstname value= \"" + firstName + "\"/>");
    public void setSecondName( String value ) {
    secondName = value;
              System.out.println(secondName);
              pout.println(secondName);
              xout.println("<secondname value= \"" + secondName + "\"/>");
    public void setAddress1( String value ) {
    address1 = value;
              System.out.println(address1);
         pout.println(address1);
              xout.println("<address1 value= \"" + address1 + "\"/>");
    public void setAddress2( String value ) {
    address2 = value;
              System.out.println(address2);
              pout.println(address2);
              xout.println("<address2 value= \"" + address2 + "\"/>");
    public void setPostCode( String value ) {
    postCode = value;
              System.out.println(postCode);
              pout.println(postCode);
              xout.println("<postCode value= \"" + postCode + "\"/>");
    public void setCredit( int value ) {
    credit = value;
              System.out.println(credit);
              pout.println(credit);
              xout.println("<creditCard value= \"" + credit + "\"/>");
         public void setPhone( int value) {
              phone = value;
              System.out.println("0" + phone);
              pout.println("0" + phone);
              xout.println("<phoneNo value= \"0" + phone + "\"/>");
    public void setQoS( String value ) {
    qos = value;
              System.out.println(qos);
              pout.println(qos);
              xout.println("<QoS value= \"" + qos + "\"/>");
              xout.println("</OrderEntry>");
              pout.flush();
              pout.close();
              xout.flush();
              xout.close();
    public String getFirstName() {
              return firstName;
    public String getSecondName() {
              return secondName;
    public String getAddress1() {
              return address1;
    public String getAddress2() {
              return address2;
    public String getPostCode() {
              return postCode;
    public int getCredit() {
              return credit;
         public int getPhone() {
              return phone;
         public String getQoS() {
              return qos;

  • Cannot create registered control.

    I am trying to see how the activex bridge works. Anyway I have a simple (no gui) bean called PersonBean. I have jar'd it up and it works fine in beanbox. Then I packaged it up (calling it ActivePerson for the control name) and let it register the control. When I tried to use the control from VBA in Word like this...
    Set myPerson = CreateObject("JavaPerson.Bean")
    but this gives me a 'Run-time error '429' ActiveX Component cannot create object'
    So i decided to test with ActiveX Control Container a tool from MS and part of Visual C++ 6. When I tried to add the control it gives me an error saying "Failed to create control: unspecified error" (which is oh so helpful an error message...)
    So I am stuck. Could anyone point me in the direction of what might be wrong.
    In case it helps I am pasting below an extract from my registry of what was added for the control. The paths all seem ok to me.
    REGEDIT4
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}]
    @="JavaPerson Bean Control"
    "AppID"="{724CFE50-604A-11D5-A195-0050BA8CF492}"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\Control]
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\DataFormats]
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\DataFormats\GetSet]
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\DataFormats\GetSet\0]
    @="2,1,16,1"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\DataFormats\GetSet\1]
    @="3,1,32,1"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\DataFormats\GetSet\2]
    @="14,1,64,1"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\DataFormats\GetSet\3]
    @="1,1,1,1"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\DefaultIcon]
    @="C:\\Program Files\\JavaSoft\\JRE\\1.3.0_01\\classes\\awt.ico"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\InprocServer32]
    @="C:\\Program Files\\JavaSoft\\JRE\\1.3.0_01\\classes\\bin\\beans.ocx"
    "ThreadingModel"="Apartment"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\Insertable]
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\InterfaceClass]
    @="sun/beans/ole/OleBeanInterface"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\JarFileName]
    @="G:\\activex\\PersonBean.jar"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\JavaClass]
    @="PersonBean"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\MiscStatus]
    @="0"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\MiscStatus\1]
    @="3473"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\ProgID]
    @="JavaPerson.Bean.1"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\Programmable]
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\ToolboxBitmap32]
    @="C:\\Program Files\\JavaSoft\\JRE\\1.3.0_01\\classes\\bin\\beans.ocx,0"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\TypeLib]
    @="{724CFE51-604A-11D5-A195-0050BA8CF492}"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\verb]
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\verb\-1]
    @="Show,0,0"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\verb\-2]
    @="Open,0,0"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\verb\-3]
    @="Hide,0,1"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\verb\0]
    @="&Edit,0,2"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\Version]
    @="1.0"
    [HKEY_CLASSES_ROOT\CLSID\{724CFE50-604A-11D5-A195-0050BA8CF492}\VersionIndependentProgID]
    @="JavaPerson.Bean"

    please do not post any more answers on here. i fixed my problem already. thanks to everyone who did post but the problem was with the runtime or the packager or something anyway here...
    http://forum.java.sun.com/thread.jsp?forum=40&thread=157223
    you can see what i did to fix my first problem and also my workaround for memory exceptions when working with ms-office

  • Cannot Create Datasource through Java Application

    Hi All,
    I tried to create a datasource through my Java application
    JDBCDescriptor jdbcDescriptor = new JDBCDescriptor();
              jdbcDescriptor.setDataSourceName("ds_venky");
              jdbcDescriptor.setDriverClassName("org.gjt.mm.mysql.Driver");
              jdbcDescriptor.setDriverName("mysql");
              jdbcDescriptor.setInitConnections(2);
              jdbcDescriptor.setMaxConnections(10);
              jdbcDescriptor.setPassword("xxxx");
              jdbcDescriptor.setURL("jdbc:mysql://172.22.76.8:3306/wise");
              jdbcDescriptor.setUsername("xxxx");
    Properties ctxProp = new Properties();
                   ctxProp.put(
                        Context.INITIAL_CONTEXT_FACTORY,
                        "com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   ctxProp.put(Context.PROVIDER_URL, "myServerName:50004");
                   ctxProp.put(Context.SECURITY_PRINCIPAL, "xxxx");
                   ctxProp.put(Context.SECURITY_CREDENTIALS, "xxxx");
                   InitialContext context = new InitialContext(ctxProp);
                   DataSourceManager dsm =
                        (DataSourceManager) context.lookup("dbpool");
                   dsm.createDataSource("ds_venky", jdbcDescriptor);
    But i get the following exception
    1.5#000F20FEA14B0053000000000000107800041D9052026725#1158405595218#System.err#sap.com/DataSourceSAPEAR#System.err#Guest#2#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###0#
    #1.5#000F20FEA14B0053000000010000107800041D905202B73E#1158405595234#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###1#
    #1.5#000F20FEA14B0053000000020000107800041D905202D985#1158405595249#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###2#
    #1.5#000F20FEA14B0053000000040000107800041D905205BA71#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###java.io.FileNotFoundException: .
    temp
    deploy
    1158405595421 (The system cannot find the file specified)#
    #1.5#000F20FEA14B0053000000050000107800041D905205BD49#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at java.io.FileInputStream.open(Native Method)#
    #1.5#000F20FEA14B0053000000060000107800041D905205BDD6#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at java.io.FileInputStream.<init>(FileInputStream.java:106)#
    #1.5#000F20FEA14B0053000000070000107800041D905205BE3C#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.uploadSAPPropertiesFile(DeployUtilTransaction.java:493)#
    #1.5#000F20FEA14B0053000000080000107800041D905205BEA4#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.uploadSpecialEARFiles(DeployUtilTransaction.java:480)#
    #1.5#000F20FEA14B0053000000090000107800041D905205BF0B#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:320)#
    #1.5#000F20FEA14B00530000000A0000107800041D905205BF74#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:296)#
    #1.5#000F20FEA14B00530000000B0000107800041D905205BFD8#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:304)#
    #1.5#000F20FEA14B00530000000C0000107800041D905205C03E#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:335)#
    #1.5#000F20FEA14B00530000000D0000107800041D905205C0A5#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3008)#
    #1.5#000F20FEA14B00530000000E0000107800041D905205C109#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:520)#
    #1.5#000F20FEA14B00530000000F0000107800041D905205C16C#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:253)#
    #1.5#000F20FEA14B0053000000100000107800041D905205C1E2#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.createDataSource(DataSourceManagerImpl.java:317)#
    #1.5#000F20FEA14B0053000000110000107800041D905205C248#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.dbpool.deploy.DataSourceManager_Stub.createDataSource(DataSourceManager_Stub.java:504)#
    #1.5#000F20FEA14B0053000000120000107800041D905205C2AC#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.CreateDataSource.<init>(CreateDataSource.java:50)#
    #1.5#000F20FEA14B0053000000130000107800041D905205C30D#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at jsp_Create1158405589640._jspService(jsp_Create1158405589640.java:11)#
    #1.5#000F20FEA14B0053000000140000107800041D905205C36F#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:467)#
    #1.5#000F20FEA14B0053000000150000107800041D905205C3D3#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:181)#
    #1.5#000F20FEA14B0053000000160000107800041D905205C436#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#
    #1.5#000F20FEA14B0053000000170000107800041D905205C498#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)#
    #1.5#000F20FEA14B0053000000180000107800041D905205C4F9#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)#
    #1.5#000F20FEA14B0053000000190000107800041D905205C55A#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:337)#
    #1.5#000F20FEA14B00530000001A0000107800041D905205C5BB#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:315)#
    #1.5#000F20FEA14B00530000001B0000107800041D905205C61E#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:815)#
    #1.5#000F20FEA14B00530000001C0000107800041D905205C67F#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:238)#
    #1.5#000F20FEA14B00530000001D0000107800041D905205C6E1#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)#
    #1.5#000F20FEA14B00530000001E0000107800041D905205C751#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)#
    #1.5#000F20FEA14B00530000001F0000107800041D905205C7B8#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)#
    #1.5#000F20FEA14B0053000000200000107800041D905205C81C#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)#
    #1.5#000F20FEA14B0053000000210000107800041D905205C87F#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)#
    #1.5#000F20FEA14B0053000000220000107800041D905205C8DE#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at java.security.AccessController.doPrivileged(Native Method)#
    #1.5#000F20FEA14B0053000000230000107800041D905205C940#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)#
    #1.5#000F20FEA14B0053000000240000107800041D905205C9A1#1158405595437#System.err#sap.com/DataSourceSAPEAR#System.err#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:151)#
    #1.5#000F20FEA14B0053000000280000107800041D90520A54F1#1158405595734#com.sap.engine.services.dbpool.deploy.ContainerImpl#sap.com/DataSourceSAPEAR#com.sap.engine.services.dbpool.deploy.ContainerImpl#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error##Plain###ContainerImpl.startDataSources(): Cannot create DataSource: ds_venky. Reason: java.lang.ArrayIndexOutOfBoundsException: -1#
    #1.5#000F20FEA14B00530000002A0000107800041D90520A9B54#1158405595749#com.sap.engine.services.deploy#sap.com/DataSourceSAPEAR#com.sap.engine.services.deploy#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error#1#/System/Server#Java#deploy_5029##Exception in operation startApp with application sap.com/ds_venky.#2#startApp#sap.com/ds_venky#
    #1.5#000F20FEA14B00530000002B0000107800041D90520A9FA9#1158405595749#com.sap.engine.services.deploy#sap.com/DataSourceSAPEAR#com.sap.engine.services.deploy#Administrator#191#####SAPEngine_Application_Thread[impl:3]_8##0#0#Error#1#/System/Audit#Java###Exception #1#com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Exception in operation startApp with application sap.com/ds_venky.
    Any kind of help will be appreciated

    Hi,
    I have found the solution for this thread and have posted a blog on how to create data sources. Please find the link below
    /people/venkatesh.ramachandran/blog/2006/10/19/how-to-create-and-remove-data-source-on-sap-was-j2ee-engine-dynamically-through-java
    Regards,
    Venkatesh

  • Cannot create the RTP Session

    we have made multithread rtp streaming server and tried to transmit the mpg file in a applet on a web page using tom-cat server.
    we got the following error...
    Cannot create the RTP Session: Local Data AddressDoes not belong to any of this hosts local interfaces
    Failed to initialize the sessions.
    java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkExit(Unknown Source)
         at java.lang.Runtime.exit(Unknown Source)
         at java.lang.System.exit(Unknown Source)
         at Receive.start(MyPlayer.java:90)
         at MyPlayer.start(MyPlayer.java:30)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    I am really surprised that no one has answer for my query?????

  • Cannot create bean of class...using TOMCAT 3.1

    my root is: "notwww.ucsd.edu/somesub/"
    my beans are in .../WEB-INF/classes/aseBeans/
    the error msg:
    Error: 500
    Location: /studentaffairs/aseAppValidate.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: Cannot create bean of class aseBeans.AseApplicationBean
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
         at _0002faseAppValidate_0002ejspaseAppValidate_jsp_0._jspService(_0002faseAppValidate_0002ejspaseAppValidate_jsp_0.java:138)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Thread.java:496)
    Root cause:
    javax.servlet.ServletException: Cannot create bean of class aseBeans.AseApplicationBean
         at _0002faseAppValidate_0002ejspaseAppValidate_jsp_0._jspService(_0002faseAppValidate_0002ejspaseAppValidate_jsp_0.java:71)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Thread.java:496)
    I think I have all the necessary elements:
    package aseBeans;
    pickled my beans
    <jsp:useBean id="app" scope="session" class="aseBeans.AseApplicationBean" >
    <jsp:setProperty.../>
    </jsp:useBean>
    MANIFEST.MF was created, are the name/attribute pairs necessary?
    Name: AseApplicationBean.class
    Java-Bean: true
    THANK YOU

    hubertn I modified the jsp file and the bean: here's the code:<!--
    Copyright (c) 1999 The Apache Software Foundation. All rights
    reserved.
    Number Guess Game
    Written by Jason Hunter, CTO, K&A Software
    http://www.servlets.com
    -->
    <%@ page import = "num.NumberGuessBean" %>
    <jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/>
    <jsp:setProperty name="numguess" property="*"/>
    <html>
    <head><title>Number Guess</title></head>
    <body bgcolor="white">
    <font size=4>
    <% if (numguess.getSuccess()) { %>
    Congratulations! You got it.
    And after just <%= numguess.getNumGuesses() %> tries.<p>
    <% numguess.reset(); %>
    Care to try again?
    <% } else if (numguess.getNumGuesses() == 0) { %>
    Welcome to the Number Guess game.<p>
    Play with default limits ( a number between 0 and 100)<p>
    or enter upper and lower limits.<p>
    <form method=get>
    Play with defaults?: <input type=radio name=default value="yes">Yes
    <input type=radio name=default value="no">No
    </form>
    <% if (numguess.getRadio().equals("no")) { %>
    <form method=get>
    Enter upper limit:<input type=text name=upperLimit>
    Enter lower limit:<input type=text name=lowerLimit>
    </form>
    <% numguess.reset(); %>
    <% } %>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } else { %>
    Good guess, but nope. Try <b><%= numguess.getHint() %></b>.
    You have made <%= numguess.getNumGuesses() %> guesses.<p>
    I'm thinking of a number between <jsp:getProperty name="numguess" property="lowerLimit"/> and <jsp:getProperty name="numguess" property="upperLimit"/>.<p>
    <form method=get>
    What's your guess? <input type=text name=guess>
    <input type=submit value="Submit">
    </form>
    <% } %>
    </font>
    </body>
    </html>
    and the bean:
    * Originally written by Jason Hunter, http://www.servlets.com.
    package num;
    import java.util.*;
    public class NumberGuessBean {
    int answer;
    boolean success;
    String hint;
    int numGuesses;
    String radiochoice;
    int lowerLimit=0;
    int upperLimit=100;
    String error;
    public NumberGuessBean() {
    reset();
    public void setGuess(String guess) {
    numGuesses++;
    int g;
    try {
    g = Integer.parseInt(guess);
    catch (NumberFormatException e) {
    g = -1;
    if (g == answer) {
    success = true;
    else if (g == -1) {
    hint = "a number next time";
    else if (g < answer) {
    hint = "higher";
    else if (g > answer) {
    hint = "lower";
    public void setRadio(String s) {
         radiochoice=s;
    public String getRadio() {
         return radiochoice;
    public void setLowerLimit( int lowerLimit) {
         this.lowerLimit=lowerLimit;
    public int getLowerLimit() {
         return lowerLimit;
    public void setUpperLimit(int upperLimit) {
         this.upperLimit=upperLimit;
    public int getUpperLimit() {
         return upperLimit;
    public boolean getSuccess() {
    return success;
    public String getHint() {
    return "" + hint;
    public String getError() {
         return ""+error;
    public int getNumGuesses() {
    return numGuesses;
    public void reset() {
         if (getRadio().equals("yes")) {
              answer = (int)(Math.random()*100);
         else {
              int i;
              i=(int)(Math.random()*upperLimit);
              if (i<lowerLimit) {
                   i=i+lowerLimit;
              answer=i;
         success = false;
    numGuesses = 0;
    }

Maybe you are looking for

  • My Apple TV is connected to my wifi but it says I am not connected to the internet. How do I connect it to the internet?

    My Apple TV is connected to wifi. However it says I am not connected to the internet. How do I fix this.

  • Help on installing struts.

    hi i have downloaded struts2.0.11 .i am having problem to understand step by step process. any one can help me .show good note how its installed ,configured. Thank u.

  • D'oh! - Font not embedded in *live* iOS App.

    Hello everyone, Yay! Our first digital Magazine is live. L+L MAG App We have put a lot of work into it. Check it out But now I want to cry Because of this... What's wrong? The font (http://www.fontshop.com/fontlist/super_families/ff_din/) in one sect

  • Swipe movie controls?

    Okay I really need some help. I am working with Air for Android (CS6) and have built out a motion comic as a movie, with stops on Key Frames. The movie is fine, but I am havng trouble with the swipe controls. I need it to right swipe, go to next fram

  • Best photo transfer?

    What's the best way to transfer photos and other files from a laptop to an iPad?  Preferably keeping folders as well as individual files......