Need help with compile error: externally visible definition

I am getting the following error on compile:
"A file found in an source-path must have an externally
visible definition. If a definition in the file is meant to be
externally visible, please put the definition in a package."
Typically this would mean that an actionscript class file is
not placed in a package, but I am getting the error for a Custom
MXML ListItemRenderer component I created.
Does anyone have a clue why this would be happening? It
happened once before and mysteriously went away after I removed all
of the code in the file, saved it, pasted it back in and saved it
again. Unfortunately that is not working this time.
I would really appreciate any help.
Thanks,
shaun

OK here it is, first i'll give u the Card.java file, it compiles i think:
public interface Card {
/** The four suites. */
public static final byte CLUB = 0, DIAMOND = 1, HEART = 2, SPADE = 2;
/** The suite of this card. */
public byte suite();
* Is 's' a valid suite?
* @param s a value to check to see if it is a valid suite.
* @return true iff 's' is a valid suite.
public boolean validSuite(byte s);
/** The thirteen standard cards. */
public static final byte ACE = -1, TWO = -2, THREE = -3, FOUR = -4,
FIVE = -5, SOX = -6, SEVEN = -7, EIGHT = -8, NINE = -9, TEN = -10,
JACK = -11, QUEEN = -12, KING = -13;
/** The face-value of this card */
public byte value();
* Is 'v' a valid face-value?
* @param v the value to check to see if it is a valid face-value.
* @return true iff 'v' is a valid face-value.
public boolean validValue(byte v);
* @param a_card the card to compare
* @return true iff the suite of this card is identical to the suite
* of <code>a_card</code>
public boolean sameSuiteAs(Card a_card);
* @param a_card the card to compare
* @return true iff the face value of this card is identical to the
* face value of <code>a_card</code>
public boolean sameFaceValueAs(Card a_card);
* @param a_card the card to compare
* @return true iff the face value of this card is strictly greater than
* the face value of <code>a_card</code>
public boolean greaterFaceValueThan(Card a_card);
* Whether this card has a greater value than <code>a_card</code> is
* determined by a given card game's rules.
* @param a_card the card to compare
* @return true iff this card has a great value than <code>a_card</code>
public boolean greaterValueThan(Card a_card);
* Two cards are equivalent if they are indistinguishable in a given
* card game's rules.
* @param a_card the card to compare
* @return true iff this card and <code>a_card</code> are indistinguishable
public boolean equivalentTo(Card a_card);
}

Similar Messages

  • Need help with compiler error

    'class' or 'interface' expected
    public static int getNewAmount()
    ^
    Can anyone tell me what to do?
    Thx.

    I solved that problem. Thanks.
    But now I have another error problem.
    Exception in thread "main" java.lang.NumberFormatException: n
    at java.lang.Integer.parseInt(Integer.java:414)
    at java.lang.Integer.parseInt(Integer.java:463)
    at MyInput.readInt(MyInput.java:27)
    at SalaryComputation3.getJobClass(SalaryComputation3.java:85)
    at SalaryComputation3.main(SalaryComputation3.java:61)

  • Please help with compiling error

    Hello, I am currently taking a class in Java Programming and need help with an error. I am working on a Mortgage Calculator and when I compile the code I get this error. I have no idea how to fix this. Can anyone help? Thank you.
    '{' expected public class MortgageCalculator
    1 error
    Tool completed with exit code 1
    Here is my code
    import java.io.*;//*java input output
    import java.util.Date;//Date Utility
    import java.util.Formatter;//format Utility
    import java.text.NumberFormat;//*format numbers
    //class MortgageCalculator
    public class MortgageCalculator
    public static void main(String[]args);{
    Date currentDate=newDate();
    DecimalFormat decimalPlaces=newDecimalFormat("0.00");
    //declare Variables
    final double principalBalance=200000;//*$200,000 Loan
    final double monthlyInterest=.06;//*6% interest rate
    final double Term=12*30;//*monthly interest rate
    final double monthlyInterest=((principalBalance*(monthlyInterest/12))/(1-Math.pow(1+(monthlyInterest/12))-(Term)));
    //Display Output
    System.out.println("\t\t" + currentDate);
    System.out.println("\t\tLoan Amount" + principalBalance);
    System.out.println("\t\tInterest Rate" + monthlyInterest);
    System.out.println("\t\tTerm of Loan" + Term);
    System.out.println("\t\tThe Payment will be:" + monthlyInterest);
    System.out.println(decimalPlaces.format(mothlyInterest));
    }

    You need to enclose your class body in { }. You're missing at least one of them

  • Installing Elements 11 on Mac. Need help with install error "Setup wants to make changes."

    Installing Elements 11 on Mac 10.8.2. Need help with install error:  Setup wants to make changes. Type your password to allow this."  After entering Adobe password, nothing happens.  Locked from further installation.  Any ideas?  Adobe phone support could not help.

    Just before letting changes (installation in this case) be made on the system, Mac OS prompts for password & this has to be the Mac system password. This password prompt is the system's own native prompt & would accept the system password only. Please make sure it is the right system password (all/admin rights) and the installaion should run.

  • Need help determining compiling error

    Good morning,
    I need help finding the cause of a compiling error I receive. I have reviewed my code numerous times without any luck. I hope you guys might see something I am not! The entire file exceeds the limit I can post, so I am attaching it in 2 posts. Sorry for the inconvenience. The error and my code are posted below. Thank you for your help!
    C:\StockTrackerDB.java:382: cannot find symbol
    symbol : method add(java.lang.Boolean)
    location: class java.util.ArrayList<java.lang.String>
                   aList.add(new Boolean(rs.getBoolean("admin")));
    ^
    1 error
    Tool completed with exit code 1
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    public class StockTrackerDB
         private Connection con = null;
         //Constructor; makes database connection
         public StockTrackerDB() throws ClassNotFoundException,SQLException
              if(con == null)
                   String url = "jdbc:odbc:StockTracker";
                   try
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   catch(ClassNotFoundException ex)
                        throw new ClassNotFoundException(ex.getMessage() +
                                    "\nCannot locate sun.jdbc.odbc.JdbcOdbcDriver");
                   try
                        con = DriverManager.getConnection(url);
                   catch(SQLException ex)
                        throw new SQLException(ex.getMessage()+
                                    "\nCannot open database connection for "+url);
         // Close makes database connection; null reference to connection
         public void close() throws SQLException,IOException,ClassNotFoundException
              con.close();
              con = null;
         // Method to serialize object to byte array
         private byte[] serializeObj(Object obj) throws IOException
              ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
              ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
              objOStream.writeObject(obj); // object must be Serializable
              objOStream.flush();
              objOStream.close();
              return baOStream.toByteArray(); // returns stream as byte array
         // Method to deserialize bytes from a byte array into an object
         private Object deserializeObj(byte[] buf) throws IOException, ClassNotFoundException
              Object obj = null;
              if(buf != null)
                   ObjectInputStream objIStream = new ObjectInputStream(new ByteArrayInputStream(buf));
                   obj = objIStream.readObject(); //IOException, ClassNotFoundException
              return obj;
         // Methods for adding a record to a table
         // add to the Stocks Table
         public void addStock(String stockSymbol, String stockDesc) throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("INSERT INTO Stocks VALUES ('"
                                    +stockSymbol+"'"
                                    +",'"+stockDesc+"')");
              stmt.close();
         // add to the Users table
         public boolean addUser(User user) throws SQLException,IOException,ClassNotFoundException
              boolean result = false;
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              dbUserID = user.getUserID();
              if(getUser(dbUserID) == null)
                   dbLastName = user.getLastName();
                   dbFirstName = user.getFirstName();
                   Password pswd = user.getPassword();
                   isAdmin = user.isAdmin();
                   PreparedStatement pStmt = con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?)");
                   pStmt.setString(1, dbUserID);
                   pStmt.setString(2, dbLastName);
                   pStmt.setString(3, dbFirstName);
                   pStmt.setBytes(4, serializeObj(pswd));
                   pStmt.setBoolean(5, isAdmin);
                   pStmt.executeUpdate();
                   pStmt.close();
                   result = true;
              else
                   throw new IOException("User exists - cannot add.");
              return result;
         // add to the UserStocks table
         public void addUserStocks(String userID, String stockSymbol)
                        throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("INSERT INTO UserStocks VALUES ('"
                                    +userID+"'"
                                    +",'"+stockSymbol+"')");
              stmt.close();
         // Methods for updating a record in a table
         // updating the Users table
         public boolean updUser(User user) throws SQLException, IOException, ClassNotFoundException
              boolean result = false;
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              dbUserID = user.getUserID();
              if(getUser(dbUserID) != null)
                   dbLastName = user.getLastName();
                   dbFirstName = user.getFirstName();
                   Password pswd = user.getPassword();
                   isAdmin = user.isAdmin();
                   PreparedStatement pStmt = con.prepareStatement("UPDATE Users SET lastName = ?," + " firstName = ?, pswd = ?, admin = ? WHERE userID = ?");
                   pStmt.setString(1, dbLastName);
                   pStmt.setString(2, dbFirstName);
                   pStmt.setBytes(3, serializeObj(pswd));
                   pStmt.setBoolean(4, isAdmin);
                   pStmt.setString(5, dbUserID);
                   pStmt.executeUpdate();
                   pStmt.close();
                   result = true;
              else
                   throw new IOException("User does not exist - cannot update.");
              return result;
         }

         // Methods for deleting a record from a table
         // delete a record from the Stocks table
         private void delStock(String stockSymbol) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              stmt.executeUpdate("DELETE FROM Stocks WHERE "
                                    +"symbol = '"+stockSymbol+"'");
              stmt.close();
         // delete a record from the Users table
         public void delUser(User user) throws SQLException,IOException,ClassNotFoundException
              String dbUserID;
              String stockSymbol;
              Statement stmt = con.createStatement();
              try
                   con.setAutoCommit(false);
                   dbUserID = user.getUserID();
                   if(getUser(dbUserID) != null) // verify user exists in database
                        ResultSet rs1 = stmt.executeQuery("SELECT userID, symbol "
                                              +"FROM UserStocks WHERE userID = '"+dbUserID+"'");
                        while(rs1.next())
                             try
                                  stockSymbol = rs1.getString("symbol");
                                  delUserStocks(dbUserID, stockSymbol);
                             catch(SQLException ex)
                                  throw new SQLException("Deletion of user stock holding failed: " +ex.getMessage());
                        } // end of loop thru UserStocks
                        try
                        {  // holdings deleted, now delete user
                             stmt.executeUpdate("DELETE FROM Users WHERE "
                                              +"userID = '"+dbUserID+"'");
                        catch(SQLException ex)
                             throw new SQLException("User deletion failed: "+ex.getMessage());
                   else
                        throw new IOException("User not found in database - cannot delete.");
                   try
                        con.commit();
                   catch(SQLException ex)
                        throw new SQLException("Transaction commit failed: "+ex.getMessage());
              catch (SQLException ex)
                   try
                        con.rollback();
                   catch (SQLException sqx)
                        throw new SQLException("Transaction failed then rollback failed: " +sqx.getMessage());
                   // Transaction failed, was rolled back
                   throw new SQLException("Transaction failed; was rolled back: " +ex.getMessage());
              stmt.close();
         // delete a record from the UserStocks table
         public void delUserStocks(String userID, String stockSymbol) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              ResultSet rs;
              stmt.executeUpdate("DELETE FROM UserStocks WHERE "
                                    +"userID = '"+userID+"'"
                                    +"AND symbol = '"+stockSymbol+"'");
              rs = stmt.executeQuery("SELECT symbol FROM UserStocks "
                                         +"WHERE symbol = '"+stockSymbol+"'");
              if(!rs.next()) // no users have this stock
                   delStock(stockSymbol);
              stmt.close();
         // Methods for listing record data from a table
         // Ordered by:
         //          methods that obtain individual field(s),
         //          methods that obtain a complete record, and
         //          methods that obtain multiple records
         // Methods to access one or more individual fields
         // get a stock description from the Stocks table
         public String getStockDesc(String stockSymbol) throws SQLException, IOException, ClassNotFoundException
              Statement stmt = con.createStatement();
              String stockDesc = null;
              ResultSet rs = stmt.executeQuery("SELECT symbol, name FROM Stocks "
                                                      +"WHERE symbol = '"+stockSymbol+"'");
              if(rs.next())
                   stockDesc = rs.getString("name");
              rs.close();
              stmt.close();
              return stockDesc;
         // Methods to access a complete record
         // get User data from the Users table
         public User getUser(String userID) throws SQLException,IOException,ClassNotFoundException
              Statement stmt = con.createStatement();
              String dbUserID;
              String dbLastName;
              String dbFirstName;
              Password dbPswd;
              boolean isAdmin;
              byte[] buf = null;
              User user = null;
              ResultSet rs = stmt.executeQuery("SELECT * FROM Users WHERE userID = '" +userID+"'");
              if(rs.next())
                   dbUserID = rs.getString("userID");
                   dbLastName = rs.getString("lastName");
                   dbFirstName = rs.getString("firstName");
                   // Do NOT use with JDK 1.2.2 using JDBC-ODBC bridge as
                   // SQL NULL data value is not handled correctly.
                   buf = rs.getBytes("pswd");
                   dbPswd=(Password)deserializeObj(buf);
                   isAdmin = rs.getBoolean("admin");
                   user = new User(dbUserID,dbFirstName,dbLastName,dbPswd,isAdmin);
              rs.close();
              stmt.close();
              return user; // User object created for userID
         // Methods to access a list of records
         // get a list of selected fields for all records from the Users Table
         public ArrayList listUsers() throws SQLException,IOException,ClassNotFoundException
              ArrayList<String> aList = new ArrayList<String>();
              Statement stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT userID, firstName, lastName, admin "
                                                 +"FROM Users ORDER BY userID");
              while(rs.next())
                   aList.add(rs.getString("userID"));
                   aList.add(rs.getString("firstName"));
                   aList.add(rs.getString("lastName"));
                   aList.add(new Boolean(rs.getBoolean("admin")));
              rs.close();
              stmt.close();
              return aList;
         // get all fields in all records for a given user from the UserStocks table
         public ArrayList listUserStocks(String userID) throws SQLException, IOException, ClassNotFoundException
              ArrayList<String> aList = new ArrayList<String>();
              Statement stmt = con.createStatement();
              ResultSet rs = stmt.executeQuery("SELECT * FROM UserStocks "
                                                      +"WHERE userID = '"+userID+"' ORDER BY symbol");
              while(rs.next())
                   aList.add(rs.getString("symbol"));
              rs.close();
              stmt.close();
              return aList;
    }

  • Help with compilation error

    Hello
    I have a problem with my jsp developement. When i create a jsp (with no beans) i test it and it runs fine (not good but fine), then when I test it with multiple users at time, it generate a jsp compilation error ie. "missing term }" and I can not figure out why it is getting that error, it has been compilated before! so it should not generate a compilation error, becouse i'm not editing the jsp source. I think that every time the jsp is requested the virtual machine is re-compiling it, but is only what i thing and i don't know why... can any body help me? please.
    I apologize for my bad english
    Thank you for your time reading this.

    Sorry becouse i can't be more espesific with the error that i get, that error is complete apears in a complete randomic way, I mean taht it apears when nerver is expected or doesn't apear when is expected, only thing that i got of that error is that the compiler some time says that are mising semi-colon (;), some time says that are mising quotation marks (") or are mising }, the error is no the same allways no mater the situation, I can run the jsp in my pc but the error doesn't apear, thats very strange becouse the compilation error apear after the jsp was executed with no errors.
    this is my jsp:
    <%@ page import="java.util.Calendar,java.text.SimpleDateFormat,java.util.Date,java.util.Stack,java.util.Enumeration, java.util.Hashtable,java.sql.*, java.util.Vector" %>
    <%@ include file="../incs/dbpool_inc.jsp" %>
    <%@ include file="funciones.jsp"%><html>
    <head>
    <title>Resolver preguntas</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="../css/0001.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <% //to get user data from the session.
         String userid = session.getAttribute("idu") != null ? (String)session.getAttribute("idu") : "";
         String asign = session.getAttribute("idHomeAssignatura") != null ? (String)session.getAttribute("idHomeAssignatura"): "";
         String idcuest = session.getAttribute("idcuest") != null ? (String)session.getAttribute("idcuest") : "";
         String secuenc = session.getAttribute("secuenc") != null ? (String)session.getAttribute("secuenc") : "";     
         String secuens = request.getParameter("secuens") != null ? request.getParameter("secuens") : "0";
         //to know if it's aloww to save cahnges in the database
         boolean guardar = request.getParameter("guardar") != null ? (request.getParameter("guardar")).equals("si")? true: false :false;
         if(userid.equals("")|| asign.equals("")){//if 1          
              out.println("</head><body><font face=\"Arial\" size=\"2\" color=\"#000000\"><b>El tiempo de conexi&oacute;n ha expirado. Para ingresar de nuevo al sistema haga click aqu&iacute;.</b></font></body></html>");
         }//fin if 1
         else{//else de if 1          
              try{// try 1
                   Connection conn = dbpool.getConnection();
                   Statement stmtt = conn.createStatement();
                   Statement stmtmod = conn.createStatement();
                   Statement stmtresp = conn.createStatement();
                   ResultSet rsmodul = stmtmod.executeQuery("select id_modulo from eit_cuestxmat where id_cuestionario="+idcuest);
                   String modulo = rsmodul.next()? rsmodul.getString("id_modulo"): "";
                   rsmodul.close();
                   stmtmod.close();
                   int secuencia1 = Integer.parseInt(secuens);
                   int secuencia2 = Integer.parseInt(secuenc)+1;
                   secuenc = (secuencia1 == secuencia2)? String.valueOf((Integer.parseInt(secuenc)+1)): secuenc;
                   session.setAttribute("secuenc", secuenc);               
                   if(esAlumno(userid, stmtt, asign)){//if 2
                   if(guardar){//if 2.0
                             String idpreg1 = request.getParameter("idpregunta") != null ? request.getParameter("idpregunta") : "";
                             ResultSet rstipop = stmtt.executeQuery("select tipo from eit_pregunta where id_pregunta="+idpreg1);                         
                             String tipop1 = rstipop.next()? rstipop.getString("tipo") : "";
                             rstipop.close();
                             String respuesta = "N/A", correspondencia ="";                         
                             String restado="n";
                             String rcorrecta = "n";
                             if(tipop1.equals("selec")){
                                  correspondencia = request.getParameter("rprevia") != null? request.getParameter("rprevia") : "-1";
                                  ResultSet rscorrecta = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                           idpreg1+" and id_opcion="+correspondencia+" and escorrecta like 's'");
                                  if(rscorrecta.next()){
                                       rcorrecta = "s";
                                  rscorrecta.close();
                             else{
                                  if(tipop1.equals("empar")){
                                       ResultSet rsempar = stmtt.executeQuery("select escorrecta from eit_opciones where id_pregunta="+
                                                                idpreg1+ "order by orden");
                                       int corres = 0;
                                       int correctas = 0;
                                       while(rsempar.next()){                                   
                                                 String resp = request.getParameter("selopc"+String.valueOf(corres+1)) != null? request.getParameter("selopc"+String.valueOf(corres+1)) : "";
                                                 correspondencia=correspondencia+((corres == 0)? "":",")+resp;
                                                 correctas = correctas + (resp.equals(rsempar.getString("escorrecta"))? 1 : 0);
                                                 corres++;
                                       rcorrecta = String.valueOf(correctas);
                                       rsempar.close();
                                  else{
                                       if(tipop1.equals("complet")){
                                            ResultSet rscomplet= stmtt.executeQuery("select correspondencia from eit_opciones where id_pregunta="+idpreg1);
                                            String complet = rscomplet.next()? rscomplet.getString("correspondencia"):"";
                                            rscomplet.close();
                                            String complet1 = "";
                                            int idxcar = complet.indexOf("$");
                                            respuesta = request.getParameter("comp0") != null ? request.getParameter("comp0") : "";
                                            correspondencia = request.getParameter("comp1") != null ? request.getParameter("comp1") : "";
                                            int corrc =0;
                                            if(idxcar>=0){
                                                 complet1 = complet.substring((idxcar+1),complet.length());
                                                 complet = complet.substring(0, idxcar);
                                                 corrc = (respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 corrc = (correspondencia.equalsIgnoreCase(complet1))? (corrc+1) : corrc;
                                                 rcorrecta = (corrc==2)? "s": (corrc==1)? "m": "n";
                                            }else{
                                                 corrc=(respuesta.equalsIgnoreCase(complet))? 1 : 0;
                                                 rcorrecta = (corrc==1)? "s": "n";
                                       else{
                                            if(tipop1.equals("abierta")){
                                                 respuesta = request.getParameter("respuesta") != null? request.getParameter("respuesta") : "";
                             String guardarResp = "insert into eit_respuesta(id_pregunta, id_cuestionario, id_materia, id_modulo"+
                                                      ", respuesta, correspondencia, rcorrecta, restado, sec_pregunta, codest)"+
                                                      " values ("+idpreg1+", "+idcuest+", '"+asign+"', "+modulo+", '"+respuesta+"', '"+correspondencia+"', '"+rcorrecta+"', '"+restado+"', "+
                                                      String.valueOf((Integer.parseInt(secuenc)-1))+", "+userid+")";
                             String sqlexistencia = "select id_pregunta from eit_respuesta where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia="+
                                                           asign+" and id_modulo="+modulo+" and id_pregunta="+idpreg1;                         
                             boolean existeResp = (stmtt.executeQuery(sqlexistencia)).next();
                             String editarResp = "update eit_respuesta set respuesta='"+respuesta+"', correspondencia='"+correspondencia+"', "+
                                                      "rcorrecta='"+rcorrecta+"', restado='"+restado+
                                                      "' where codest ="+userid+" and id_cuestionario="+idcuest+" and id_materia like '"+
                                                      asign+"' and id_modulo="+modulo+" and id_pregunta="+idpreg1;
                             //if the page is editing execute string editarResp else execute string guardarResp
                             stmtt.executeUpdate(existeResp? editarResp:guardarResp);
                        String sqlbpu="select p.enunciado, p.tipo, p.titulo, p.id_pregunta from eit_pregunta p, eit_prexcuest pxc where pxc.id_cuestionario="+idcuest+" and pxc.id_pregunta = p.id_pregunta and pxc.secuenc= "+String.valueOf(secuenc);//bupu: buscar pregunta cuestionario
                        //System.out.println("resolvpreg.jsp "+sqlbpu);
                        ResultSet rsbpu = stmtt.executeQuery(sqlbpu);
                        if(rsbpu.next()){ // if 2.1
                             String enunciado = rsbpu.getString("enunciado");
                             String tipo = rsbpu.getString("tipo");
                             String titulo = rsbpu.getString("titulo");
                             String idpreg = rsbpu.getString("id_pregunta");
    %>
    <h1 align="center"><font color="#0033CC" face="Arial, Helvetica, sans-serif"><%=titulo%></font></h1><br>
    <p align="left"><font face="Arial, Helvetica, sans-serif">
    <strong>Enunciado:</strong> <%=enunciado%>. </font><br>
    <%
         String sqlrespuesta = "select respuesta, correspondencia from eit_respuesta where id_pregunta="+idpreg+
    " and id_cuestionario = "+idcuest+" and id_materia like '"+asign+"' and id_modulo="+modulo+" and codest= "+userid;     
         ResultSet rsrespuesta = stmtresp.executeQuery(sqlrespuesta);     
         String sqlopcs= "select opcion, escorrecta, correspondencia, orden from eit_opciones where id_pregunta ="+idpreg+"order by orden";
         ResultSet rsops = stmtt.executeQuery(sqlopcs);          
    %>
    <%String letras = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
         Vector opciones = new Vector();
         Object obj[] = new Object[4];
         while(rsops.next()){
              obj[0] = rsops.getString("opcion");
              obj[1] = "";
              obj[2] = rsops.getString("correspondencia");
              obj[3] = rsops.getString("orden");
              opciones.addElement(obj.clone());
         rsops.close();
    %>
    <form action="resolverpreg.jsp" method="post" name="Correspondencias">
    <%
         String respEmpar = "";
         String respuestap="";
         String respcorres[] = {"",""};
         if(rsrespuesta.next()){     
              respuestap = rsrespuesta.getString("respuesta");
              respEmpar = rsrespuesta.getString("correspondencia");
              respcorres[0]= respuestap;
              respcorres[1]= respEmpar;
         rsrespuesta.close();
         if (tipo.equals("empar")){
    %>
    <%@ include file="resolvempar.jsp"%>
    <%}//fin if tipoPreg = 'emapar'
         else{
         if(tipo.equals("selec")){
    %> <%@ include file="reslovselec.jsp"%>
         <%}//fin if tipopreg = 'select'
         else{
              if(tipo.equals("complet")){%>
              <%@include file="resolvcomplet.jsp"%>
         <%}//fin if tipopreg='complet'
         else{
              if(tipo.equals("abierta")){%>
              <%@include file="resolvabierta.html"%>
              <%}//fin if tipopreg='abierta'
              else{%>
                   <span class="titolForum">Error: no se ingres&oacute; ning&uacute;n tipo de pregunta
                   o se est� accediendo en forma err&oacute;nea a este sitio.</span>
              <%}//fin else de tipopregunta = 'abierta'%>          
         <%}//fin else tipopreg='complet'%>                    
         <%}// fin else de tipopreg = 'select'%>     
    <%}//fin else de tipoPreg = 'emapar'%>
    <br>
    <input name="idpregunta" type="hidden" value="<%=idpreg%>">
    <input name="guardar" type="hidden" value="si">
    <input name="secuens" type="hidden" value="<%=(1+(Integer.parseInt(secuenc)))%>">
    <input type="submit" name="continuar" value="Continuar">
    </form>
    <%                    rsbpu.close();
                        }//fin 2.1                    
                        else{%>
    Ha terminado de realizar la prueba<br>
    <a href="elejCuestion.jsp">Continuar</a>
    <%}
                   }// fin if 2
                   stmtt.close();
                   stmtresp.close();
                   conn.close();
              }// fin try 1
              catch(Exception expt){
                   out.println("Error: "+expt);
         }//fin eles de if 1
    %>
    </body>
    </html>

  • Need help with an Error

    Hello, im using this class to query a table from my database. everything is ok, but when i write the closing } of the Main class the Program gives an error. In the main class ive wrote here at the bottom, the main class has no ending } . Now only the final } gives an error but everything else is ok, ive double checked all brackets, they are all in good place, what is going wrong?
    package DBandQueryHandler;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    class Main {
        public static void main(String[] args){
            Class driver_class=null;
                    try{    
                        driver_class=Class.forName("com.mysql.jdbc.Driver");         }
                    catch(ClassNotFoundException e){ 
                        e.printStackTrace(); 
                        return;
            System.out.println("Found Driver"+ driver_class);
            Connection connection=null;
            try{
                connection= DriverManager.getConnection("jdbc:mysql://localhost:3306/....", ".....", "........");
            catch(SQLException e){
                e.printStackTrace();
                return;
            try{
                System.out.println("Established connection to"+ connection.getMetaData().getURL());
            catch(SQLException e1){
                e1.printStackTrace();
            Statement statement=null;
            try{
                statement= connection.createStatement();
                statement.execute("SELECT * FROM KLANTEN");
                Resultset resset= statement.getResultSet();
                System.out.println("Row user_id, username, password, abbonement1, abbonement2, openstaand");
                while(resset.next()){
                    System.out.println(resset.getRow());
                    System.out.println("" + resset.getSring("user_id"));
                    System.out.println("" + resset.getSring("username"));
                    System.out.println("" + resset.getSring("password"));
                    System.out.println("" + resset.getSring("abbonement1"));
                    System.out.println("" + resset.getSring("abbonement2"));
                    System.out.println("" + resset.getSring("openstaand"));
                resset.close();
            catch(SQLException e){
                e.printStackTrace();
            finally{
                if(statement=null){
                    try{
                    statement.close();
                    catch(SQLException e){
                e.printStackTrace();
                if(connection=null){
                    try{
                    connection.close();
                    catch(SQLException e){
                e.printStackTrace();
       }

    javaboy2 wrote:
    Like i said, when i write all brackets correctly, the program gives errors, but when i delete the the last bracket, the program doesnt give errors(except for the last bracket=> '}' expected). I dont understand this.
    The errors of the program with correct amount of brackets are these: Yes, the errors come up with correct brackets because you have errors . When you take out the bracket, the structure is too bad so it doesn't look for the rest of the errors. This problem has absolutely nothing to do with brackets at all. That's why you needed to post the errors in your first post, rather than ignoring them and pretending your code is perfect and blaming it on brackets.
    And these errors would be fixed if you read them.
    Cannot find symbol ResultsetThat's because there is no class called Resultset. It's called ResultSet.
    Your if statements are using assignment instead of equality
    statement=null; //that assigns null to the statement object
    statement==null; //that checks to see if statement equals nullAgain, read your errors. They don't lie.

  • Need help with resolving error

    Hi,
    I am working on an ADF aaplication Each time I hit the execute button on my application I get the following error message,
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was null
    JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was null
    Does anyone know why this come up? and what can I do to resolve this issue?
    Be very grateful to get a response soon.

    The page is suppose to be a search page, you could key in all the information in all the fields, but not mandatory. when I run the seach and key the info, then hit execute, the first time it runs very fine, but if want to make a second search it come up with the error.
    I hope with this I could get some help.
    Thank you very much

  • Help visual basic users need help with compiling a .dll!!

    I just need someone to compile this .dll for me please since i dont have a visual basic. Thanks in advance!
    link: http://shrib.com/1Lso3eMG
    It's an online notepad I used to compile a little script for something. Please and thank you!

    Hi,
    Perhaps you can use this:
    https://msdn.microsoft.com/en-us/vstudio/hh388573
    As this question is not reporting an issue with the forums, I'll move this thread to the 'Where is the Forum For...?' forum.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Need help with download error on windows 8 computer.

    I have a windows 8 computer, and I have been trying to download Itunes to my computer but am getting an error that apple support was not included or that apple application support software was not found to uninstall and try again same thing several more times.

    With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • Help with compiling error

    Okay, so I've been making a cash register app, and the thing isn't compiling for me. I keep looking over this and I'm not sure why it isn't working, so I was hoping someone could point out what I've done wrong here.
    public class Receipt
            public static void main(String[] args) throws IOException
                    int q;
                    RetailItem retail = new RetailItem("Description", 1, 10.00, 10.00);
                    Scanner keyboard = new Scanner(System.in);
                    System.out.println("Enter quantity: ");
                    q = keyboard.nextInt();
                    CashRegister receipt = new CashRegister(retail, q);
                    FileWriter fwriter = new FileWriter("SalesReceipt");
                    PrintWriter outputFile = new PrintWriter(fwriter);
    "Receipt.java" 31L, 835C                                     1,1           Top
    import java.util.Scanner;
    import java.io.*;
    public class Receipt
            public static void main(String[] args) throws IOException
                    int q;
                    RetailItem retail = new RetailItem("Description", 1, 10.00, 10.00);
                    Scanner keyboard = new Scanner(System.in);
                    System.out.println("Enter quantity: ");
                    q = keyboard.nextInt();
                    CashRegister receipt = new CashRegister(retail, q);
                    FileWriter fwriter = new FileWriter("SalesReceipt");
                    PrintWriter outputFile = new PrintWriter(fwriter);
                    outputFile.println("\tSALES RECEIPT");
                    outputFile.println("Unit Price: $" + retail.getRetail());
                    outputFile.println("Quantity: " + q);
                    outputFile.println("Subtotal: $" + receipt.getSubtotal());
                    outputFile.println("Sales Tax: $" + receipt.getTax());
                    outputFile.println("\nTotal: $" + receipt.getTotal());
            outputFile.close();
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
                                                                                                                                                  1,1           All

    You know, the compiler errors also give you more detail than "isn't compiling for me". Do you expect people here to compile it for you to see the error you're already seeing and witholding?

  • Need help with Runtime error! Can't find "MediaDatabase" file! Folders are visible!

    Hi, I have been searching a lot for an answer to this issue. Elements keeps crashing after about five minuets and giving me "Microsoft Visual C++ Runtime Library" "Runtime Error!" "R6025 - pure virtual function call". I am running Premiere Elements 9.0 on windows 8.1 and I am trying to
    rebuild the "mediadatabase.db3" file, but cannot find it. I made my hidden folders visible, and followed the pathway, but I only get this. I have searched and searched but I can't find anything about windows 8.1. Only 7 and vista. Thanks in advance!

    Look for a line that resembles the following in the
    actionscript of the Flash fla files... It is likely to be in the
    first frame's code, but may not be.
    xmlData.load("teamTSI_en.xml");
    the '
    xmlData' part of that is not likely to be the same as what's
    in your file, it's a variable so it could be anything, and the file
    names will be whatever your xml files are.
    If you can post that line of code from each of the fla files,
    someone may be able to tell you where you need to place the xml
    files.

  • Need help with an error message: Can't repair volume.

    Hi, folks.
    While checking my HD with Disk Utility, I found a message error. It says that I have to repair the disk but the button "Repair Disk" is not available.
    The message is copied below... if anyone can read it and help me, I'd appreciate.
    Verifying volume “Macintosh HD”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Overlapped extent allocation (file 1022303 /Applications/Macromedia Dreamweaver MX 2004/Dreamweaver MX 2004/Contents/MacOS/Dreamweaver)
    Overlapped extent allocation (file 1034457 /Users/Johnny/Library/Mail/[email protected]/INBOX.mbox/Messages/16 143.emlx)
    Overlapped extent allocation (file 1034472 /Users/Johnny/Library/Caches/Mail/11/05/1521797044-3222719574.cache)
    Overlapped extent allocation (file 1035396 /Users/Johnny/Library/Mail/[email protected]/Junk E-Mail.mbox/Messages/16148.emlx)
    Overlapped extent allocation (file 1035401 /Users/Johnny/Library/Mail/[email protected]/Junk E-Mail.mbox/Messages/16149.emlx)
    Overlapped extent allocation (file Overlapped extent allocation (file s/DisplayPictures/[email protected]/VnRhV1J0dXR3eG41aG04T3UxOXIrU lZWZ3AwPQ==.png)
    Overlapped extent allocation (file 1042618 /Users/Johnny/Mercury/MSN/Resources/DisplayPictures/[email protected]/ R3FDbDlPNllTRGhhUmNXd3p2Sm55clQ0aUx3PQ==.png)
    Overlapped extent allocation (file 1049904 /Users/Johnny/Library/Mail/[email protected]/Sent Messages.mbox/Messages/16257.emlx)
    Overlapped extent allocation (file Overlapped extent allocation (file ail/02/12/4236346157-3219157957.cache)
    Overlapped extent allocation (file 1050553 /Users/Johnny/Library/Mail/[email protected]/Drafts.mbox/Messages/1 6261.emlx)
    Overlapped extent allocation (file 1050558 /Users/Johnny/Library/Mail/[email protected]/Drafts.mbox/Messages/1 6262.emlx)
    Overlapped extent allocation (file 1050573 /Users/Johnny/Library/Mail/[email protected]/Drafts.mbox/Messages/1 6263.emlx)
    1050573 /Users/Johnny/Library/Mail/[email protected]/Drafts.mbox/Messages/1 6263.emlx
    @)",1)
    1054976 /Users/Johnny/Mercury/MSN/Resources/CustomEmoticons/patinhodeborracha22@hotmail .com/NUxYOXd5ZkZiRjR0Wm5Ob3NZY0p6K09oWWFnPQ==.gif
    Overlapped extent allocation (file 1055000 /Users/Johnny/Mercury/MSN/Resources/DisplayPictures/patinhodeborracha22@hotmail .com/TzNFcmEzTWxaMmV4L0NOelVEUllsaEJjd1BRPQ==.png)
    Overlapped extent allocation (file 1057743 /Users/Johnny/Library/Mail/[email protected]@[email protected]/Sent Messages.mbox/Messages/16313.emlx)
    1057743 /Users/Johnny/Library/Mail/[email protected]@[email protected]/Sent Messages.mbox/Messages/16313.emlx
    t allocation (file %@)",1)
    1057789 /Users/Johnny/Documents/Yazigi/Events/OFICIO_SDUMA.doc
    Overlapped extent allocation (file 1057880 /Applications/Microsoft Office 2004/Clipart/Yázigi)
    Overlapped extent allocation (file 1058044 /Users/Johnny/Library/Caches/Mail/04/11/2078440011-2247275449.cache)
    Overlapped extent allocation (file 1058045 /Users/Johnny/Library/Caches/Mail/10/07/0272707744-3809369458.cache)
    Overlapped extent allocation (file Overlapped extent allocation (file ny/Library/Caches/Mail/00/15/2244060425-1075118591.cache)
    Overlapped extent allocation (file 1058051 /Users/Johnny/Library/Caches/Mail/09/11/0695285650-1820972980.cache)
    Overlapped extent allocation (file 1058052 /Users/Johnny/Library/Caches/Mail/00/11/0589583874-0597952182.cache)
    Overlapped extent allocation (file 1058053 /Users/Johnny/Library/Caches/Mail/05/12/0478257501-4274710467.cache)
    Overlapped extent allocation (file Overlapped extent allocation (file Mail/00/01/0993945094-0587616530.cache)
    Overlapped extent allocation (file 1058055 /Users/Johnny/Library/Caches/Mail/00/05/0791764484-0602406228.cache)
    Overlapped extent allocation (file 1058056 /Users/Johnny/Library/Caches/Mail/00/15/1220797701-0859034105.cache)
    Overlapped extent allocation (file 1058057 /Users/Johnny/Library/Caches/Mail/00/07/1625158921-0865946749.cache)
    Overlapped extent allocation (file Overlapped extent allocation (file 179-0596073421.cache)
    Overlapped extent allocation (file 1058060 /Users/Johnny/Library/Caches/Mail/00/11/1196125704-0590536112.cache)
    Overlapped extent allocation (file 1058062 /Users/Johnny/Library/Caches/Mail/00/11/1422978311-0856115643.cache)
    Overlapped extent allocation (file 1058063 /Users/Johnny/Library/Caches/Mail/04/12/2763023681-0835402695.cache)
    Overlapped extent allocation (file Overlapped extent allocation (file he)
    Overlapped extent allocation (file 1058065 /Users/Johnny/Library/Caches/Mail/00/03/1827339531-0863388223.cache)
    Overlapped extent allocation (file 1058066 /Users/Johnny/Library/Caches/Mail/07/03/3539577467-0911802683.cache)
    Overlapped extent allocation (file 1058067 /Users/Johnny/Library/Caches/Mail/00/04/1321888006-0860911682.cache)
    Overlapped extent allocation (file 1058069 /Users/Johnny/Library/Caches/Mail/00/02/1726249226-0867834918.cache)
    1058069 /Users/Johnny/Library/Caches/Mail/00/02/1726249226-0867834918.cache
    extent allocation (file %@)",1)
    1058070 /Users/Johnny/Library/Caches/Mail/05/01/0121999446-2569076246.cache
    Overlapped extent allocation (file 1058071 /Users/Johnny/Library/Caches/Mail/12/14/3415372742-4138529506.cache)
    Overlapped extent allocation (file 1058076 /Users/Johnny/Library/Application Support/Skype/joaopaulo_yazigi/chatsync/19/19e520537f725be8.dat)
    Overlapped extent allocation (file Overlapped extent allocation (file nc/d5/d5f85bf4508148d5.dat)
    Overlapped extent allocation (file 1074308 /Users/Johnny/Library/Caches/com.apple.AddressBook/MetaData/2A56AA5D-FD59-4B78- BF65-25589E601017/ABPerson.abcdp)
    Overlapped extent allocation (file 1083386 /Users/Johnny/Music/iTunes/iTunes Music/Podcasts/NEWSWEEK On Air Podcast/NEWSWEEK On Air 1092005.mp3)
    Overlapped extent allocation (file Overlapped extent allocation (file XlSOE96L2VJPQ==.png)
    Overlapped extent allocation (file 1094018 /Users/Johnny/Library/Application Support/Skype/joaopaulo_yazigi/chatsync/15/150fcbaa76a7fb93.dat)
    Overlapped extent allocation (file 1120553 /Users/Johnny/Documents/Yazigi/Events/PRELISTAECOLOCICA2005.doc)
    Overlapped extent allocation (file 1182160 /Users/Johnny/Library/Mail/[email protected]@[email protected]/Sent Messages.mbox/Messages/17264.emlx)
    Overlapped extent allocation (file Overlapped extent allocation (file /Users/Johnny/Library/Mail/[email protected]@[email protected]/Sent Messages.mbox/Messages/17267.emlx)
    Overlapped extent allocation (file 1182217 /Users/Johnny/Library/Mail/[email protected]@[email protected]/Sent Messages.mbox/Messages/17269.emlx)
    Checking multi-linked files.
    Checking Catalog hierarchy.
    Checking Extended Attributes file.
    Checking volume bitmap.
    Volume Bit Map needs minor repair_
    Checking volume information.
    Invalid volume free block count_
    (It should be 3677631 instead of 3677630)
    The volume Macintosh HD needs to be repaired.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair
    Thanks in advance.
    JP

    You will need to try and repair the drive with Disk Warrior. Otherwise, the only option is to reformat the drive. Note that DW may not be successful in fixing all the errors, and you may end up having to reformat anyway.
    It may be possible to fix the problem manually, but it's quite involved. Here's the info:
    http://docs.info.apple.com/article.html?artnum=25770
    Manually fix Overlapped Extent Allocation Errors without Disk Warrior
    Overlapped overlapped extent allocation errors can be the bane of any Mac user's existence. Often, these errors go unnoticed until the problem becomes visible: your Mac might refuse to boot, crash unexpected, or worse, critical data might disappear from the Finder. Disk Utility can detect, but not fix overlapped extent allocation errors, and certain third-party utilities, such as Alsoft Diskwarrior, can fix them, but generally without reporting the consequences.
    Overlapped extent allocation error occur when the file system thinks that two files are occupying the same area on the hard disk, hence overlapping on the same "inode," which is the structure which holds the location of the data blocks the file occupies, and also file permissions and flags.
    Clearing the "overlapped" or "overallocated" extent allocation essentially means that you'll have to lose some data, because the only way to remove the overlap is to delete the file that's occupying the inode. So, if you suspect, or find out, that the guilty file is a critical system file that resides in one of the hidden system directories such as /etc /var /usr/ or visible system directories such as /System or /Library, and you don't want to reinstall the whole OS (which might not fix the overlapped extent allocation anyway), it's good to have another disk available to copy the files back to your original disk if necessary: a second bootable hard drive or a firewire drive connected to your Mac when you remove the misbehaving file. Just make sure that when you copy the file back to your boot disk that the permissions are correct, so it's best to use the "ditto" command, so that all sticky bits, flags, and permissions are preserved.
    In case you didn't know, you don't have to boot from an install CD in order to check for overlapped extent allocations. All you need to do is restart your Mac, while holding down command + S to boot in "single-user mode."
    At the command prompt that appears, type:
    $ fsck -fy
    If you have an overlapped extent allocation, you'll see:
    "Overlapped Extent Allocation" (File 123456d)
    No matter how many times you run fsck -fy, you'll never be rid of the error.
    So, simply issue the following command:
    find / -inum 123456 -print
    Note the "d" was dropped, or any extra letter that appears after the inode number.
    The find will return a file name that matches with the inode number, and the path to that file. If you remove the file then the fsck will not return this error next time you run it.
    However, before you can delete the file(s) in single-user mode, you'll need to mount the file system. Type:
    $ mount -uw /
    When done, issue the "sync" command, and that will flush the write cache so that all pending writes are written from memory to the disk. Also, since most OS X 10.3 Macs use the HFS+ Journaled file system, it might be a good idea to disable the journal before booting into single-user mode by typing:
    $ sudo diskutil disableJournal /
    then re-enable it when done fixing the overlapped extents and rebooting normally:
    $ sudo diskutil enableJournal /
    Chris Anderson is a long-time Linux propellerhead who just got his first Mac, an ibook G4, and can't keep his hands off of it. He currently works as a "The Architect" and general visionary for a maker of world-class collectibles.

  • I need help with Capturing error message

    I shot some DVNTSC footage in widescreen on my sony Handycam.
    I set up my final capture presets to capture DVNTSC Anamorphic. When I try to capture I get an error message saying... Dropped frames were detected in my video footage.
    Final cut gets all hung up and won't capture a thing.
    Can anyone help me with this problem?
    Thanks

    What David is saying is that it's not recommended to capture to your internal drive. It's already running the OS and the software, trying to write video to it at the same time can often cause, imagine that, dropped frames.
    The second setup you mention is also not recommended. USB hard drives transfer data in bursts, instead of firewire's stream. This can lead to, imagine that, dropped frames.
    And finally, the firewire drive and camera attached to the same FW bus will essentially double the data rate needed, and is not recommended, as it will cause, imagine that, dropped frames.
    The solution you should be looking for is a express/34 card with an external SATA attached to avoid the bottlenecks you are experiencing.

  • Need help with an error message when making changes to an IMAP account

    I have several IMAP accounts in my Mac Mail. Today when I tried to edit the, "Full Name" associated with the account I got an error message that said:
    Invalid Directory
    The account path /Users/kristen/Library/Mail/[email protected]@host365.ISPhost.com is already being used by the account "Silver"
    Did I somehow corrupt something? I'm not sure why making this small change to the full name would cause such an error. Please help.
    Thanks!!

    stop() forcibly kills a thread. You shouldn't use this method because if the thread is in a critical section of code, you can cause data corruption or deadlock.
    Instead, if you need to stop execution from another thread, invoke the interrupt() method.
    Good luck.

Maybe you are looking for

  • How to store multiple format text file in a oracle table

    Hi, I want to store a file which has multiple format for field separation so is it possible in Oracle data integrator if yes then how ..... Waiting for reply regards palash

  • PDF books not exported in XML library

    I just migrated from Windows XP to Windows 7.  I used my ITunes Library XML, and iTunes Playlist I'd previously saved to move and restore my iTunes music and video library.  That worked great,though I did have to re-tag some video files as "TV shows"

  • Dreamweaver problems! HELP!!

    So I'm new to Dreamweaver and web-design altogether. These are going to be stupid questions, but I've been tearing my hair out trying to find information through the Adobe Help system and online tutorials. I have a flash video. I want it to play when

  • ALV  program

    i have written a code below. i am facing problem in the select statement. i want to all the data of it_vbap and it_vbep to be transferred to it_final, this code is giving some error. kindly help. the main problem im facing in linking the fields of vb

  • How to use *166# operator service codes on N900?

    Please let someone help me to find a solution for getting the balance and other service commands on N900.