×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    10

    Problem with MultipartMessage

    I'am developing an application thas send a MMS. I have a nokia 6280. I use de jsr120 thas it's supported by de phone and I'am programming in J2ME. Now my problem is that the program run ol in WTK and in a motorola phone but when I execute it in my nokia an Error apear:

    No Class Def Found Error java/lang/NoClassDefFoundError

    javax/wirelees/messaging/MultipartMessage


    The problem is when I add a multipart in the message.This is the code that I use:

    texto = cadena.getBytes("UTF-8");
    /** Abre la conexion de para enviar el mensaje */
    conexion = (MessageConnection) Connector.open(address);

    MultipartMessage mmmensaje = (MultipartMessage) conexion.newMessage(MessageConnection.MULTIPART_MESSAGE);

    mmmensaje.setAddress(address);
    partes.addElement(new MessagePart(texto, 0, texto.length,
    "text/plain", "id0",
    "contentLocation", "UTF-8"));

    MessagePart[] partesArray = new MessagePart[partes.size()];
    partes.copyInto(partesArray);

    for (int i = 0; i < partesArray.length; i++) {
    mmmensaje.addMessagePart(partesArray[i]);
    }
    mmmensaje.setSubject(cabecera);


    conexion.send(mmmensaje);
    //conexion.send(null);
    principal.online.append("MMS enviado",null);
    } catch (Exception e) {


    Someone know where is the problem? How I do for resolve the problem.It's very important for me pleasse. Thera are other way to do it in J2ME?

    Thanks a lot

  2. #2
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Problem with MultipartMessage

    Hi,

    I provided a reply there - http://discussion.forum.nokia.com/fo...ad.php?t=92557

    Please do not crosspost, ok?

    BR,

    Juarez Jr
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  2. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  3. WAP service problem on Apache
    By bigg_o in forum Browsing and Mark-ups
    Replies: 3
    Last Post: 2005-04-17, 16:05
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×