Error caracter no valido

porque cada ves que intento conectarme en mi pc a icloud no puedo y me sale el mensaje de ICLOUD se ha bloqueado inesperadamente, Y EN DETALLES  SALE ERROR CARACTER NO VALIDO.

Hola.
Tal vez se modificó o eliminó algún dato de las direciones en el Maestro de Socios de Negocios (SN) después de haber creado un documento con ese SN y luego se intentó crear otro documento o el pago.
- Revisa que estén completos los datos del SN en la pestaña Direcciones.
- Intenta seleccionar otra dirección en la pestaña "Logística" del documento base/destino.
- También puede intentar agregar otra dirección en la pestaña direcciones del maestro de SN.
Por favor leer la NOTA SAP 848152  Invalid payment to name.
Saludos.

Similar Messages

  • Error pago no valido a nombre en pagos efectuados

    Estimados buenas tardes,
    Les escribo esta vez, para que que me colaboren con lo siguiente:
    Al realizar un pago e intentar grabarlo sale el siguiente error: "No se pudo grabar, Pago no válido a nombre".
    Gracias por su colaboracion
    Anthony

    Hola.
    Tal vez se modificó o eliminó algún dato de las direciones en el Maestro de Socios de Negocios (SN) después de haber creado un documento con ese SN y luego se intentó crear otro documento o el pago.
    - Revisa que estén completos los datos del SN en la pestaña Direcciones.
    - Intenta seleccionar otra dirección en la pestaña "Logística" del documento base/destino.
    - También puede intentar agregar otra dirección en la pestaña direcciones del maestro de SN.
    Por favor leer la NOTA SAP 848152  Invalid payment to name.
    Saludos.

  • Error BO XI 3.1 on IIS

    i have two different errors using infoview interface of BO XI 3.1 running only on IIS (no tomcat), both about schedule options of a report:
    1) selecting recurrence I obtain always the error attached; I bypass the problem selecting english interface onstead of italian on "Preferred Viewing Locale" properties.
    2) selectiong formats and destination -> any checkbox (output format and output format details) I always obtain this js error:
    Linea:  711
    Carattere:  3
    Errore:  Argomento non valido.
    Codice:  0
    URL:  http://bo///AnalyticalReporting/PlatformActions/DeskI_Destination/FullClientDestinationFormatAction.aspx?cafWebSesInit=true&objIds=1735&appKind=InfoView&service=%2fInfoViewApp%2fcommon%2fappService.aspx&loc=en&pvl=en-US&containerId=1712&pref=maxOpageU%3d10%3bmaxOpageUt%3d200%3bmaxOpageC%3d10%3btz%3d46004%3bmUnit%3dinch%3bshowFilters%3dTrue%3bsmtpFrom%3dTrue%3b&ctx=singlepage&deltaId=2755&actId=436
    and I can't continue. I have to cancel the schedule operation.
    I also install FIXPACK 1.5 with no results.
    Thanks in advance

    It'll be better if this issue is fully investigated thru Support Incident. Please login to SMP and log one.

  • CREATE JAVA

    hi everybody... I REALLY NEED YOUR HELP... I'm developing a stored procedure... which needs to call some JAVA resources... I HAVE LOADED THIS RESOURCES USING the sentence "CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED.................." and executing it in the SQL CONSOLE... but... I've got problems when the SQL reads java sentences... and it seems that they were recognized as SQL SINTAXIS... for example the character "&" and the caracter "equals" that are the same in JAVA and ORACLE... this is the code......
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED VERIFICADORSINTACTICO AS
    public class VerificadorSintactico{
    private static String[] operandos={"1","2","3","4","5","6","7","8","9","0"};
    private static String[] operadores={"+","-","*","/","(",")"};
    private static int operandosLength=10;
    private static int operadoresLength=6;
    public boolean finDeTermino=false;
    public String lastError=null;
    public String expresion;
    public VerificadorSintactico(String str){
    if(str.equals(""))
    expresion="1";
    else{
    expresion=cambiaVariables(str);
    quitaEspacios();
    private void quitaEspacios(){
    String sinEspacios="";
    for(int i = 0; i < expresion.length(); i++){
    if(expresion.charAt(i) != ' ')
    sinEspacios += expresion.charAt(i);
    expresion=sinEspacios;
    sinEspacios=null;
    public static boolean isOperando(String cmp){
    int i,j=0,puntos=0;
    boolean bandera=true;
    String aux;
    if(cmp==null)
    bandera=false;
    else{
    if(cmp.substring(j,j +1).equals("-")){
    cmp=cmp.substring(j+1,cmp.length());
    if(cmp.length()==0)
    bandera=false;
    while(bandera && j<cmp.length()){
    bandera=false; aux=cmp.substring(j,j+1);
    i=0;
    while(!bandera && i<operandosLength){
    if(operandos.equals(aux))
    bandera=true;
    else{
    if(aux.equals(".") && puntos<1){
    bandera=true; puntos++;
    else
    i++;
    j++;
    return bandera;
    public static boolean isOperador(String cmp){
    int i=0;
    while(i<operadoresLength){
    if(operadores[i].equals(cmp))
    return true;
    else
    i++;
    return false;
    private String nextOperando(int index){
    int i=index;
    while(i<expresion.length()){
    if(isOperador(expresion.substring(i,i+1)))
    return expresion.substring(index,i);
    else
    i++;
    finDeTermino=true;
    return expresion.substring(index,expresion.length());
    private int nextOperador(int index){
    int i=index;
    while(i<expresion.length()){
    if(isOperador(expresion.substring(i,i+1)))
    return i;
    else
    i++;
    return -1;
    public Pila buildPila(){
    int h=0; String aux=""; int g;
    boolean numeroNegativo=false;
    Pila pila=new Pila();
    if(expresion==null | expresion.equals(""))
    finDeTermino=true;
    else
    aux=expresion.substring(h,h+1);
    while(!finDeTermino){
    if(isOperador(aux)){
    if(numeroNegativo){
    pila.push("-"); numeroNegativo=false;
    if(pila.size()==0 && aux.equals("-"))
    numeroNegativo=true;
    else
    pila.push(aux);
    h++;
    if(h<expresion.length()){
    aux=expresion.substring(h,h+1);
    if(aux.equals("-")){
    h++;
    if(h<expresion.length()){
    numeroNegativo=true;
    aux=expresion.substring(h,h+1);
    else{
    pila.push(aux);
    finDeTermino=true;
    }else
    finDeTermino=true;
    else{
    aux=nextOperando(h);
    if(numeroNegativo){
    numeroNegativo=false;
    aux="-"+aux;
    pila.push(aux);
    h=nextOperador(h);
    if(h!=-1)
    aux=expresion.substring(h,h+1);
    else
    finDeTermino=true;
    if(numeroNegativo) pila.push("-");
    return pila;
    private boolean checkParentesis(Pila p){
    int abren=0,cierran=0;
    String aux;
    int limit=p.size();
    while(!p.isEmpty()){
    aux=(String)p.getElement();
    if(aux.equals("("))
    abren++;
    if(aux.equals(")"))
    cierran++;
    if(abren==cierran)
    return true;
    else
    return false;
    public boolean isValido(Pila pila){
    Pila pilaAux=pila.copy(); boolean valido=true;;
    if(checkParentesis(pilaAux)){
    String operador,op,aux;
    final String OPERANDO="1";
    pila=pila.eliminaCoincidencias(")");
    pila=pila.eliminaCoincidencias("(");
    while(valido & pila.size()>1){
    pila.print();
    aux=(String)pila.getElement();
    if(isOperando(aux)){
    aux=(String)pila.getElement();
    if(isOperador(aux)){
    aux=(String)pila.getElement();
    if(isOperando(aux))
    pila.push(OPERANDO);
    else{
    lastError="Se esperaba un operando pero se encontro ["+aux+"].";
    valido=false;
    else{
    lastError="Se esperaba un operador pero se encontro ["+aux+"].";
    valido=false;
    else{
    lastError="Se esperaba un operando pero se encontro ["+aux+"].";
    valido=false;
    if(valido){
    aux=(String)pila.getElement();
    if(isOperando(aux)){
    valido=true;
    else{
    lastError="Existe un error de sintaxis";
    valido=false;
    else{
    lastError="Existe un error de sintaxis";
    valido=false;
    return valido;
    private String cambiaMultiplica(String formula){
    String devolver="";
    for(int i=0;i<formula.length();i++){
    if(formula.substring(i,i+1).equals("x"))
    devolver+="*";
    else
    devolver+=formula.substring(i,i+1);
    return devolver;
    public String cambiaVariables(String formulaGuardar){
    boolean bandera;
    if(!formulaGuardar.equals("")){
    bandera=true;
    formulaGuardar=cambiaMultiplica(formulaGuardar);
    int index=formulaGuardar.length()-1;
    String formula="";
    String auxiliar="";
    char evaluar;
    while(bandera && index>=0){
    evaluar=formulaGuardar.charAt(index);
    if(evaluar==']'){
    while(evaluar!='['){
    index--;
    evaluar=formulaGuardar.charAt(index);
    auxiliar=auxiliar+"1";
    }else
    auxiliar=auxiliar+evaluar;
    index--;
    index=auxiliar.length();
    while(--index>=0)
    formula+=auxiliar.charAt(index);
    return formula;
    else
    return "";
    and THESE ARE DE ERROR MESSAGES......
    Introduzca un valor para j: 1
    antiguo 43: while(bandera && j<cmp.length()){
    nuevo 43: while(bandera 1<cmp.length()){
    Introduzca un valor para i: 1
    antiguo 46: while(!bandera && i<operandosLength){
    nuevo 46: while(!bandera 1<operandosLength){
    Introduzca un valor para puntos: 1
    antiguo 50: if(aux.equals(".") && puntos<1){
    nuevo 50: if(aux.equals(".") 1<1){
    Introduzca un valor para aux: 1
    antiguo 109: if(pila.size()==0 && aux.equals("-"))
    nuevo 109: if(pila.size()==0 1equals("-"))
    Introduzca un valor para pila: 1
    antiguo 172: while(valido & pila.size()>1){
    nuevo 172: while(valido 1size()>1){
    Introduzca un valor para index: 1
    antiguo 236: while(bandera && index>=0){
    nuevo 236: while(bandera 1>=0){
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED VERIFICADORSINTACTICO AS
    ERROR en línea 1:
    ORA-29536: origen especificado incorrectamente: Encountered "1" at line 4
    column 15.
    Was expecting one of:
    "instanceof" ...
    ">" ...
    "<" ...
    "==" ...
    "<=" ...
    ">=" ...
    "!=" ...
    "||" ...
    "++" ...
    "+" ...
    "|" ...
    "^" ...
    "<<" ...
    ">>" ...
    ">>>" ...
    "=" ...
    "*=" ...
    "/=" ...
    "%=" ...
    "+=" ...
    "-=" ...
    "<<=" ...
    ">>=" ...
    ">>>=" ...
    "&=" ...
    "^=" ...
    "|=" ...
    THANKS TO ANYBODY THAT CAN HELP ME

    Hi,
    We can load java class using blob column, for example :
    create or replace and compile java class using blob select code from java_code;If class is OK, but resolution of referenced names to other classes failed, statement.execute() will not show any error and we need to 'select from user_errors' view for errors. How can we got the required object name for loaded class?

  • Crystal Report: ERROR - Some parameters are missing values

              mine report it possesses a single parameter ....
              this is the example of like tries of to change the value set up in the report...
              ERROR: Some parameters are missing values
              thanks help...
              EXAMPLE:
              <%@ page import="com.crystaldecisions.report.web.viewer.*"%>
              <%@ page import="com.crystaldecisions.report.htmlrender.*"%>
              <%@ page import="com.crystaldecisions.reports.reportengineinterface.*"%>
              <%@ page import="com.crystaldecisions.sdk.occa.report.reportsource.*"%>
              <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
              <%@ page import="com.crystaldecisions.common.keycode.*"%>
              <%@ page import="java.util.*"%>
              <%
              try {
              IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
              String report = "report/ReportParametro1.rpt";
              IReportSource reportSource = (IReportSource) rptSrcFactory.createReportSource(report,
              request.getLocale());
              Fields fields = new Fields();
              ParameterField pfield1 = new ParameterField();
              Values vals1 = new Values();
              ParameterFieldDiscreteValue pfieldDV1 = new ParameterFieldDiscreteValue();
              pfield1.setName("CICCIA");
              pfieldDV1.setValue("SELECT descrizione, validoDa, validoA FROM tariffari");
              pfieldDV1.setDescription("Query Dinamica....");
              vals1.add(pfieldDV1);
              pfield1.setCurrentValues(vals1);
              fields.add(pfield1);
              CrystalReportViewer viewer = new CrystalReportViewer();
              viewer.setReportSource(reportSource);
              // layout
              viewer.setOwnPage(true);
              viewer.setBestFitPage(true);
              viewer.setHasLogo(false);
              viewer.setHasRefreshButton(true);
              // group navigation
              viewer.setHasToggleGroupTreeButton(false);
              viewer.setDisplayGroupTree(false);
              // page navigation:
              viewer.setHasGotoPageButton(false);
              // print/export
              viewer.setHasExportButton(true);
              //viewer.setPrintMode(CrPrintMode.PDF);
              viewer.setPrintMode(CrPrintMode.ACTIVEX);
              viewer.setIgnoreViewStateOnLoad(true);
              viewer.setParameterFields(fields);
              viewer.setEnableParameterPrompt(false);
              viewer.refresh();
              viewer.processHttpRequest(request, response, getServletConfig().getServletContext(),
              out);
              viewer.dispose();
              }catch(Exception e){
              out.println("Errore " + e.getMessage());
              %>
              

    I am facing the same problem. After selecting an export option (PDF/RTF), the same error message is coming up.
              Also, what needs to be done for displaying export option of EXCEL?
              Thanks,
              Farzal

  • Error while importing CSR into key storage?

    Dear All,
    I am trying to implement the SSL certificates on our production server. I have generated the CSR from Visual Admin --> Key Storage. I forwarded it to CA and got the certificate response also. Now while importing the certificate into key storage, it is giving me following error:
    The private ket pair doesnt match the certificate response file: Invalid PKCS#1 padding, no leading zeros.
    What can be the cause and probable solution on this issue? Any help on this will be highly appreciated. Kindly reply..
    Thank you,
    Ameya

    Hi,
    I resolved this error by making it sure that there are no extra spaces or unwanted caracter copied while copying the certificate response from the CA. Make sure you are copying the certificate response properly. In my case, some extra space was getting copied so after re-copyinf it properly, it worked.

  • Sequence tag error while importing the SSL certificate into ".keystore" fil

    I have created the ".keystore " file successfully and also imported the "root.cer".
    but while importing the SSL certificate it says like
    "keytool error: java.security.cert.CertificateException: IOException: Sequence ta
    g error" (I got the certificate from Verisign)
    How to resolve this Error?
    can anyone help me?
    mail to:: [email protected]
    Thanks in Advance

    Hi,
    I resolved this error by making it sure that there are no extra spaces or unwanted caracter copied while copying the certificate response from the CA. Make sure you are copying the certificate response properly. In my case, some extra space was getting copied so after re-copyinf it properly, it worked.

  • Weird error while opening oracle session

    Hello everyone,
    I testing Oracle.ManagedDataAccess 4.121.1.0 with .Net console application and powershell script. All is fine in .Net console application but in my powerhell script i have a strange issue while i trigger the open method.
    My PS script
    Add-Type -Path 'C:\oracle\Oracle.ManagedDataAccess.dll'
    $CNX = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL = TCP)(Host = MY_HOST)(Port = 1521)))(CONNECT_DATA=(SID=MY_SID)));User ID=USER$MES;Password=PWD;"  
    $con = New-Object Oracle.ManagedDataAccess.Client.OracleConnection("$CNX")
    try
        $con.open()
        "Connected to database: {0} running on host: {1} - Servicename: {2} - Serverversion: {3}" -f `
        $con.DatabaseName, $con.HostName, $con.ServiceName, $con.ServerVersion
    catch
        Write-Error ("Can't open connection: {0}`n{1}" -f $con.ConnectionString, $_.Exception.ToString())
    finally
        if ($con.State -eq 'Open') { $con.close() }
    I have the following error 
    Write-Error : Can't open connection: Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNI
    TY=tcp.world)(PROTOCOL = TCP)(Host = MY_HOST)(Port = 1521)))(CONNECT_DATA=(SID=MY_SID)));U
    ser ID=USER;Password=PWD;
    System.Management.Automation.MethodInvocationException: Exception lors de l'appel de « Open »
    avec « 0 » argument(s) : « Impossible de trouver l'assembly 'Oracle.ManagedDataAccess, Versi
    on=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342'. » ---> System.Runtime.Serial
    ization.SerializationException: Impossible de trouver l'assembly 'Oracle.ManagedDataAccess, V
    ersion=4.121.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342'.
       à OracleInternal.ConnectionPool.PoolManager`3.CreateNewPR(Int32 reqCount, Boolean bForPool
    Population, ConnectionString csWithDiffOrNewPwd, String instanceName)
       à OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boo
    lean bGetForApp, String affinityInstanceName, Boolean bForceMatch)
       à OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword,
    Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch)
       à OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM co
    nPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword)
       à Oracle.ManagedDataAccess.Client.OracleConnection.Open()
       à Open(Object , Object[] )
       à System.Management.Automation.DotNetAdapter.AuxiliaryMethodInvoke(Object target, Object[]
    arguments, MethodInformation methodInformation, Object[] originalArguments)
       --- Fin de la trace de la pile d'exception interne ---
       à System.Management.Automation.StatementListNode.ExecuteStatement(ParseTreeNode statement,
    Array input, Pipe outputPipe, ArrayList& resultList, ExecutionContext context)
       à System.Management.Automation.StatementListNode.Execute(Array input, Pipe outputPipe, Arr
    ayList& resultList, ExecutionContext context)
       à System.Management.Automation.TryStatementNode.Execute(Array input, Pipe outputPipe, Arra
    yList& resultList, ExecutionContext context)
    Au niveau de C:\\oracle\oracle.ps1 : 19 Caractère :
    20
    +         Write-Error <<<<  ("Can't open connection: {0}`n{1}" -f $con.ConnectionString, $_.E
    xception.ToString())
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.Po
       werShell.Commands.WriteErrorCommand
    Any ideas how to fix that issue?
    Thanks,
    Nicolas

    Hitesh,
    I see this error in the log ..
    =============================================
    Exception occurred: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    =============================================
    Please verify that you have proper entry in the hosts file and that your listener is up and running. Also, please verify that the database is open and no errors can be found in the database log file.
    TroubleShooting Guide For ORA-12514 TNS:listener could not resolve SERVICE_NAME given in connect descriptor [ID 444705.1]
    Thanks,
    Hussein

  • Reporting FIM2010 R2 Error

    Hello, 
    I installed SCSM for FIM reporting , i verify that the administration pack are terminated . 
    I have and error for the module:   Extract
    In the event viewer in the DW Server i have this log 
    ETL process type: Extract
     Batch ID: 581
     Module name: Extract_TypedManagedEntity_DW_FIM
     Message: Échec de la conversion de la date et/ou de l'heure à partir d'une chaîne de caractères.
    Any idea ? 

    I made a new installation for components
    But i have this error  Module name: Extract_TypedManagedEntity_DW_FIM
    Message: Échec de la conversion de la date et/ou de l'heure à partir d'une chaîne de caractères.
    The collation is the same for Service
    Manager database, data warehouse database, 
    But for Reporting
    Services database it has this collation Latin1_General_CI_AS_KS_WS
    Should i update the collation for Reproting Service DB ??

  • Strange error in SDO_ROUTER_PARTITION.PARTITION_ROUTER

    Hi,
    the statement
    exec SDO_ROUTER_PARTITION.PARTITION_ROUTER('PARTITION', 4000);
    gives the following output on Oracle 10.2.0.1.0 on Windows XP w/patch 5632711 applied.
    What can be worng? Why should the partition procedure create a file or a directory?
    Please advice, we are stuck!!
    error starting at line 1 in command:
    exec SDO_ROUTER_PARTITION.PARTITION_ROUTER('PARTITION', 4000);
    Error report:
    ORA-29280: percorso della directory non valido
    ORA-06512: a "SYS.UTL_FILE", line 33
    ORA-06512: a "SYS.UTL_FILE", line 436
    ORA-06512: a "MDSYS.SDO_ROUTER_PARTITION", line 524
    ORA-06512: a line 1
    29280. 00000 - "invalid directory path"
    *Cause:    A corresponding directory object does not exist.
    *Action:   Correct the directory object parameter, or create a corresponding
    directory object with the CREATE DIRECTORY command.
    Thanks in advance.

    Thanks a lot Steven, your hint solved the problem.
    The procedure now starts and completes, however, the final tables are empty (!)
    The operation log follows:
    Mer Feb 21 17:59:53 2007
    ******* Beginning SDO Router partitioning
    Mer Feb 21 17:59:53 2007
    INFO: create and load node_part table
    Mer Feb 21 17:59:54 2007
    INFO: cleanup partitioning temporary tables
    Mer Feb 21 17:59:54 2007
    ERROR: exception processing partition of the NEW_PARTITION table
    Mer Feb 21 17:59:54 2007
    INFO: create index np_v_idx on node_part
    Mer Feb 21 17:59:55 2007
    INFO: create and load edge_part
    Mer Feb 21 18:0:3 2007
    INFO: create index edge_part_s_idx on edge_part
    Mer Feb 21 18:0:4 2007
    INFO: create index edge_part_t_idx on edge_part
    Mer Feb 21 18:0:4 2007
    INFO: create index edge_part_st_p_idx on edge_part
    Mer Feb 21 18:0:5 2007
    INFO: create and load outedge and inedge columns in node_part table
    Mer Feb 21 18:4:44 2007
    INFO: create index node_part_p_idx on node_part
    Mer Feb 21 18:4:44 2007
    INFO: recreating node table with partitioning information
    Mer Feb 21 18:4:46 2007
    INFO: updating edge table with partitioning information
    Mer Feb 21 18:5:4 2007
    INFO: creating and loading super_node_ids table
    Mer Feb 21 18:5:5 2007
    INFO: creating and loading super_edge_ids table
    Mer Feb 21 18:5:5 2007
    INFO: creating the final partition table
    Mer Feb 21 18:5:5 2007
    INFO: create index partition_p_idx on partition table
    Mer Feb 21 18:5:5 2007
    ******* Completed SDO Router partitioning
    Is it the type of trouble you are having too?
    Antonio

  • Error Using Procedure In Sender JDBC

    Hi,
    I executed a Procedure in Informix DB to started a process. This Procedure has the following return parameters:
    RETURNING INTEGER,
                       DATETIME YEAR TO MONTH,
                       CHAR(4),
                       CHAR(10),
                       DECIMAL(5,2),
                       SMALLINT,
                       DECIMAL(5,2),
                       CHAR(1),
                       CHAR(1);
    My problem is in Inbound Message Payload that received the following error message, because it can´t use "(" as tag definition:
    A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/e046515/Configur...
      <(expression)>13813020</(expression)>
    The DBA guy said that to name the return parameter, he needs apply some Java Patch... but he can´t do this now and we don´t have time to wait for.
    Does anyone knows another way to solve this problem?
    Regards
    Leonardo

    Hi Matias,
    Whare are the data type for outbound (JDBC) and inbound (??)
    All design objects and configuration steps are done. My data type is
    Where does the <(expression)> comes from?
    That is my problem, it comes from procedure that named the fields with  (expression), and I can´t use "(" as caracter.
    Thanks
    Leonardo

  • Error method : mouseClicked();

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            at PnlSimulacion.mouseClicked(PnlSimulacion.java:816)
            at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:21
    1)
            at java.awt.Component.processMouseEvent(Component.java:5491)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
            at java.awt.Component.processEvent(Component.java:5253)
            at java.awt.Container.processEvent(Container.java:1966)
            at java.awt.Component.dispatchEventImpl(Component.java:3955)
            at java.awt.Container.dispatchEventImpl(Container.java:2024)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
            at java.awt.Container.dispatchEventImpl(Container.java:2010)
            at java.awt.Window.dispatchEventImpl(Window.java:1774)
            at java.awt.Component.dispatchEvent(Component.java:3803)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)Here is my class Simulacion:
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.Locale;
    import java.util.ArrayList;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    //import java.applet.*;
    import sun.audio.*;
    import java.io.*;
    public class PnlSimulacion extends JInternalFrame implements ActionListener,MouseListener {
         // Declaraci�n de variables
         JPanel      pnlTragam,
                   pnlTxtCredito,pnlTxtCoins,pnlTxtGanancia;
         JLabel      lblTragamonedas,
                    lblGirar, lblApostUno, lblApostMax,lblAceptar,
                    //Labels que contendr�n las im�genes de los rodillos
                    lblRod1,lblRod2,lblRod3,
                    lblGirando,
                    //arreglo de labels(para los numeros
                    lbl[]=new JLabel[10],lbl1[]=new JLabel[3],lbl2[]=new JLabel[10];
         JButton btnAceptar;
         ImageIcon     girarIn,girarOut,girarPush,apuestaMaximaIn,apuestaMaximaOut,
                        apuestaMaximaPush,apostarUnoIn,apostarUnoOut,apostarUnoPush;
         JTextArea      txtS;
         //ArrayList de imagenes     
         ArrayList<ImageIcon> arrImagenes = new ArrayList<ImageIcon>();
         //SOLO para la prueba, cambie la variable de moneda
         double moneda=50.0;
         //variable global de coins
         double coins=0;
         Timer timer;
         //cuenta cuantas veces a giado el rodillo
         int girosRod1,girosRod2,girosRod3;
         //indice de la imagen que se ve en cada rodillo
         int indRodillo1, indRodillo2, indRodillo3;
         SimpleDateFormat sdf;
    //     AudioClip sonido1,betOne,betMax,winBig; esto es para JApplets
    //     //Creacion del Imput para sonido en JFrame o aplicaciones no Applet
    //     InputStream in = new FileInputStream("Spin.wav");
    //     InputStream sonido1 = new FileInputStream("Spin.wav");
    //     InputStream betOne = new FileInputStream("BetOne.wav");
    //     InputStream betMax = new FileInputStream("BetMax.wav");
    //     InputStream winBig = new FileInputStream("WinBig.wav");
    //     InputStream csonido1 = new FileInputStream("Spin.wav");          
         //referencia al frame
         private MnuPanel m;
         public Sonido s; // <-------------------------- THIS COULD BE THE ERROR?
         // Crea la interfaz gr�fica de usuario     
         public PnlSimulacion(MnuPanel m) {
    //     AudioStream as = new AudioStream(in);
    //     AudioData data = as.getData();
    //     ContinuousAudioDataStream cas = new ContinuousAudioDataStream (data);
    //     AudioStream betOne = new AudioStream(betOne);
    //     AudioStream betMax = new AudioStream(betMax);
    //     AudioStream winBig = new AudioStream(winBig);
              getContentPane().setLayout(null);
    //          sonido1=getAudioClip(getDocumentBase(),);
    //          betOne=getAudioClip(getDocumentBase(),"BetOne.wav");
    //          betMax=getAudioClip(getDocumentBase(),"BetMax.wav");
    //          winBig=getAudioClip(getDocumentBase(),"WinBig.wav");
              Date d = new Date();
              //para fomratear adecuadamente
              //SimpleDateFormat sdf=new SimpleDateFormat("dd/MM/yy");
              sdf=new SimpleDateFormat("dd/MM/yy hh:mm:ss");
              //crea el timer, ajustarlo segun se kiera
              timer= new Timer(40,this);
              //PANEL TRAGAMONEDAS
              //Panel del tragamonedas
              pnlTragam=new JPanel();
              pnlTragam.setLayout(null);
              pnlTragam.setBounds(0,0,800,640);
              pnlTragam.setVisible(true);
              getContentPane().add(pnlTragam);
              // textArea para el ticket
              txtS=new JTextArea();
              txtS.setBounds(635,240,152,230);
              txtS.setEditable(false);
              pnlTragam.add(txtS);
              //crea un label que es el que contendr� la imag�n del simulador
              lblTragamonedas=new JLabel(
                   new ImageIcon(getClass().getResource("FondoTragamonedas.png")));
              lblTragamonedas.setBounds(0,0,800,640);
              pnlTragam.add(lblTragamonedas);
              //BOTON aceptar del ticket
              btnAceptar=new JButton(
                   new ImageIcon(getClass().getResource("aceptar.jpg")));
              btnAceptar.setBounds(682,483,72,21);                              
              btnAceptar.addActionListener(this);
              pnlTragam.add(btnAceptar);
              //imagenes de los botones para cargar
              girarIn = new ImageIcon(
                   getClass().getResource("girarIn.jpg"));
              girarOut = new ImageIcon(
                   getClass().getResource("girarOut.jpg"));
              girarPush = new ImageIcon(
                   getClass().getResource("girarPush.jpg"));
              apuestaMaximaIn = new ImageIcon(
                   getClass().getResource("apuestaMaximaIn.jpg"));
              apuestaMaximaOut = new ImageIcon(
                   getClass().getResource("apuestaMaximaOut.jpg"));
              apuestaMaximaPush = new ImageIcon(
                   getClass().getResource("apuestaMaximaPush.jpg"));
              apostarUnoIn = new ImageIcon(
                   getClass().getResource("apostarUnoIn.jpg"));
              apostarUnoOut = new ImageIcon(
                   getClass().getResource("apostarUnoOut.jpg"));
              apostarUnoPush = new ImageIcon(
                   getClass().getResource("apostarUnoPush.jpg"));
              //lblGirar
              lblGirar=new JLabel(girarOut);                              
              lblGirar.setBounds(451,517,66,42);                              
              lblGirar.addMouseListener(this);
              lblGirar.setToolTipText("presione para girar los rodillos");
              lblGirar.setCursor(new Cursor(Cursor.HAND_CURSOR));                              
              pnlTragam.add(lblGirar);
              //lbl de apuesta "uno por uno"
              lblApostUno=new JLabel(apostarUnoOut);                              
              lblApostUno.setBounds(375,518,61,41);                              
              lblApostUno.addMouseListener(this);
              lblApostUno.setCursor(new Cursor(Cursor.HAND_CURSOR));     
              lblApostUno.setToolTipText("presione para apostar solo una moneda");                                   
              pnlTragam.add(lblApostUno);
              //BOTON de apuesta "maxima" (2 soles)
              lblApostMax=new JLabel(apuestaMaximaOut);                              
              lblApostMax.setBounds(528,518,67,41);                              
              lblApostMax.addMouseListener(this);
              lblApostMax.setCursor(new Cursor(Cursor.HAND_CURSOR));
              lblApostMax.setToolTipText("presione para reaizar la maxima apuesta");                                        
              pnlTragam.add(lblApostMax);     
              //gif GIRANDO...
              lblGirando = new JLabel(new ImageIcon(
                   getClass().getResource("girando.gif")));
              lblGirando.setBounds(400,598,69,17);
              lblGirando.setVisible(false);
              lblTragamonedas.add(lblGirando);
              //PANEL MUESTRA_CREDITO
              //este es un peque�o panel que contiene imagenes de mumeros
              pnlTxtCredito=new JPanel();
              pnlTxtCredito.setLayout(null);
              pnlTxtCredito.setBounds(408,470,102,19);
              pnlTxtCredito.setVisible(true);
              lblTragamonedas.add(pnlTxtCredito);
              //PANEL MUESTRA_MONEDAS_INSERTADAS(COINS)
              //este es un peque�o panel que contiene imagenes de mumeros
              pnlTxtCoins=new JPanel();
              pnlTxtCoins.setLayout(null);
              pnlTxtCoins.setBounds(539,427,25,19);
              pnlTxtCoins.setVisible(true);
              lblTragamonedas.add(pnlTxtCoins);
              //PANEL MUESTRA_GANANCIA
              //este es un peque�o panel que contiene imagenes de mumeros
              pnlTxtGanancia=new JPanel();
              pnlTxtGanancia.setLayout(null);
              pnlTxtGanancia.setBounds(272,470,102,19);
              pnlTxtGanancia.setVisible(true);
              lblTragamonedas.add(pnlTxtGanancia);
              //labels que muestran las imagenes de los rodillos-------------
              lblRod1=new JLabel();
              lblRod1.setBounds(255,343,80,110);
              pnlTragam.add(lblRod1);
              lblRod2=new JLabel();
              lblRod2.setBounds(342,343,80,110);
              pnlTragam.add(lblRod2);
              lblRod3=new JLabel();
              lblRod3.setBounds(429,343,80,110);
              pnlTragam.add(lblRod3);
              //metodos a mostrar cuando inicia el programa
              mostrarNada();
              mostrarNada1();
              mostrarNada2();
              procesarCredito(moneda);
              cargaImagenes();
              lblRod1.setIcon(arrImagenes.get(0));
              lblRod2.setIcon(arrImagenes.get(0));
              lblRod3.setIcon(arrImagenes.get(0));
              //muestra la imagen
         // Procesa eventos de tipo ActionEvent
         public void actionPerformed( ActionEvent e ){
              //cuando el timer esta activo
              if(e.getSource()==timer){
                   //esto suceder� cada 100milisegundos
                   girar();
                   //desactiva las acciones de los Botones (labels)
                   if(e.getSource()==lblApostUno){//no hace nada
                   if(e.getSource()==lblApostMax){//no hace nada
                   if(e.getSource()==lblGirar){//no hace nada
              if(e.getSource()==btnAceptar){
                   txtS.setText("");
         }//fin de action performed
         //METODOS PROPIOS
         int aleatorio(int min,int max){
              return (int)((max-min+1)*Math.random()+min);
         //PANEL MUESTRA_CREDITO
         void procesarCredito(double numero){
              String num=numero +"0";
              limpiar();
              int pos=0;
              char caracter;
              for(int i=num.length()-1;i>=0;i--){
                   caracter=num.charAt(i);
                   if(caracter=='.'){
                        lbl[pos].setIcon(new ImageIcon(getClass().getResource(
                             "im10.jpg")));     
                        pos++;     
                   }else{
                        lbl[pos].setIcon(new ImageIcon(getClass().getResource(
                             "im"+caracter+".jpg")));
                        pos++;
              }//fin del for
         }//fin de muestraCredito
         void limpiar(){
              for(int i=0;i<10;i++){
                        lbl.setIcon(new ImageIcon(getClass().getResource(
                             "imSin.jpg")));
         void mostrarNada(){
              for(int i=0;i<2;i++){
                   lbl[i]=new JLabel(new ImageIcon(getClass().getResource(
                        "im0.jpg")));
                   lbl[i].setBounds(91-i*11,0,11,19);
                   pnlTxtCredito.add(lbl[i]);
              lbl[2]=new JLabel(new ImageIcon(getClass().getResource(
                   "im10.jpg")));//rep el punto
              lbl[2].setBounds(77,0,3,19);
              pnlTxtCredito.add(lbl[2]);
              for(int i=3;i<10;i++){
                   lbl[i]=new JLabel(new ImageIcon(getClass().getResource(
                        "imSin.jpg")));
                   lbl[i].setBounds(99-i*11,0,11,19);
                   pnlTxtCredito.add(lbl[i]);
         }//fin de mostarNada
         //MUESTRA COINS
         void procesarCoins(double numero){
              String num=""+numero;
              limpiar1();
              int pos=0;
              char caracter;
              for(int i=num.length()-1;i>=0;i--){
                   caracter=num.charAt(i);
                   if(caracter=='.'){
                        lbl1[pos].setIcon(new ImageIcon(getClass().getResource(
                             "im10.jpg")));
                        pos++;     
                   }else{
                        lbl1[pos].setIcon(new ImageIcon(getClass().getResource(
                             "im"+caracter+".jpg")));
                        pos++;
              }//fin del for
         }//fin de procesarCoins
         void limpiar1(){
              for(int i=0;i<3;i++){
                        lbl1[i].setIcon(new ImageIcon(getClass().getResource(
                             "imSin.jpg")));
         void mostrarNada1(){
              lbl1[0]=new JLabel(new ImageIcon(getClass().getResource("im0.jpg")));
              lbl1[0].setBounds(14,0,11,19);
              pnlTxtCoins.add(lbl1[0]);
              lbl1[1]=new JLabel(new ImageIcon(getClass().getResource("im10.jpg")));
              lbl1[1].setBounds(11,0,3,19);
              pnlTxtCoins.add(lbl1[1]);
              lbl1[2]=new JLabel(new ImageIcon(getClass().getResource("im0.jpg")));
              lbl1[2].setBounds(0,0,11,19);
              pnlTxtCoins.add(lbl1[2]);
         //MUESTRA_GANANCIA
         void procesarGanancia(double numero){
              String num=numero+"0";
              limpiar2();
                   int pos=0;
              char caracter;
              for(int i=num.length()-1;i>=0;i--){
                   caracter=num.charAt(i);
                   if(caracter=='.'){
                        lbl2[pos].setIcon(new ImageIcon(getClass().getResource(
                             "im10.jpg")));
                        pos++;     
                   }else{
                        lbl2[pos].setIcon(new ImageIcon(getClass().getResource(
                             "im"+caracter+".jpg")));
                        pos++;
              }//fin del for
         }//fin de procesarGanancia
         void limpiar2(){
              for(int i=0;i<10;i++){
                        lbl2[i].setIcon(new ImageIcon(getClass().getResource(
                             "imSin.jpg")));
                   }//fin de for
         void mostrarNada2(){
              for(int i=0;i<2;i++){
                   lbl2[i]=new JLabel(new ImageIcon(getClass().getResource(
                        "im0.jpg")));
                   lbl2[i].setBounds(91-i*11,0,11,19);
                   pnlTxtGanancia.add(lbl2[i]);
              lbl2[2]=new JLabel(new ImageIcon(getClass().getResource(
                   "im10.jpg")));
              lbl2[2].setBounds(77,0,3,19);
              pnlTxtGanancia.add(lbl2[2]);
              for(int i=3;i<10;i++){
                   lbl2[i]=new JLabel(new ImageIcon(getClass().getResource(
                        "imSin.jpg")));
                   lbl2[i].setBounds(99-i*11,0,11,19);
                   pnlTxtGanancia.add(lbl2[i]);
         void pasarCredito(){
              //restamos 0.50 a moneda por cada presionada de boton "Apostar Uno"
              moneda-=0.5;
              //aumentamos 0.5 a la apuesta
              coins+=0.5;
              //solo puede apostarse 2.00 como m�ximo.validamos:
              //Si la apuesta llega a 2.5
              if(coins==2.5){
                   //entonces devolvemos los 2.5 a moneda
                   moneda+=2.50;
                   //y cambiamos cois a cero
                   coins=0.0;
              }//fin de if
         }//fin de pasarCredito
         void pasarMaximoMonedas(){
              for(double i=coins;i<2.0;i+=0.5){
                   coins+=0.5;
                   moneda-=0.5;
         void girar(){
              //limpia el panel de ganancia
              procesarGanancia(0);
              //si los rodillos dejaron de girar
              if( (girosRod1+girosRod2+girosRod3)==0){
                   //detiene el timer
                   lblGirando.setVisible(false);
                   timer.stop();
    //               AudioPlayer.player.stop(sonido1);                
    //               String spin = "spin.wav";
    //          try {
    //          URL clipUrl = new URL("file:" + spin);
    //          AudioClip audioClip = Applet.newAudioClip("spin.wav");
    //          audioClip.play();
    //          Thread.currentThread().sleep(3000);
    //          } catch (Exception e) {
    //          e.printStackTrace();
                   //comprueba los resultados
                   comprovarResultados(indRodillo1,indRodillo2,indRodillo3 );
              }else{
    //               sonido1.loop();
    //               AudioPlayer.player.start (csonido1);
                   lblGirando.setVisible(true);          
                   //Giran los rodillos seg�n la cantidad de rotaciones aleatorias
                   //verifica si falta rodar un rodillo
                   if(girosRod1>0){
                   //cambiar la imagen y almacenar el indice de la que se encuentra
                        indRodillo1=girarImagen(lblRod1,indRodillo1);
                   //decrementar el numero de rotaciones del rodillo
                        girosRod1--;
                   if(girosRod2>0){
                   //cambiar la imagen y almacenar el indice de la que se encuentra
                        indRodillo2=girarImagen(lblRod2,indRodillo2);
                   //decrementar el numero de rotaciones del rodillo
                        girosRod2--;
                   if(girosRod3>0){
                   //cambiar la imagen y almacenar el indice de la que se encuentra
                        indRodillo3=girarImagen(lblRod3,indRodillo3);
                   //decrementar el numero de rotaciones del rodillo
                        girosRod3--;
              }//fin de else
         }//fin del m�todo girar
         void comprovarResultados(int var1,int var2,int var3 ){
              String result=""+ var1+ var2+ var3;
              //si sali� las tres imagenes bar*1
              if(result.equals("222")){
    //               AudioPlayer.player.start(winBig);
    //               winBig.play();
                   moneda=moneda +coins*20;     
                   procesarCredito(moneda);
                   procesarGanancia(coins*20);
                   imprimirTicket(20);
                   mensaje("ud. a ganado :"+coins*20);
                   coins=0;
                   procesarCoins(coins);
              //si sali� las tres imagenes bar*2     
              }else if(result.equals("444")){
    //               AudioPlayer.player.start(winBig);           
    //               winBig.play();
                   moneda=moneda +coins*40;     
                   procesarCredito(moneda);     
                   procesarGanancia(coins*40);
                   imprimirTicket(40);
                   mensaje("ud. a ganado :"+coins*40);
                   coins=0;
                   procesarCoins(coins);
              //si sali� las tres imagenes bar*3     
              }else if(result.equals("888")){
    //               AudioPlayer.player.start(winBig);                          
    //               winBig.play();     
                   moneda=moneda +coins*80;     
                   procesarCredito(moneda);     
                   procesarGanancia(coins*80);
                   imprimirTicket(80);
                   mensaje("ud. a ganado :"+coins*80);
                   coins=0;
                   procesarCoins(coins);
              //si sali� las tres imagenes dolar
              }else if(result.equals("000")){
    //               AudioPlayer.player.start(winBig);
    //               winBig.play();
                   moneda=moneda +coins*1000;     
                   procesarCredito(moneda);     
                   procesarGanancia(coins*1000);
                   imprimirTicket(1000);
                   mensaje("ud. a ganado :"+coins*1000);
                   coins=0;
                   procesarCoins(coins);
              //si sali� las tres imagenes cereza
              }else if(result.equals("666")){
    //               AudioPlayer.player.start(winBig);
    //               winBig.play();
                   moneda=moneda +coins*160;     
                   procesarCredito(moneda);     
                   procesarGanancia(coins*160);
                   imprimirTicket(106);
                   mensaje("ud. a ganado :"+coins*160);
                   coins=0;
                   procesarCoins(coins);
              //si salieron 3 bares cualquiera
              }else if(
                   result.equals("224") || result.equals("228") ||
                   result.equals("242") || result.equals("244") ||
                   result.equals("248") ||     result.equals("282") ||
                   result.equals("284") || result.equals("288") ||
                   result.equals("422") || result.equals("424") ||
                   result.equals("428") || result.equals("442") ||      
                   result.equals("448") ||     result.equals("482") ||
                   result.equals("484") || result.equals("488") ||
                   result.equals("822") || result.equals("824") ||
                   result.equals("828") ||     result.equals("842") ||
                   result.equals("844") || result.equals("848") ||
                   result.equals("882") || result.equals("884")
    //               AudioPlayer.player.start(winBig);
    //               winBig.play();
                   moneda=moneda + coins*10;
                   procesarCredito(moneda);
                   procesarGanancia(coins*10);
                             mensaje("ud. a ganado :"+coins*10);
                   imprimirTicket(10);
                   coins=0;
                   procesarCoins(coins);
              //si sale dos cerezas
              }else if(
                   result.matches("[6][6][0-9]")||          
                   result.matches("[0-9][6][6]")||
                   result.matches("[6][0-9][6]")
    //               AudioPlayer.player.start(winBig);
    //               winBig.play();
                   moneda=moneda + coins*5;
                   procesarCredito(moneda);
                   procesarGanancia(coins*5);
                   imprimirTicket(5);
                   mensaje("ud. a ganado :"+coins*5);
                   coins=0;
                   procesarCoins(coins);
              //si sale una cereza     
              }else if(      result.matches("[6][0-9][0-9]")||
                             result.matches("[0-9][6][0-9]")||
                             result.matches("[0-9][0-9][6]")
    //               AudioPlayer.player.start(winBig);
    //               winBig.play();
                   moneda=moneda + coins*2;
                   procesarCredito(moneda);
                   procesarGanancia(coins*2);
                   imprimirTicket(2);
                   mensaje("ud. a ganado :"+coins*2);
                                  coins=0;
                   procesarCoins(coins);
              } else {
                   coins=0;
                   procesarCoins(coins);
                   procesarGanancia(0);
         int girarImagen(JLabel lblImagen, int indiceImagenActual){
              // Si la imagen que se ve actualmente es la �ltima se
              // debe mostrar la primera (0)
              if( indiceImagenActual == 9){
                   indiceImagenActual = -1;
              // Mostrar la siguiente imagen seg�n el indice actual
              lblImagen.setIcon(arrImagenes.get(indiceImagenActual+1));
              return indiceImagenActual+1;
         void cargaImagenes(){
              //Carga las im�genes de los rodillos
              for(int i=0; i<10; i++){
                   arrImagenes.add(new ImageIcon(
                        getClass().getResource("imag"+i+".png")
         void imprimirTicket(int producto){
              Date d = new Date();
              txtS.setText(" TRAGAMONEDAS \n");
              txtS.append(" CIBERTEC\n ");
              txtS.append("******************************\n");
              txtS.append("Gan� \t: S/. "+coins*producto +"\n");
              txtS.append("Credito actual\t: S/. "+moneda +"\n");
              txtS.append("****************************** \n");
              txtS.append("Gracias por jugar \n ");
              txtS.append(""+ sdf.format(d));
         void mensaje(String text1){
              JOptionPane.showMessageDialog(this,text1,"Mensaje",1);
         //---------------------METODOS PARA EVENTOS DE MOUSE-------------------
         public void mousePressed(MouseEvent e) {
         if(e.getSource()==lblGirar){
              lblGirar.setIcon(girarPush);
         if(e.getSource()==lblApostUno){
              lblApostUno.setIcon(apostarUnoPush);
         if(e.getSource()==lblApostMax){
              lblApostMax.setIcon(apuestaMaximaPush);
    public void mouseReleased(MouseEvent e) {
         if(e.getSource()==lblGirar){
              lblGirar.setIcon(girarIn);
         if(e.getSource()==lblApostUno){
              lblApostUno.setIcon(apostarUnoIn);
         if(e.getSource()==lblApostMax){
              lblApostMax.setIcon(apuestaMaximaIn);
    public void mouseEntered(MouseEvent e) {
    if(e.getSource()==lblGirar){
              lblGirar.setIcon(girarIn);
    if(e.getSource()==lblApostMax){
              lblApostMax.setIcon(apuestaMaximaIn);
    if(e.getSource()==lblApostUno){
              lblApostUno.setIcon(apostarUnoIn);
    public void mouseExited(MouseEvent e) {
    if(e.getSource()==lblGirar){
              lblGirar.setIcon(girarOut);
    if(e.getSource()==lblApostMax){
              lblApostMax.setIcon(apuestaMaximaOut);
    if(e.getSource()==lblApostUno){
              lblApostUno.setIcon(apostarUnoOut);
    //          AudioPlayer.player.stop(betOne);
    public void mouseClicked(MouseEvent e) {
    //Se ejecuta al darle click al JLabel lblGirar
         if(e.getSource()==lblGirar){
                        if(coins==0){
                             JOptionPane.showMessageDialog(this,"ingrese una moneda",
                             "Mensaje",1);
                        }else if(moneda<0){
                             JOptionPane.showMessageDialog(this,"Recargue su tarjeta",
                             "Mensaje",1);
                        }else{
                        //mediante los numeros aleatorios generamos el n�mero de giros
                        //que dara cada rodillo
                        girosRod1=aleatorio(10,40);
                        girosRod2=aleatorio(girosRod1+10,girosRod1+40);
                        girosRod3=aleatorio(girosRod2+10,girosRod2+40);
                        //inicia el Timer
                        timer.start();
                   }//fin de btn girar
                   //boton Apostar Uno
                   if(e.getSource()==lblApostUno){
    //                    AudioPlayer.player.start(betOne);
    //                    betOne.play();
                        //si no se tiene credito muestra un mensaje
                        if(moneda<=0){
                             JOptionPane.showMessageDialog(this,"Recargue su tarjeta",
                             "Mensaje",1);
                        //si se tiene credito     
                        }else{     
                             pasarCredito();
                             procesarCoins(coins);
                             procesarCredito(moneda);
                   }//fin de apostar uno
                   //si se presiona el boton de apuesta m�xima
                   if(e.getSource()==lblApostMax){
                        s.playBetMax();
    //                    AudioPlayer.player.start(betMax);
    //                    betMax.play();
                        //si tiene 2 o mas soles se puede efectuar la apuesta maxima
                        if(moneda>=2){
                             pasarMaximoMonedas();
                             procesarCoins(coins);
                             procesarCredito(moneda);
                        }//sino se muestra un mensaje
                        else{
                             JOptionPane.showMessageDialog(this,
                             "No cuenta con cr�dito suficiente para efectuar una"+
                             "apuesta m�xima ", "Mensaje",1);
                   }//fin de apuesta m�xima
    }//fin de public
    }//fin de la clase
    and my class Sonido:
    import java.net.URL;
    import java.io.FileInputStream;
    import sun.audio.*;
    public class Sonido {
        public AudioData spinData,betOneData,betMaxData,winBigData;
        public AudioDataStream spinStream, betOneStream, betMaxStream, winBigStream ;
        public ContinuousAudioDataStream continuousSpinStream,continuousBetOneStream,continuousBetMaxStream,continuousWinBigStream;
        static int length;
        public Sonido (URL url) throws java.io.IOException {//ITS ALL CORRECTLY? WHERE I HAVE TO PUT THE URL CLASSES/"FILE.WAV"
            spinData                          = new AudioStream (url.openStream()).getData();
            betOneData                          = new AudioStream (url.openStream()).getData();
            betMaxData                          = new AudioStream (url.openStream()).getData();
            winBigData                          = new AudioStream (url.openStream()).getData();
            spinStream                          = null;
            betOneStream                     = null;
            betMaxStream                     = null;
            winBigStream                     = null;
            continuousSpinStream           = null;
            continuousBetOneStream           = null;
            continuousBetMaxStream           = null;
            continuousWinBigStream           = null;
        public Sonido (String Spin,String WinBig,String BetOne,String BetMax ) throws java.io.IOException {
            FileInputStream spin           = new FileInputStream (Spin);
            FileInputStream winBig           = new FileInputStream (WinBig);
            FileInputStream betOne           = new FileInputStream (BetOne);
            FileInputStream betMax           = new FileInputStream (BetMax);
            AudioStream spinStream           = new AudioStream (spin);
            AudioStream betOneStream      = new AudioStream (winBig);
            AudioStream betMaxStream      = new AudioStream (betOne);
            AudioStream winBigStream      = new AudioStream (betMax);
            spinData                          = spinStream.getData();
            betOneData                          = betOneStream.getData();
            betMaxData                          = betMaxStream.getData();
            winBigData                          = winBigStream.getData();
            spinStream                          = null;
            betOneStream                     = null;
            betMaxStream                     = null;
            winBigStream                     = null;
            continuousSpinStream           = null;
            continuousBetOneStream           = null;
            continuousBetMaxStream           = null;
            continuousWinBigStream           = null;
        public void playSpin() {
            spinStream = new AudioDataStream (spinData);
            AudioPlayer.player.start (spinStream);
        public void loopSpin() {
            continuousSpinStream = new ContinuousAudioDataStream (spinData);
            AudioPlayer.player.start (continuousSpinStream);
        public void stopSpin() {
            if (spinStream != null)
                AudioPlayer.player.stop (spinStream);
            if (continuousSpinStream != null)
                AudioPlayer.player.stop (continuousSpinStream);
        public void playBetOne() {
            betOneStream = new AudioDataStream (betOneData);
            AudioPlayer.player.start (betOneStream);
        public void loopBetOne() {
            continuousBetOneStream = new ContinuousAudioDataStream (betOneData);
            AudioPlayer.player.start (continuousBetOneStream);
        public void stopBetOne() {
            if (betOneStream != null)
                AudioPlayer.player.stop (betOneStream);
            if (continuousBetOneStream != null)
                AudioPlayer.player.stop (continuousBetOneStream);
        public void playBetMax() {
            betMaxStream = new AudioDataStream (betMaxData);
            AudioPlayer.player.start (betMaxStream);
        public void loopBetMax() {
            continuousSpinStream = new ContinuousAudioDataStream (spinData);
            AudioPlayer.player.start (continuousSpinStream);
        public void stopBetMax() {
            if (betMaxStream != null)
                AudioPlayer.player.stop (betMaxStream);
            if (continuousBetMaxStream != null)
                AudioPlayer.player.stop (continuousBetMaxStream);
        public void playWinBig () {
            winBigStream = new AudioDataStream (winBigData);
            AudioPlayer.player.start (winBigStream);
        public void loopWinBig () {
            continuousWinBigStream = new ContinuousAudioDataStream (spinData);
            AudioPlayer.player.start (continuousWinBigStream);
        public void stopWinBig () {
            if (winBigStream != null)
                AudioPlayer.player.stop (winBigStream);
            if (continuousWinBigStream != null)
                AudioPlayer.player.stop (continuousWinBigStream);
    //    public static void main (String args[]) throws Exception {
    //        URL url1 = new URL ("http://localhost:8080/audio/1.au");
    //        URL url2 = new URL ("http://localhost:8080/audio/2.au");
    //        PruebaSonido sac1 = new PruebaSonido (url1);
    //        PruebaSonido sac2 = new PruebaSonido (url2);
    //        PruebaSonido sac3 = new PruebaSonido ("1.au");
    //        sac1.play ();
    //        sac2.loop ();
    //        sac3.play ();
    //        try {// Delay for loop
    //            Thread.sleep (2000);
    //        } catch (InterruptedException ie) {}
    //        sac2.stop();
    }uhmmmmmm that's all someone know why dont play my .wav files? thanks a lot

    in the tutorial the code of the class Sonido is like this:, i cant find a constructor, you can?
    import java.net.URL;
    import java.io.FileInputStream;
    import sun.audio.*;
    public class SunAudioClip {
        private AudioData audiodata;
        private AudioDataStream audiostream;
        private ContinuousAudioDataStream continuousaudiostream;
        static int length;
        public SunAudioClip (URL url) throws java.io.IOException {
            audiodata = new AudioStream (url.openStream()).getData();
            audiostream = null;
            continuousaudiostream = null;
        public SunAudioClip (String Spin) throws java.io.IOException {
            FileInputStream fis = new FileInputStream (Spin);
            AudioStream audioStream = new AudioStream (fis);
            audiodata = audioStream.getData();
            audiostream = null;
            continuousaudiostream = null;
        public void play () {
            audiostream = new AudioDataStream (audiodata);
            AudioPlayer.player.start (audiostream);
        public void loop () {
            continuousaudiostream = new ContinuousAudioDataStream (audiodata);
            AudioPlayer.player.start (continuousaudiostream);
        public void stop () {
            if (audiostream != null)
                AudioPlayer.player.stop (audiostream);
            if (continuousaudiostream != null)
                AudioPlayer.player.stop (continuousaudiostream);
        public static void main (String args[]) throws Exception {
            URL url1 = new URL ("http://localhost:8080/audio/1.au");
            URL url2 = new URL ("http://localhost:8080/audio/2.au");
            SunAudioClip sac1 = new SunAudioClip (url1);
            SunAudioClip sac2 = new SunAudioClip (url2);
            SunAudioClip sac3 = new SunAudioClip ("1.au");
            sac1.play ();
            sac2.loop ();
            sac3.play ();
            try {// Delay for loop
                Thread.sleep (2000);
            } catch (InterruptedException ie) {}
            sac2.stop();
    }

  • Get more info about the last errors in Oracle

    Hi all,
    There is a log in a live system where it is possible to see every minute the following error:
    Sweep Incident[48073]: failed, err=[1858]
    I know that error can happen mainly when:
    1. Trying to insert caracter field in a numeric column
    2. Using in the wrong way the function to_date()
    I need more information about that error, what can be causing the error in the system and why. Is it possible to see more information about the last errors in Oracle? For example, if a query produces an error... is it possible to see in Oracle the error and the query that caused the error?
    Hope you can help me.
    Thanks in advance.

    Thanks Niall.
    I'm not sure if I got you...
    What I found is that MMON makes snapshots of the database 'health' and stores this information in the AWR. So, it seems like in the database there could be a numeric column that is storing character fields, and when MMON works, it finds that error... is that right?
    I found the following information:
    SQL> select substr(s.username,1,18) username,
    2 substr(s.program,1,22) program,
    3 decode(s.command,
    4 0,'No Command',
    5 1,'Create Table',
    6 2,'Insert',
    7 3,'Select',
    8 6,'Update',
    9 7,'Delete',
    10 9,'Create Index',
    11 15,'Alter Table',
    12 21,'Create View',
    13 23,'Validate Index',
    14 35,'Alter Database',
    15 39,'Create Tablespace',
    16 41,'Drop Tablespace',
    17 40,'Alter Tablespace',
    18 53,'Drop User',
    19 62,'Analyze Table',
    20 63,'Analyze Index',
    21 s.command||': Other') command
    22 from
    23 v$session s,
    24 v$process p,
    25 v$transaction t,
    26 v$rollstat r,
    27 v$rollname n
    28 where s.paddr = p.addr
    29 and s.taddr = t.addr (+)
    30 and t.xidusn = r.usn (+)
    31 and r.usn = n.usn (+)
    32 order by 1;
    USERNAME PROGRAM COMMAND
    oracle@airvs1b (MMON) No Command
    SQL> select addr, pid, spid, username, serial#, program,traceid, background, latchwait, latchspin from v$process where program='oracle@airvs1b (MMON)';
    ADDR PID SPID USERNAME SERIAL# PROGRAM
    000000044A4E48A8 24 15372 oracle 1 oracle@airvs1b (MMON)
    TRACEID B LATCHWAIT LATCHSPIN
    ---------------- ---------- ------------------------ --------------- 1
    SQL> select
    2 substr(a.spid,1,9) pid,
    3 substr(b.sid,1,5) sid,
    4 substr(b.serial#,1,5) ser#,
    5 substr(b.machine,1,6) box,
    6 substr(b.username,1,10) username,
    7 b.server,
    8 substr(b.osuser,1,8) os_user,
    9 substr(b.program,1,40) program
    10 from v$session b, v$process a
    11 where
    12 b.paddr = a.addr
    13 and a.spid=15372
    14 order by spid;
    PID SID SER# BOX USERNAME SERVER OS_USER PROGRAM
    15372 1082 1 airvs1 DEDICATED oracle oracle@airvs1b (MMON)
    Is there any way I can see what MMON is doing and when is failing?
    Thank you very much.
    Edited by: user11281526 on 19-jun-2009 5:18

  • Converting info message into error message hardcoded in a standard program.

    Hi all,
    Due to some Good Manufacturing Practices in the Pharmaceutical Industry, users are demanding that message i102(40) (SAPLCOSD / LCOSDF2D / FORM OrderTables_Fill line 478) a hardcoded info message be converted into an error message.
    I have struggled all day long on the PPCO exits, but it was not possible to find one that comes prior to this message, so I could prevent the error.
    I then tried to create a field exit on field CAUFVD-GSTRP, but it was not possible to create a field exit for this field (it was not present at PRFB).
    Is there any other way of changing it without changing the standard code (even though it's just one caracter from i102(40) to e102(40).
    Many thanks in advance,
    Alberto

    Hello.
    There is a solution which we used in one of our requirement.
    To replace standard sap code, in ECC 6 SAP provided Enhancement Sections.
    Step 1: Give program name and from and to line numbers in which you need to create a Enhancement section. Give this details to BASIS. They will provide you access key.
    Step 2: Create a Enhancement Section for this portion of code.
    Step 3: Create implementation for this enhancement section.
    You can't create multiple implementations for enhancement section.
    Activate it and now your new code will be executed.
    [Click here |http://help.sap.com/saphelp_nw70/helpdata/en/a0/47e94086087e7fe10000000a1550b0/content.htm]to read the same in help.sap.com.
    all the very best to you.

  • Impdp Procedure or function 10.2.0.4 Error ORA-00904

    I have error ORA-00904: "USERNAME" : identificateur non valide. What is the problem ?
    My command impdp :_
    **impdp datapump/password@%ORACLE_SID% DIRECTORY=datapump schemas=gcom INCLUDE=PROCEDURE remap_tablespace=gpao_indx:indx remap_tablespace=gpao_data:data DUMPFILE=%ORA_DUMPFILE% LOGFILE=Imp_%annee%%mois%%jour%%hh%%min%%sec%_%ORACLE_SID%.log**
    The result :_
    Import: Release 10.2.0.4.0 - Production on Jeudi, 15 Septembre, 2011 17:47:16
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connecté à : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Table maître "DATAPUMP"."SYS_IMPORT_SCHEMA_29" chargée/déchargée avec succès
    Démarrage de "DATAPUMP"."SYS_IMPORT_SCHEMA_29" : datapump/********@gpao DIRECTORY=datapump schemas=gcom INCLUDE=PROCEDURE remap_tablespace=gpao_indx:indx remap_tablespace=gpao_data:data remap_tablespace=gpao_temp:TEMP DUMPFILE=GPAO_DATAPUMP.DUMP LOGFILE=Imp_20110915174715_gpao.log TABLE_EXISTS_ACTION=replace
    Traitement du type d'objet DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
    Traitement du type d'objet DATABASE_EXPORT/SCHEMA/PROCEDURE/PROCEDURE
    ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur: tampon de chaîne de caractères trop petit
    ORA-01001: curseur non valide
    ORA-06512: à "SYS.KUPW$WORKER", ligne 5241
    ORA-06512: à "SYS.KUPW$WORKER", ligne 12750
    ORA-01001: curseur non valide
    ORA-00904: "USERNAME" : identificateur non valide
    Tâche "DATAPUMP"."SYS_IMPORT_SCHEMA_29" arrêtée en raison d'une erreur grave à 17:47:35
    Tkprof result :_
    [http://wattman44.dnsalias.net/telechargement/result_2844.txt]

    Refer MOS note 814896.1
    Since it is not describing your exact scenario, I would advise you to get in touch with Oracle support for this.

Maybe you are looking for

  • I can no longer wireless print from my mac using my Lexmark X4550 printer

    I have read all the previous forums from like a year ago about the troubles that Leopard brought to Lexmark printers, some helped a lot, although I would really like to use my wireless capabilities. I have tried uninstalling and reinstalling like 15

  • Error while execution of BPEL processes in IPM Solution

    Hi All, I am working on the IPM Imaging solution in which Invoice data is captured from OFR in XML format , pushed into IPM and then BPEL process is invoked to push the data into apps tables. I am facing following error while invoking a procedure whi

  • HT3910 a blue screen appears at the start up

    When I start my macbookpro a blue screen appears and stays. Nothing further happens ; can anyone help please?

  • Fail on jdk installation

    I get a verify error during a jdk installation on Sun Download Manager. How to solve this problem so that I can finish the installation?

  • Security in Tabular (SSAS 2012)

    hi all,  I would like to omit entire tables (their measures, calculations, etc) for users belonging to a specific AD group (Active Directory) assigned to a Role.  Is this something that can be accomplished through a relatively simple Row Filters/DAX