lukeme / gobible

Automatically exported from code.google.com/p/gobible
1 stars 0 forks source link

Send MMS gives Message too large to be sent with java Exception error #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Try to send a single verse by Send MMS.

Go Bible 2.3.6 and 2.4.0 both give "Message too large to be sent", with a
java Exception error.

Initially reported by David Liu.

Confirmed by me on SE K800i phone.

Original issue reported on code.google.com by DFH...@gmail.com on 30 Dec 2009 at 7:02

GoogleCodeExporter commented 8 years ago
Version 2.2.4 also had the same bug. "Illegal argument exception."

This feature must not be used very often, as nobody else had reported it before.

Original comment by DFH...@gmail.com on 30 Dec 2009 at 7:15

GoogleCodeExporter commented 8 years ago
Before it gets to this stage, the display asks, "Allow application to receive
messages?".  You'd expect it to ask, "Allow application to send messages?"

This may be evidence of the wrong JSR call having been coded. 

Original comment by DFH...@gmail.com on 30 Dec 2009 at 7:18

GoogleCodeExporter commented 8 years ago
Version 2.2.2 also had the same bug.

This was released on 2007-02-06, which was before I became involved with Go 
Bible,
and when Jolon was the sole programmer.

Because the SE K750i does not have MMS support, this was not something I could 
test
on my own phone.

Original comment by DFH...@gmail.com on 30 Dec 2009 at 7:42

GoogleCodeExporter commented 8 years ago
We should try to fix this before releasing version 2.4.0

Original comment by DFH...@gmail.com on 30 Dec 2009 at 7:46

GoogleCodeExporter commented 8 years ago
I too am unable to even see this option on my own device .. so I too can't test 
it. 
I will try to find another device.

Original comment by dhinton...@gmail.com on 6 Jan 2010 at 5:57

GoogleCodeExporter commented 8 years ago
My wife's SE K800i phone does have Send MMS in the Go Bible menu.

So I can test and provide feedback, thought this would be a rather long-winded 
loop.

Original comment by DFH...@gmail.com on 9 Jan 2010 at 6:19

GoogleCodeExporter commented 8 years ago
I have not found a device yet - so I'm glad that you have. I look forward to 
hearing 
what you find out.

Original comment by dhinton...@gmail.com on 11 Jan 2010 at 3:54

GoogleCodeExporter commented 8 years ago
I still do not have a device to test on.

Original comment by dhinton...@gmail.com on 19 Jan 2010 at 3:59

GoogleCodeExporter commented 8 years ago
I've installed another JVM on my device that supports JSR-120. I just now sent 
(SMS) 
and recieved Genesis 1:26 as a text message to my device. 

I have seen the 'Message is to large to be sent' error message though on 
previous 
attempts. When the verse range contained too much data and when I didn't put in 
a 
phone number.

Maybe the error msgs should be more robust and not give the same msg for 
different 
errors. 

Other than modifying the error msgs - I'm not sure what is to be fixed. I have 
now 
sent text messages from various verses from 2.3.6 and 2.4.0 PRERELEASE.

Original comment by dhinton...@gmail.com on 19 Jan 2010 at 9:05

GoogleCodeExporter commented 8 years ago
Though testing Send SMS is a step along the way to proving your JVM functions 
OK,
this issue relates ONLY to Send MMS.

The Java exception occurs for all verses when you Send MMS, even a verse as 
short as
"Jesus wept".

btw. Not all phones support MMS. My K750i doesn't, though my wife's K800i does.

Original comment by DFH...@gmail.com on 19 Jan 2010 at 9:35

GoogleCodeExporter commented 8 years ago
You wrote, "Maybe the error msgs should be more robust and not give the same 
msg for
different errors."

I think this should be separated as a new issue.

All GB error messages should reflect the true cause.

Original comment by DFH...@gmail.com on 19 Jan 2010 at 9:37

GoogleCodeExporter commented 8 years ago
I took this photo of the K800i while it was trying to Send MMS.

The picture was taken using my K750i.

Refer to earlier comments dated Dec 30, 2009.

"Allow application to receive messages?" is surely not the right question to be 
asked
when you want to Send a Multimedia Message.

Why does it ask me this?
After clicking "Yes", then I get the Java exception error, and it fails to send 
anything.

If I try Send MMS again (while still in the same Go Bible application), this 
question
is skipped, but the rest of the symptoms are still the same.

Original comment by DFH...@gmail.com on 4 Feb 2010 at 2:28

Attachments:

GoogleCodeExporter commented 8 years ago
Attached is the McCheyne Go Bible made using 2.4.0

Original comment by DFH...@gmail.com on 4 Feb 2010 at 2:32

Attachments:

GoogleCodeExporter commented 8 years ago
I took this photo of the K800i while it was trying to Send MMS.

The picture was taken using my K750i.

Refer to earlier comments dated Dec 30, 2009.

"Allow application to receive messages?" is surely not the right question to be 
asked
when you want to Send a Multimedia Message.

Why does it ask me this?
After clicking "Yes", then I get the Java exception error, and it fails to send 
anything.

If I try Send MMS again (while still in the same Go Bible application), this 
question
is skipped, but the rest of the symptoms are still the same.

Original comment by DFH...@gmail.com on 4 Feb 2010 at 2:34

Attachments:

GoogleCodeExporter commented 8 years ago
After the "Message too large to be sent error" I print out the actual internal 
Java message, which on my Nokia 
E63 says "Unrecognized type text".

So the error is not caused by the size of the message but the API calls which 
are being used to send it.

I use the TextMessage class to construct a text message to be sent with SMS 
(see SendSMSForm.java line 
166). I presumed this would also work with MMS but it looks like it doesn't. 
Instead you will need to construct 
a MultipartMessage object, which is a bit more complicated. The JSR 205 spec 
will have some information, a 
Google search might also help.

Original comment by jol...@gmail.com on 8 Feb 2010 at 9:50

GoogleCodeExporter commented 8 years ago
Thanks for the tip. I trust Dan will be able to follow this up when he has time.

Original comment by DFH...@gmail.com on 8 Feb 2010 at 10:43

GoogleCodeExporter commented 8 years ago
As requested, the MMS menu command has been commented out for the next release 
- 
2.4.0. After that release this could be enabled again and the code corrected to 
use 
Multipart message.

Original comment by dhinton...@gmail.com on 25 Mar 2010 at 7:58

GoogleCodeExporter commented 8 years ago
Please verify that other menu choices are not adversely affected.

Do the shortcut numeric keys stay the same for menu options after "Send verse 
as MMS"
when this option has been commented out? Or do they shift by one?

Original comment by DFH...@gmail.com on 25 Mar 2010 at 9:57

GoogleCodeExporter commented 8 years ago
See MenuShortcuts

Original comment by DFH...@gmail.com on 29 Mar 2010 at 2:39

GoogleCodeExporter commented 8 years ago
This has been move to a "post" 2.4.0 release issue. The command has been 
commented 
out from the code and the correct code will be added when this issue is made 
active 
again.

Original comment by dhinton...@gmail.com on 31 Mar 2010 at 4:17

GoogleCodeExporter commented 8 years ago
WontFix made the issue not Open, so gives the issue less visibility.
I have reverted status to Accepted.

I have temporarily changed priority from Critical to Medium.
We will simply not meet the next milestone (2.4.0) with a fix.

Priority Low would be right semantically, but it just doesn't seem appropriate 
for
these circumstances.

Original comment by DFH...@gmail.com on 31 Mar 2010 at 4:49

GoogleCodeExporter commented 8 years ago
GBC_2.4_Readme.txt includes this line:

 - Send MMS option has been disabled. This is a temporary expedient for a feature
that did not work.

See also my first comment in MenuShortcuts.

Original comment by DFH...@gmail.com on 31 Mar 2010 at 4:52

GoogleCodeExporter commented 8 years ago

Original comment by DFH...@gmail.com on 20 Mar 2011 at 10:10