BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-25-2008, 02:40 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default error executing application in device

Please Login to Remove!

Hi

I have an application in netbeans with plugin Blackberry, in my computer run correctly but when I installa the application in my blackberry device and I execute it give me the error "Uncaught error: java.lang.illegalArgumentExceptio"

Do you know why give this error? The model of my blackberry is curve 8310.

Thanks, Oscar
Offline  
Old 04-25-2008, 04:52 AM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Feb 2008
Model: 8310
PIN: N/A
Carrier: Informatico
Posts: 56
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I try to load another application that it's made in MIDlet and goes perfectly, but my application make in UIapplication(canvas) give this error. why?

this is part of the code of my application:

package ServiGest;

/**
* Inicio.java
* Copyright (C) 2001-2004 Research In Motion Limited. All rights reserved.
*/

import java.io.IOException;
import java.io.InputStream;

import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import javax.microedition.lcdui.StringItem;

import net.rim.device.api.ui.MenuItem;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.component.EditField;
import net.rim.device.api.ui.component.PasswordEditField;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.Menu;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.component.SeparatorField;
import net.rim.device.api.ui.FocusChangeListener;
import net.rim.device.api.ui.FieldChangeListener;
import net.rim.device.api.ui.Field;

import org.ksoap2.*;
import org.ksoap2.serialization.*;
import org.ksoap2.serialization.SoapSerializationEnvelope .*;
import org.ksoap2.transport.*;

import org.kxml.*;
import org.kxml.io.*;
import org.kxml.parser.*;

import java.io.InputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.InputStreamReader;
import org.kxml2.io.KXmlParser;
import net.rim.device.api.ui.container.VerticalFieldManag er;
import net.rim.device.api.ui.container.HorizontalFieldMan ager;
import net.rim.device.api.ui.Font;
import net.rim.device.api.ui.FontFamily;

public class Rutas extends UiApplication {
public String CadenaConexion = "http://192.168.0.3/WEB_SERVICE/";
public static void main(String[] args) {
Rutas theApp = new Rutas();
theApp.enterEventDispatcher();
}
public Rutas() {
pushScreen(new ConfigurarPantalla());
}
}

final class ConfigurarPantalla extends MainScreen {
private PasswordEditField _password;
private String operario_descripcion;
private String operario_actual;

// Menu items. opción continuar
private MenuItem _continuar = new MenuItem("Aceptar", 110, 10)
{
public void run()
{
onSave();
}
};
Offline  
Old 04-25-2008, 06:47 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

afaik you cannot mix RIM's ui elements with those from lcdui
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2014 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.