Can't Create Bean Error

I modified the numguess example that comes with tomcat but I get a "can't create bean" error message when I call my jsp file. If anyone can see what I'm doing wrong or suggest ways to discover the problem I'd appreciate it.
My modified jsp:
<!--
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 modified bean:
* ====================================================================
* The Apache Software License, Version 1.1
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowlegement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowlegement may appear in the software itself,
* if and wherever such third-party acknowlegements normally appear.
* 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact [email protected].
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
* 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;

implement synchronizable and createa constructor, then check it once again.

Similar Messages

  • How can we create the error log in a ABAP program

    Hi all,
    How can we create the error log in a ABAP program
    Thanks,
    srinivas.

    Hi,
    Refer to FM's in the Function Group SBAL. For a change most of the FM's have been well documented. Also have a look at the DEMO pgms. Se38---->SBALDEMO & F4.
    Regards
    Raju Chitale

  • Can not create directory error while creating database

    i am creating database using dbca in oel but when i try to do so i get an error saying can not create directory pawii
    and pawii is the sid
    actually oracle is installed on u01 and i am creating database in u02
    but this error is not allowing me to create database but when i try to create database in uo1 the database installed successfully but this is not happening when i try to create database in another mount point u02

    987018 wrote:
    so finally i had solved the problem myself as people like rukbat are very unhelpful in nature here
    all we had to do is we had to change the group of the folder to oracle and oinstall where we are going to create our new database :)Actually he tries to be quite helpful. But sometimes the help you need isn't the help you want.
    "When you need me but do not want me, then I must stay. When you want me but no longer need me, then I have to go." (Nanny McPhee)

  • Can I create custom error message

    I need to tell the user "NO listeners on GPIB::0:11 address, make sure instrument is connected". How do I use the Simple Error Handler to tell the user this. The error handler spits out error code 1073807265 when this does occur.

    Hello,
    I believe Dennis' last note probably meant that he would not recommend editing the -errors.txt file to remove the code. In your case, I think the best solution is to, as you suggest, unbundle the error cluster and programmatically deal with it by launching a dialog box with your comment. You can do this using the One Button Dialog function found in the Time & Dialog pallete.
    Repost if you continue to have trouble!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Runtime Error '429': ActiveX component can't create object

    Hi,
    I am using below code in vb6 application but this is throwing an "Runtime Error '429': ActiveX component can't create object" error.
    CreateObject("OracleInProcServer.XoraSession")
    is that due to any dll or reference error ?
    I have an Oracle client installed on my PC
    please share your solution
    Thanks in advance

    Are either of those 64 bit? If so, your problem is likely related to that.
    A 64 bit Oracle client doesn't support OO4O at all, so this code will never work with that client. You need to use a 32 bit one.
    If you are using a 32 bit client but on a 64 bit OS, I've found the 11.2.03 installer doesn't properly register the files. Manually registering OraOleDB11.dll may fix it, though we had to do some other registry stuff and it got very ugly. Backing up to a slightly older client should also fix the problem.

  • Can I create a BI Beans compliant cube using OWB?

    Can I create a cube that I can browse using BI beans through OWB 9.0.4 or are there additional steps that I need to take using other tools such as Enterprise manager?
    Are there any known incompatibilities between OWB 9.0.4 and BI beans 9.03.1.?
    I will also pose this question in the BI Beans forum.
    Thanks for any replies.
    Cor

    Hi,
    I am trying to build an Analytic workspace using OWB (9.0.4.8) Transfer Brigde and I got the similar error.
    None of the view/mv sqls are generated and the analytic workspace was not created either.
    FYI.
    **! Transfer logging started at Wed May 14 18:07:41 EDT 2003 !**
    OWB Bridge processed arguments
    Default local= en_US
    Exporting project:OM_SAMPLE
    initializing project:OM_SAMPLE
    Initializing module :WH
    Exporting cube:SALES
    Exporting dimension:CHANNELS
    Exporting dimension:COUNTRIES
    Exporting dimension:CUSTOMERS
    Exporting dimension:PRODUCTS
    Exporting mappings
    Exporting table:CHANNELS
    Exporting table:COUNTRIES
    Exporting table:CUSTOMERS
    Exporting table:PRODUCTS
    Exporting table:SALES
    Exporting datatypes
    Exporting project OM_SAMPLE complete.
    setting parameter: olapimp.deploytoaw = Y
    setting parameter: olapimp.awname = OWBTARDEMO
    setting parameter: olapimp.awobjprefix = OWBTAR_
    setting parameter: olapimp.awuser =
    setting parameter: olapimp.createviews = Y
    setting parameter: olapimp.viewprefix = OWBTAR_
    setting parameter: olapimp.viewaccesstype = OLAP
    setting parameter: olapimp.creatematviews = Y
    setting parameter: olapimp.viewscriptdir = /opt/oracle
    setting parameter: olapimp.deploy = N
    setting parameter: olapimp.username = OLAPSYS
    setting parameter: olapimp.password = manager
    setting parameter: olapimp.host = 10.215.79.139
    setting parameter: olapimp.port = 1521
    setting parameter: olapimp.sid = INDEXDB
    setting parameter: olapimp.inputfilename = C:\TEMP\bridges\null-nullMy_Metadata_Transfer1052950061353.XMI
    setting parameter: olapimp.outputfilename = C:\Panneer\owbtardemo.sql
    Loading Metadata
    Loading XMI input file
    processing dim: CHANNELS
    processing level: CHANNELin dimension CHANNELS
    processing level attribute use: CHL_ID in level CHANNEL for level attribute ID
    processing level attribute : ID in level CHANNEL
    processing level attribute use: CHL_LLABEL in level CHANNEL for level attribute LLABEL
    processing level attribute : LLABEL in level CHANNEL
    processing level attribute use: CHL_SLABEL in level CHANNEL for level attribute SLABEL
    processing level attribute : SLABEL in level CHANNEL
    processing level: CLASSin dimension CHANNELS
    processing level attribute use: CLS_ID in level CLASS for level attribute ID
    processing level attribute : ID in level CLASS
    processing level attribute use: CLS_LLABEL in level CLASS for level attribute LLABEL
    processing level attribute : LLABEL in level CLASS
    processing level attribute use: CLS_SLABEL in level CLASS for level attribute SLABEL
    processing level attribute : SLABEL in level CLASS
    processing hierarchy: CHANNEL_HIERARCHY in dimension CHANNELS
    processing dim: COUNTRIES
    processing level: REGIONin dimension COUNTRIES
    processing level attribute use: RGN_ID in level REGION for level attribute ID
    processing level attribute : ID in level REGION
    processing level attribute use: RGN_LLABEL in level REGION for level attribute LLABEL
    processing level attribute : LLABEL in level REGION
    processing level attribute use: RGN_SLABEL in level REGION for level attribute SLABEL
    processing level attribute : SLABEL in level REGION
    processing level: COUNTRYin dimension COUNTRIES
    processing level attribute use: CTY_ID in level COUNTRY for level attribute ID
    processing level attribute : ID in level COUNTRY
    processing level attribute use: CTY_LLABEL in level COUNTRY for level attribute LLABEL
    processing level attribute : LLABEL in level COUNTRY
    processing level attribute use: CTY_SLABEL in level COUNTRY for level attribute SLABEL
    processing level attribute : SLABEL in level COUNTRY
    processing hierarchy: COUNTRY_HIERARCHY in dimension COUNTRIES
    processing dim: CUSTOMERS
    processing level: CUSTOMERin dimension CUSTOMERS
    processing level attribute use: CTR_CREDIT_LIMIT in level CUSTOMER for level attribute CREDIT_LIMIT
    processing level attribute : CREDIT_LIMIT in level CUSTOMER
    processing level attribute use: CTR_EMAIL in level CUSTOMER for level attribute EMAIL
    processing level attribute : EMAIL in level CUSTOMER
    processing level attribute use: CTR_ID in level CUSTOMER for level attribute ID
    processing level attribute : ID in level CUSTOMER
    processing level attribute use: CTR_NAME in level CUSTOMER for level attribute NAME
    processing level attribute : NAME in level CUSTOMER
    processing dim: PRODUCTS
    processing level: PRODUCTin dimension PRODUCTS
    processing level attribute use: PDT_DESCRIPTION in level PRODUCT for level attribute DESCRIPTION
    processing level attribute : DESCRIPTION in level PRODUCT
    processing level attribute use: PDT_ID in level PRODUCT for level attribute ID
    processing level attribute : ID in level PRODUCT
    processing level attribute use: PDT_LIST_PRICE in level PRODUCT for level attribute LIST_PRICE
    processing level attribute : LIST_PRICE in level PRODUCT
    processing level attribute use: PDT_MIN_PRICE in level PRODUCT for level attribute MIN_PRICE
    processing level attribute : MIN_PRICE in level PRODUCT
    processing level attribute use: PDT_NAME in level PRODUCT for level attribute NAME
    processing level attribute : NAME in level PRODUCT
    processing level: CATEGORYin dimension PRODUCTS
    processing level attribute use: CTY_ID in level CATEGORY for level attribute ID
    processing level attribute : ID in level CATEGORY
    processing level attribute use: CTY_LLABEL in level CATEGORY for level attribute LLABEL
    processing level attribute : LLABEL in level CATEGORY
    processing level attribute use: CTY_SLABEL in level CATEGORY for level attribute SLABEL
    processing level attribute : SLABEL in level CATEGORY
    processing hierarchy: PRODUCT_HIERARCHY in dimension PRODUCTS
    processing cube: SALES
    processing classification type is := Warehouse Builder Business Area
    processing catalog name := SALESCOLLECTION ,and description is := null
    processing catalog entry element name := SALES
    processing Cube
    processing catalog entity cube := SALES
    processing measure := COSTS , in a cube := SALES
    processing measure := SALES , in a cube := SALES
    processing catalog entry element name := CHANNELS
    processing catalog entry element name := COUNTRIES
    processing catalog entry element name := CUSTOMERS
    processing catalog entry element name := PRODUCTS
    processing catalog entry element name := CHANNELS
    Class Name CHANNELS is TableImpl@405ffd not supported
    processing catalog entry element name := COUNTRIES
    Class Name COUNTRIES is TableImpl@5e1b8a not supported
    processing catalog entry element name := CUSTOMERS
    Class Name CUSTOMERS is TableImpl@6232b5 not supported
    processing catalog entry element name := PRODUCTS
    Class Name PRODUCTS is TableImpl@6f144c not supported
    processing catalog entry element name := SALES
    Class Name SALES is TableImpl@14013 not supported
    processing classification type is := Dimensional Attribute Descriptor
    Classification type Dimensional Attribute Descriptor is not supported
    closing output file
    closing log stream
    **! Transfer process 2 of 2 completed with status = 0 !**
    **! Transfer logging stopped at Wed May 14 18:07:47 EDT 2003 !**
    But when I ran the "select * from dba_registry" everything seems to be valid.
    CATALOG     Oracle9i Catalog Views     9.2.0.2.0     VALID     24-APR-2003 09:39:24     SYS     SYS     DBMS_REGISTRY_SYS.VALIDATE_CATALOG
    CATPROC     Oracle9i Packages and Types     9.2.0.2.0     VALID     24-APR-2003 09:39:24     SYS     SYS     DBMS_REGISTRY_SYS.VALIDATE_CATPROC
    OWM     Oracle Workspace Manager     9.2.0.1.0     VALID     24-APR-2003 09:39:27     SYS     WMSYS     OWM_VALIDATE
    JAVAVM     JServer JAVA Virtual Machine     9.2.0.2.0     VALID     23-APR-2003 22:19:09     SYS     SYS     [NULL]
    XML     Oracle XDK for Java     9.2.0.2.0     VALID     24-APR-2003 09:39:32     SYS     SYS     XMLVALIDATE
    CATJAVA     Oracle9i Java Packages     9.2.0.2.0     VALID     24-APR-2003 09:39:32     SYS     SYS     DBMS_REGISTRY_SYS.VALIDATE_CATJAVA
    ORDIM     Oracle interMedia     9.2.0.2.0     LOADED     23-APR-2003 23:16:42     SYS     SYS     [NULL]
    SDO     Spatial     9.2.0.2.0     LOADED     23-APR-2003 23:17:06     SYS     MDSYS     [NULL]
    CONTEXT     Oracle Text     9.2.0.2.0     VALID     23-APR-2003 23:17:26     SYS     SYS     [NULL]
    XDB     Oracle XML Database     9.2.0.2.0     VALID     24-APR-2003 09:39:39     SYS     XDB     DBMS_REGXDB.VALIDATEXDB
    WK     Oracle Ultra Search     9.2.0.2.0     VALID     24-APR-2003 09:39:42     SYS     WKSYS     WK_UTIL.VALID
    OLS     Oracle Label Security     9.2.0.2.0     VALID     24-APR-2003 09:39:43     SYS     LBACSYS     LBAC_UTL.VALIDATE
    ODM     Oracle Data Mining     9.2.0.1.0     LOADED     12-MAY-2002 17:59:03     SYS     ODM     [NULL]
    APS     OLAP Analytic Workspace     9.2.0.2.0     LOADED     23-APR-2003 22:49:51     SYS     SYS     [NULL]
    XOQ     Oracle OLAP API     9.2.0.2.0     LOADED     23-APR-2003 22:51:49     SYS     SYS     [NULL]
    AMD     OLAP Catalog     9.2.0.2.0     VALID     02-MAY-2003 15:00:13     SYS     OLAPSYS     CWM2_OLAP_INSTALLER.VALIDATE_CWM2_INSTALL
    Your help is appreciated!
    Thanks
    Panneer

  • 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

  • Error creating bean with name 'org.springframework.dao.annotation.Persisten

    Hello
    I am using Hibernate 4, Spring 3 , JSF 2.0 and Weblogic 10.3.6
    When I start weblogic server and server starts successfully, however whenever it starts publishing application, I am getting the following exception.
    Error creating bean with name
    'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0'
      defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
      Initialization of bean failed; nested exception is
      org.springframework.beans.factory.BeanCreationException:
        Caused By: org.springframework.beans.factory.BeanCreationException: Error creating
       bean with name 'entityManagerFactory'defined in ServletContext resource
       [/WEB-INF/applicationContext.xml]: Invocation of init method failed;
       nested exception is java.lang.NoSuchMethodError:
       javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/
       SharedCacheMode;
    Caused By: java.lang.NoSuchMethodError:
    javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()
    Ljavax/persistence /SharedCacheMode;    at
    org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:38)  at
    org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:525)
    at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)     at  org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManager I have the following in applicationContext.xml
    <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
        xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/tx
    http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.0.xsd">     
        <context:component-scan base-package="net.test" />
        <!-- Data Source Declaration -->
        <bean id="DataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"
            destroy-method="close">
            <property name="driverClass" value="oracle.jdbc" />
            <property name="jdbcUrl" value="jdbc:oracle:thin:@server:1521:DB" />
            <property name="user" value="scott" />
            <property name="password" value="tiger" />
            <property name="maxPoolSize" value="10" />
            <property name="maxStatements" value="0" />
            <property name="minPoolSize" value="5" />
        </bean>
        <bean
            class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor" />
        <!-- JPA Entity Manager Factory -->
        <bean id="entityManagerFactory"
            class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
            <property name="dataSource" ref="DataSource" />
            <property name="packagesToScan" value="net.test.entity" />
            <property name="jpaVendorAdapter">
                <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
                    <property name="showSql" value="true" />
                    <property name="generateDdl" value="false" />
                    <property name="databasePlatform" value="${jdbc.dialectClass}" />
                </bean>
            </property>
        </bean>
        <bean id="defaultLobHandler" class="org.springframework.jdbc.support.lob.DefaultLobHandler" />
        <!-- Session Factory Declaration -->
        <bean id="SessionFactory"
            class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
            <property name="dataSource" ref="DataSource" />
            <property name="annotatedClasses">
                <list>
                    <value>net.test.entity.Department</value>
                    <value>net.test.entity.Employees</value>
                </list>
            </property>
            <property name="hibernateProperties">
                <props>
                    <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop>
                    <prop key="hibernate.show_sql">true</prop>
                    <prop key="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory
                    </prop>
                </props>
            </property>
        </bean>
        <!-- Enable the configuration of transactional behavior based on annotations -->
        <tx:annotation-driven transaction-manager="txManager" />
        <tx:annotation-driven transaction-manager="transactionManager" />
        <!-- Transaction Config -->
        <bean id="txManager"
            class="org.springframework.orm.hibernate4.HibernateTransactionManager">
            <property name="sessionFactory" ref="SessionFactory" />
        </bean>
        <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
            <property name="entityManagerFactory" ref="entityManagerFactory" />
        </bean>
        <context:annotation-config />   
        <bean id="hibernateStatisticsMBean" class="org.hibernate.jmx.StatisticsService">
            <property name="statisticsEnabled" value="true" />
            <property name="sessionFactory" value="#{entityManagerFactory.sessionFactory}" />
        </bean>
        <bean name="ehCacheManagerMBean"
            class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" />
        <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
            <property name="locateExistingServerIfPossible" value="true" />
        </bean>   
        <bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter"
            lazy-init="false">
            <property name="server" ref="mbeanServer" />
            <property name="registrationBehaviorName" value="REGISTRATION_REPLACE_EXISTING" />
            <property name="beans">
                <map>
                    <entry key="SpringBeans:name=hibernateStatisticsMBean"
                        value-ref="hibernateStatisticsMBean" />
                    <entry key="SpringBeans:name=ehCacheManagerMBean" value-ref="ehCacheManagerMBean" />
                </map>
            </property>
        </bean>
    </beans>
    pom.xml
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
              http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>net.test</groupId>
        <artifactId>myappp</artifactId>
        <packaging>war</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>myappp</name>
        <url>http://maven.apache.org</url>
        <repositories>
            <repository>
                <id>prime-repo</id>
                <name>PrimeFaces Maven Repository</name>
                <url>http://repository.primefaces.org</url>
                <layout>default</layout>
            </repository>
        </repositories>
        <properties>
            <spring.version>3.1.1.RELEASE</spring.version>
        </properties>
        <dependencies>
            <!-- Spring 3 dependencies -->
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-tx</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-orm</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-test</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <!-- JSF library -->
            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-api</artifactId>
                <version>2.1.6</version>
            </dependency>
            <dependency>
                <groupId>com.sun.faces</groupId>
                <artifactId>jsf-impl</artifactId>
                <version>2.1.6</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>jstl</artifactId>
                <version>1.2</version>
            </dependency>
            <!-- Primefaces library -->
            <dependency>
                <groupId>org.primefaces</groupId>
                <artifactId>primefaces</artifactId>
                <version>3.4.2</version>
            </dependency>
            <dependency>
                <groupId>org.primefaces.themes</groupId>
                <artifactId>afterwork</artifactId>
                <version>1.0.8</version>
            </dependency>
            <!-- Hibernate library -->
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-core</artifactId>
                <version>4.1.0.Final</version>
            </dependency>
            <dependency>
                <groupId>javassist</groupId>
                <artifactId>javassist</artifactId>
                <version>3.12.1.GA</version>
            </dependency>
            <dependency>
                <groupId>javax.inject</groupId>
                <artifactId>javax.inject</artifactId>
                <version>1</version>
            </dependency>
            <!-- Oracle Java Connector library -->
            <dependency>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc6</artifactId>
                <version>11.2.0.3</version>
            </dependency>
            <dependency>
                <groupId>c3p0</groupId>
                <artifactId>c3p0</artifactId>
                <version>0.9.1.2</version>
            </dependency>
            <!-- Log4j library -->
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.16</version>
            </dependency>
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>6.4</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-jpamodelgen</artifactId>
                <version>1.2.0.Final</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-entitymanager</artifactId>
                <version>4.1.0.Final</version>
            </dependency>
            <dependency>
                <groupId>org.hibernate.javax.persistence</groupId>
                <artifactId>hibernate-jpa-2.0-api</artifactId>
                <version>1.0.1.Final</version>
            </dependency>
            <dependency>
        <groupId>org.apache.myfaces.extensions.cdi.core</groupId>
        <artifactId>myfaces-extcdi-core-api</artifactId>
        <version>1.0.5</version>
        <scope>compile</scope>
    </dependency>
            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-ehcache</artifactId>
                <version>4.0.1.Final</version>
            </dependency>      
        </dependencies>
        <build>
            <resources>
                <resource>
                    <directory>src/main/resources</directory>
                </resource>
            </resources>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>             
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                        <compilerArgument>-proc:none</compilerArgument>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.bsc.maven</groupId>
                    <artifactId>maven-processor-plugin</artifactId>
                    <version>2.0.6</version>
                    <executions>
                        <execution>
                            <id>process</id>
                            <goals>
                                <goal>process</goal>
                            </goals>
                            <phase>generate-sources</phase>
                            <configuration>
                                <!-- source output directory -->
                                <outputDirectory>target/metamodel</outputDirectory>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    </project>In Weblogic 10.3.6 I have enabled JPA2 support by adding the following in commEnv.cmd
    @rem Enable JPA 2.0 functionality on WebLogic Server
    set PRE_CLASSPATH=%BEA_HOME%\modules\javax.persistence_1.1.0.0_2-0.jar;
    %BEA_HOME%\modules\com.oracle.jpa2support_1.0.0.0_2-1.jarApplication which works on WLS 10.3.6 is http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_dev.zip and the one which is not working is
    http://download.oracle.com/otn/nt/middleware/11g/wls/1036/wls1036_win32.exe.
    How can I resolve these errors and exceptions? Any help is highly appreciable.
    Thanks

    Looks like you might have a spelling error in your spring config, or are trying to set a read-only property. BdasInterfaceManagerImpl has been configured as having a method called setBdasInterfaceJdbcDao() : does it?
    By the way, we now know that you're writing code for JP Morgan - there's a slight risk that this could bite you in the @ss at some point (there are some malicious people around) you might want to take that into consideration next time!

  • Urgent,I can deploy a bean on websphere in windows;but an error occur in un

    urgent,I can deploy a bean on websphere in windows;but an error occur in unix.
    [Servlet Error]-[presentation]: Failed to load servlet: java.lang.LinkageError: LinkageError while defining class: com.s1.ccb.messaging.MessagingServlet
    Could not be defined due to: com/s1/ccb/messaging/MessagingServlet (Illegal constant pool type)
    This is often caused by having a class defined at multiple
    locations within the classloader hierarchy. Other potential causes
    include compiling against an older or newer version of the class
    that has an incompatible method signature.
    Dumping the current context classloader hierarchy:
    ==> indicates defining classloader
    the java version in unix and windows is the same.

    Hello FJasmine, no, it is not related the firefox update with that.
    see : [http://answers.microsoft.com/en-us/windows/forum/windows_7-files/cant-create-anymore-new-folders-in-windows-7/721a9129-c800-4224-8779-805dd6dfb80e Can't create anymore New Folders in Windows 7]
    [http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/97de8a2a-12f2-4381-a409-a78f4ae551cf/ Cannot create new folder in Windows 7]
    thank you

  • Error creating bean

    Hi All ,
    I wants to migrate project from IBM Web shpere to eclipse 3.0,Tomcat 4.1 (database ms sql)while doing so i m getting following problem.
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
    can anybody help me in this regards.........!

    Looks like you might have a spelling error in your spring config, or are trying to set a read-only property. BdasInterfaceManagerImpl has been configured as having a method called setBdasInterfaceJdbcDao() : does it?
    By the way, we now know that you're writing code for JP Morgan - there's a slight risk that this could bite you in the @ss at some point (there are some malicious people around) you might want to take that into consideration next time!

  • Cannot create CMP bean, Error: "Werent current caller"

    Hi,
    I generated a CMP entity ejbean with JDeveloper and deployed it. I can use that bean with a client and retrieve a specific instance using the home interface's findByPrimaryKey() method.
    But I can not create a new bean using the home interface's create( long newPrimKey) method. The following error occures only if the specified newPrimKey is not occupied yet. If I use an occupied key, I get an expectable "javax.ejb.DuplicateKeyException"...
    java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
         at Person_EntityBeanWrapper11.setEntityBean(Person_EntityBeanWrapper11.java:5404)
         at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
         at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
         at PersonHome_EntityHomeWrapper13.create(PersonHome_EntityHomeWrapper13.java:542)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         de.fiscus.sfs.cmp.Person __Proxy0.create(long)
         void SamplePersonClient1.main(java.lang.String[])
    Any idea?? I'm really stuck with this!
    Thank you.
    CU, Chris

    Chris,
    The problem is that both clients and EJBs are in the same server and you are using RMIInitialContextFactory. You have to use default context and package this client in the same EAR. Please look at http://otn.oracle.com/sample_code/tech/java/oc4j/htdocs/oc4jsamplecode/oc4j-demo-ejb.html#CMP for samples. Also some EJB/client sample programs are packaged with Oc4J disand you can find at $IAS_HOME/j2ee/home/demo/cmp distribution ctory.
    However the client program should work fine if your client and EJBs are running on different Oc4J containers.
    regards
    Debu
    Hi Debu,
    the client is a java application. Here is the code:
    [...in main method...]
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://CHRISTIANE/statful");
    Context ctx = new InitialContext(env);
    PersonHome personHome = (PersonHome)ctx.lookup("Person");
    Person person;
    person = personHome.create( 14261026 );
    CU, Chris

  • Error creating bean with name 'rbacxSchedulerService'

    Hi
    I am installing Oralce Identity Analytics and this with an error in the log posted below. Someone could help me. Thank you
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexGlobalUserGlobalUserUpdateAdvisor' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot create inner bean 'com.vaau.rbacx.search.aop.IndexAdvise#1ba7ab0' of type [com.vaau.rbacx.search.aop.IndexAdvise] while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.search.aop.IndexAdvise#1ba7ab0' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot resolve reference to bean 'ftSearchProvider' while setting bean property 'searchProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ftSearchProvider' defined in ServletContext resource [WEB-INF/search-context.xml]: Cannot resolve reference to bean 'rbacxSchedulerService' while setting bean property 'rbacxSchedulerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxSchedulerService' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'vaauSchedulerManager' while setting bean property 'vaauSchedulerManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vaauSchedulerManager' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'quartzSchedulerProvider' while setting bean property 'schedulerProvider'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerProvider' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot resolve reference to bean 'quartzSchedulerFactoryBean' while setting bean property 'quartzScheduler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerFactoryBean' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Cannot create inner bean 'quartzSchedulerFactoryBeanTarget' of type [org.springframework.scheduling.quartz.SchedulerFactoryBean] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzSchedulerFactoryBeanTarget' defined in ServletContext resource [WEB-INF/scheduling-context.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'springNonTxDataSource.quartzSchedulerFactoryBeanTarget': java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource [See nested exception: java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource]]
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

    Hi,
    Yes - I changed the password in Oracle DB admin console and jdbc.properties but I still get the same error: ORA-01017.
    The only thing I can think of is that I did not run the encryption java script but to be honest I can't think what diffence this would make.
    Any other suggestions guys?
    Oh the error has now changed slightly
    15:00:54,797 ERROR [ContextLoader] Context initialization failed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'certificationEventListener' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIDCService' while setting bean property 'rbacxIDCService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIDCService' defined in ServletContext resource [WEB-INF/idc-context.xml]: Cannot resolve reference to bean 'rbacxIAMService' while setting bean property 'rbacxIAMService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rbacxIAMService' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot create inner bean 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#2d09aa' of type [com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.vaau.rbacx.iam.service.impl.RbacxIAMServiceImpl#2d09aa' defined in ServletContext resource [WEB-INF/iam-context.xml]: Cannot resolve reference to bean 'oimSolution' while setting bean property 'iamSolutions' with key [TypedStringValue: value [oracle], target type [null]]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'oimSolution' is defined
    have checked these files and nothing stands out as being wrong.
    Edited by: user8380428 on 09-Dec-2011 07:09

  • Crystal Server 2013: How to troubleshoot "Can not create temp file---- Error code:-2147215357"

    We have a Java7 web app, which generate PDF report by calling Crystal Server 2013 SP4.
    The app is being deployed on many different servers. We sometimes got the error below when generating report:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.controllerExportInternal(PrintOutputController.java:280)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:152)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:130)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(PrintOutputController.java:113)
    Problem is, this seems to be  a pretty generic exception. It could be caused by many different reasons.
    e.g. network connection problem, wrong DB login, wrong folder path, lack of folder access right, etc.
    Each time we could only guess what's wrong.
    We are running into it again, and this time everything seems correctly configured so far.
    We wonder if there are more info we can get to troubleshoot? For example, any log file of Crystal Server we should look into? Or does Crystal Server has debug mode which prints more details to tell us what goes wrong?

    Prithviraj Shekhawat wrote:
    Hi Henry,
    I believe you are using RAS SDKs to export the reports to PDF.
    Apply trace on RAS server and check what you find in RAS logs.
    Check whether you can see timeout error is RAS logs. Usually if connection is lost and the RAS server no more have the session to write to the temp directory, we do see these errors.
    Also, does the account that runs RAS have permissions to create a file in RAS's default temp directory? Are you getting any out of memory or out of disk space exceptions on App server or RAS, tracing RAS server is the way to move forward.
    Thanks,
    Prithvi
    >>I believe you are using RAS SDKs to export the reports to PDF.
    Yes
    >>Apply trace on RAS server and check what you find in RAS logs.
    >>Check whether you can see timeout error is RAS logs.
    How to configure tracing, and where are RAS logs? Is it configured in CMC --> Servers --> Crystal Report Services?
    >>Also, does the account that runs RAS have permissions to create
    >>a file in RAS's default temp directory?
    Pretty sure yes.
    >> Are you getting any out of memory or out of disk space exceptions
    >>on App server or RAS, tracing RAS server is the way to move forward.
    Not on App server.
    For RAS, that's the problem, I am not sure where to look.......

  • JMStudio Error  "Can not create session manager"

    Hi,
    I'm trying to transmit an mpg file through a simple pc to pc network, using the transmission wizard in the JMStudio, and everytime it causes a "can not create session manager" error, even when I try to transmit .mp3 file
    I'm using an ip like 100.100.0.1 for the sender machine, and 100.100.0.2 for the receiver machine, and I don't know where is the problem
    thanks in advance

    Um,maybe the port that you use for transmission is already occupied.
    Make sure that you are not using JMStudio to transmit streams while trying to receive streams from the same port.

  • Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal

    Hello,
    While exporting Export reporting from BI4 getting exception
    Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal
    In Trace Log I am getting
    com.crystaldecisions.xml.serialization.XMLWriter||Failed to create an object instance for CrystalReports.TextObjectFormat
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key CrystalReports.TextObjectFormat
      at java.util.ResourceBundle.getObject(ResourceBundle.java:374)
      at java.util.ResourceBundle.getString(ResourceBundle.java:334)
    I tried following solution according to the all forums but still issue exist.
    Done changes mention in KB article In <Installation-dir-of-BO>\Common\4.0\java\CRConfig.XML we have to increase the JAVA heap MIN and Max size
              <JVMMaxHeap>64000000</JVMMaxHeap>          <JVMMinHeap>32000000</JVMMinHeap>
    Increase the value in the ReportApplicationServer Services in the CMC for "Number of database records to read when previewing or refreshing a report". The value -1 is for unlimited records but not recommended for performance.
    Check for temporary read write permission on server
    Using SDK library from C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib
    Can you please let me know is there anything missing.

    Hi,
    We face the same problem with some BI4 reports.
    The same report works well with the "Crystal Reports Viewers API", as used in Infoview, but not with the "Report Application Server (RAS) API".
    This error appears after some time working on a report. If we reproduce the same report, but from zero, no problem.
    Hope it can help.
    Ludovic.

Maybe you are looking for

  • AboutToUpdate and UpdateAllQuery

    We have extended DescriptorEventAdaptor to use the aboutToUpdate method for auditing fields. That works fine. When an UpdateAllQuery is executed on an object I would expect the aboutToUpdate to add the auditing fields in the update statement too, spe

  • Photoshop elements 13 - RAM Probleme

    Ich habe Upgrade von Photoshop elements 11 auf 13 gemacht. Leider kann ich nun nicht mehr als 4 Fotos (RAW à 30MB) öffnen. Fehlermeldung "zu wenig Arbeitsspeicher RAM" vorhanden. Habe versucht mit den Voreinstellungen in Photoshop etwas zu erreichen

  • TextEdit Table Alignment Align on baseline

    Can anyone explain the "Align on baseline" choice in the Table palette? I understand what a baseline is, but can't get text in a table to look any different between "Align top" and "Align on baseline", even after playing with fonts of different size

  • Flash 8 - trying to export as Quicktime

    Hi - I am trying to export a flash movie as a qucktime file .mov - I am working in Flash 8 - when I go to export it says "The version selected in the Flash settings is not supported by QuickTime. Please se the Flash version in the publish setting to

  • EIM / WIM 4.3.2 Agent Bulk Import UCCE

    When one runs the integration wizard all the agents in UCCE are also imported. The thing is that we can only run the wizard once. So every time I add agents to UCCE and want them to use EIM / WIM  I have to manually map them. It there a way to do thi