Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6073523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:16:48+00:00 2026-05-23T10:16:48+00:00

I am not able to view any content in the emulator while running the

  • 0

I am not able to view any content in the emulator while running the application. The Build is not failed and i am able run the application successfully. While i am closing the emulator i am getting an error. i can provide both code and log here.

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import java.io.*;
import java.lang.*;
import javax.microedition.io.*;
import javax.microedition.rms.*;


public class Login extends MIDlet implements CommandListener {
    TextField ItemName=null;
    TextField ItemNo=null;
    TextField UserName=null;
    TextField Password=null;
    Form authForm,mainscreen;
    TextBox t = null;
    StringBuffer b = new StringBuffer();
    private Display myDisplay = null;
    private Command okCommand = new Command("Login", Command.OK, 1);
    private Command exitCommand = new Command("Exit", Command.EXIT, 2);
    private Command sendCommand = new Command("Send", Command.OK, 1);
    private Command backCommand = new Command("Back", Command.BACK, 2);
    private Alert alert = null;

    public Login() {
        ItemName=new TextField("Item Name","",10,TextField.ANY);
        ItemNo=new TextField("Item No","",10,TextField.ANY);
        myDisplay = Display.getDisplay(this);
    UserName=new TextField("Your Name","",10,TextField.ANY);
    Password=new TextField("Password","",10,TextField.PASSWORD);
    authForm=new Form("Identification");
    mainscreen=new Form("Logging IN");
        mainscreen.addCommand(sendCommand);
    mainscreen.addCommand(backCommand);
    authForm.append(UserName);
    authForm.append(Password);
    authForm.addCommand(okCommand);
    authForm.addCommand(exitCommand);
    authForm.setCommandListener(this);
    myDisplay.setCurrent(authForm);
    }

    public void startApp() throws MIDletStateChangeException {
    }

    public void pauseApp() {
    }



    protected void destroyApp(boolean unconditional)
            throws MIDletStateChangeException {
    }


    public void commandAction(Command c, Displayable d) {

        if ((c == okCommand) && (d == authForm)) {
    if (UserName.getString().equals("") || Password.getString().equals("")){
        alert = new Alert("Error", "You should enter Username and Password", null, AlertType.ERROR);
        alert.setTimeout(Alert.FOREVER);
        myDisplay.setCurrent(alert);
    }
    else{
    //myDisplay.setCurrent(mainscreen);
    login(UserName.getString(),Password.getString());
    }
    }
        if ((c == backCommand) && (d == mainscreen)) {
        myDisplay.setCurrent(authForm);
    }
    if ((c == exitCommand) && (d == authForm)) {
        notifyDestroyed();
    }
        if ((c == sendCommand) && (d == mainscreen)) {
            if(ItemName.getString().equals("") || ItemNo.getString().equals("")){

            }
            else{
        sendItem(ItemName.getString(),ItemNo.getString());
            }
    }
    }



        public void login(String UserName,String PassWord) {
    HttpConnection connection=null;
    DataInputStream in=null;
    String url="http://olario.net/submitpost/submitpost/login.php";

    OutputStream out=null;
    try
    {
        connection=(HttpConnection)Connector.open(url);
        connection.setRequestMethod(HttpConnection.POST);
        connection.setRequestProperty("IF-Modified-Since", "2 Oct 2002 15:10:15 GMT");
        connection.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
        connection.setRequestProperty("Content-Language", "en-CA");
        connection.setRequestProperty("Content-Length",""+ (UserName.length()+PassWord.length()));
        connection.setRequestProperty("username",UserName);
        connection.setRequestProperty("password",PassWord);
    out = connection.openDataOutputStream();
    out.flush();
    in = connection.openDataInputStream();
    int ch;
    while((ch = in.read()) != -1) {
        b.append((char) ch);
        //System.out.println((char)ch);
    }
    //t = new TextBox("Reply",b.toString(),1024,0);
    //mainscreen.append(b.toString());
    String auth=b.toString();
    if(in!=null)
        in.close();
    if(out!=null)
        out.close();
    if(connection!=null)
        connection.close();

    if(auth.equals("ok")){
                mainscreen.setCommandListener(this);
        myDisplay.setCurrent(mainscreen);

    }
        }
    catch(IOException x){

        }


        }


       public void sendItem(String itemname,String itemno){
           HttpConnection connection=null;
    DataInputStream in=null;
    String url="http://www.olario.net/submitpost/submitpost/submitPost.php";

    OutputStream out=null;
    try
    {
        connection=(HttpConnection)Connector.open(url);
        connection.setRequestMethod(HttpConnection.POST);
        connection.setRequestProperty("IF-Modified-Since", "2 Oct 2002 15:10:15 GMT");
        connection.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
        connection.setRequestProperty("Content-Language", "en-CA");
        connection.setRequestProperty("Content-Length",""+ (itemname.length()+itemno.length()));
        connection.setRequestProperty("itemCode",itemname);
        connection.setRequestProperty("qty",itemno);
    out = connection.openDataOutputStream();
    out.flush();
    in = connection.openDataInputStream();
    int ch;
    while((ch = in.read()) != -1) {
        b.append((char) ch);
        //System.out.println((char)ch);
    }
    //t = new TextBox("Reply",b.toString(),1024,0);
    //mainscreen.append(b.toString());
    String send=b.toString();
    if(in!=null)
        in.close();
    if(out!=null)
        out.close();
    if(connection!=null)
        connection.close();

    if(send.equals("added")){
                alert = new Alert("Error", "Send Successfully", null, AlertType.INFO);
        alert.setTimeout(Alert.FOREVER);
        myDisplay.setCurrent(alert);

    }
        }
    catch(IOException x){

        }

       }
} 

and the log is

pre-init:
pre-load-properties:
exists.config.active:
exists.netbeans.user:
exists.user.properties.file:
load-properties:
exists.platform.active:
exists.platform.configuration:
exists.platform.profile:
basic-init:
cldc-pre-init:
cldc-init:
cdc-init:
ricoh-pre-init:
ricoh-init:
semc-pre-init:
semc-init:
savaje-pre-init:
savaje-init:
sjmc-pre-init:
sjmc-init:
ojec-pre-init:
ojec-init:
cdc-hi-pre-init:
cdc-hi-init:
nokiaS80-pre-init:
nokiaS80-init:
nsicom-pre-init:
nsicom-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
deps-jar:
pre-preprocess:
do-preprocess:
Pre-processing 0 file(s) into /home/sreekumar/NetBeansProjects/Login/build/preprocessed directory.
post-preprocess:
preprocess:
pre-compile:
extract-libs:
do-compile:
post-compile:
compile:
pre-obfuscate:
proguard-init:
skip-obfuscation:
proguard:
post-obfuscate:
obfuscate:
lwuit-build:
pre-preverify:
do-preverify:
post-preverify:
preverify:
pre-jar:
set-password-init:
set-keystore-password:
set-alias-password:
set-password:
create-jad:
add-configuration:
add-profile:
do-extra-libs:
nokiaS80-prepare-j9:
nokiaS80-prepare-manifest:
nokiaS80-prepare-manifest-no-icon:
nokiaS80-create-manifest:
jad-jsr211-properties.check:
jad-jsr211-properties:
semc-build-j9:
do-jar:
nsicom-create-manifest:
do-jar-no-manifest:
update-jad:
Updating application descriptor: /home/sreekumar/NetBeansProjects/Login/dist/Login.jad
Generated "/home/sreekumar/NetBeansProjects/Login/dist/Login.jar" is 3501 bytes.
sign-jar:
ricoh-init-dalp:
ricoh-add-app-icon:
ricoh-build-dalp-with-icon:
ricoh-build-dalp-without-icon:
ricoh-build-dalp:
savaje-prepare-icon:
savaje-build-jnlp:
post-jar:
jar:
pre-run:
netmon.check:
open-netmon:
cldc-run:
Copying 1 file to /home/sreekumar/NetBeansProjects/Login/dist/nbrun4244989945642509378
Copying 1 file to /home/sreekumar/NetBeansProjects/Login/dist/nbrun4244989945642509378
Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet//home/sreekumar/NetBeansProjects/Login/dist//Login.jad
Starting emulator in execution mode
Running with storage root /home/sreekumar/j2mewtk/2.5.2/appdb/temp.DefaultColorPhone1
/home/sreekumar/NetBeansProjects/Login/nbproject/build-impl.xml:915: Execution failed with error code 143.
BUILD FAILED (total time: 35 seconds) 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:16:49+00:00Added an answer on May 23, 2026 at 10:16 am

    I think this is not coding related issue. If multiple instances of the same emulator skin run simultaneously, the toolkit generates unique file paths for each one. For example, on Windows instances of DefaultColorPhone might have a file path name of workdir\appdb\temp.DefaultColorPhone1, workdir\appdb\temp.DefaultColorPhone2, and so forth.

    Solution: The file workdir\appdb\DefaultColorPhone\in.use keeps track of the number of storage roots marked as in use. If the emulator crashes, you need to delete the in.use file

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created one application that is inserting messages programmatically. In that application running successfully.
I am not able to access localhost https pages in firefox3. It gave the
I am not able to use the breakpoint in Studio with Javascript. I'm able
Why are we not able to override an instance variable of a super class
I am not able to figure out this simple thing in ASP.NET MVC: I
My issue is not able to render the chart in .tpl file. The following
I am not able to flush stdin here, is there a way to flush
I am not able to make a clear decision on this one. I am
I am not able to get my jwysiwyg and Jhtmlarea text editors to work
I am not able to figure out why it is not tracing value for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.