[Mmslib-devel] Jmmslib Null pointer exception
Status: Alpha
Brought to you by:
koobla
|
From: Leonardo A. <lad...@al...> - 2009-11-02 17:12:00
|
Good Morning,
I'm getting the following error message, when I execute the sendmms command.
Exception in thread "main" java.lang.NullPointerException
at net.sourceforge.jmmslib.MmsMessage.isDeliveryReportEnabled(Unknown Source)
at net.sourceforge.jmmslib.MmsEncoder.encodeMessage(Unknown Source)
at net.sourceforge.jmmslib.sendmms.SendMms.buildMMS(SendMms.java:204)
at net.sourceforge.jmmslib.sendmms.SendMms.main(SendMms.java:423)
If I quote line 204
Line 204 -> this.encodedMms = mmse.encodeMessage();
Execution continues but stops later at the error mentioned on e-mal below.
Does it make sense to quote line 204? What is that line for?
Regards,
Leonardo
----- Original Message -----
From: Leonardo Adarmes
To: mms...@li... ; con...@al...
Sent: Monday, November 02, 2009 1:14 AM
Subject: JMmsLib Unnkown Exeption
Hi,
I'm currently trying to send an mms using the JmmsLib but I get the following error when I try to send the mms using the same IP Address I have configured and working on my mobile to send mms (200.35.64.73)
java.net.UnknownHostException: "200.35.64.73"
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressFromNameService(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at net.sourceforge.jwap.WAPClient.<init>(Unknown Source)
at net.sourceforge.jmmslib.sendmms.SendMms.sendMMS(SendMms.java:215)
at net.sourceforge.jmmslib.sendmms.SendMms.main(SendMms.java:434)
214 private void sendMMS(String wapGatewayHost, int wapGatewayPort, String servlet) throws IllegalStateException, IOException, MmsDecoderException, MmsMessageException {
215 WAPClient wapClient = new WAPClient(wapGatewayHost, wapGatewayPort); //THIS LINE
216 PostRequest request = new PostRequest(servlet);
My current settings on the file sendmms.properties are:
APN: mms.movistar.ve
Login: <vacío>
Pass: <vacío>
#IP address of the wap gateway
waphost="200.35.64.73"
#Port number of the wap gateway
wapport=9001
#Servlet through which send the mms
mmsservlet=http://mms.movistar.com.ve:8088/mms
#Define the sender
sender=
When I execute the SendMms.class with the arguments "+584241781303 -t example_text" I get the error described above.
Any thougts? I would really aprreciate if you can provide me some help on this.
Regards,
Leonardo |