Ok, now i can see where everything went wrong. Thus, i have followed:
"
http://smslib.org/doc/installation/

Apache log4j

SMSLib uses Apache log4j as its logging framework.

Download log4j from here. You need to have the log4j-1.2.15.jar file
(v1.2.15 was the current version at the time of this writing)
somewhere in your classpath or in Java's lib/ext directories or in lib
directory of project.
"
So as it comes to the log4j.properties now, I found it but as for how
to install it am not sentient but I placed it in the directory where
the package will be as:
  http://www.mobilefish.com/developer/log4j/log4j.html

So may be i have gone wrong since it still can't give me the needed log.

Thanks.



On Tue, Apr 17, 2012 at 7:15 AM, T.Delenikas <[email protected]> wrote:
> In the distribution zip, you'll find a "log4j.properties" file. INstall it
> properly and you will see lots of debug statements on your console.
> (The code you've pasted is not the debug log - it's just the output of the
> app).
>
> On Monday, April 16, 2012 5:18:14 PM UTC+3, Mothepu Monku wrote:
>>
>> If that's the request data, here it is:
>>
>>   Modem Information:
>>   Manufacturer: Manufacturer
>>   Model: USB MODEM
>>   Serial No: 354491022004793
>>   SIM IMSI: ** MASKED **
>>   Signal Level: -61 dBm
>>   Battery Level: 0%
>>
>> java.lang.StringIndexOutOfBoundsException: String index out of range: -7
>>     at java.lang.String.substring(String.java:1938)
>>     at
>> org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:544)
>>     at org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:210)
>>     at org.smslib.Service.readMessages(Service.java:500)
>>     at org.smslib.Service.readMessages(Service.java:388)
>>     at modem.ReadMessages.doIt(ReadMessages.java:99)
>>     at modem.ReadMessages.main(ReadMessages.java:160)
>>
>> Process completed.
>>
>> Thanks.
>>
>> On Mon, Apr 16, 2012 at 2:11 PM, weber de souza calixto
>> <[email protected]> wrote:
>> > The guy just asked you to send the error log.
>> >
>> > Em 16 de abril de 2012 07:24, Mothepu Monku <[email protected]>
>> > escreveu:
>> >
>> >> Or may am not sentient of what your actually try to address in general.
>> >>
>> >> On Mon, Apr 16, 2012 at 12:12 PM, Mothepu Monku
>> >> <[email protected]>
>> >> wrote:
>> >> > I don't really get the question. May you please re-phrase it.
>> >> >
>> >> > On Mon, Apr 16, 2012 at 11:47 AM, Thanasis <[email protected]> wrote:
>> >> >> Can  you post the debug log from the ReadMessages sample?
>> >> >>
>> >> >>
>> >> >> On 16 April 2012 12:15, Mothepu Monku <[email protected]>
>> >> >> wrote:
>> >> >>>
>> >> >>> Hi all!!!
>> >> >>> What is actually read? I mean only the new massege or each and
>> >> >>> every
>> >> >>> massege which is available in my modem? This is because i have
>> >> >>> deleted
>> >> >>> all af them and re-sent the pure text massege to the modem but i
>> >> >>> get
>> >> >>> the same error?
>> >> >>>
>> >> >>> Thanks
>> >> >>>
>> >> >>> On Mon, Apr 16, 2012 at 11:03 AM, Thanasis Delenikas
>> >> >>> <[email protected]>
>> >> >>> wrote:
>> >> >>> > this usually happens when there is a message that smslib cannot
>> >> >>> > read,
>> >> >>> > like vcards, etc.
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > On 16 Apr 2012, at 10:29, Mothepu Monku <[email protected]>
>> >> >>> > wrote:
>> >> >>> >
>> >> >>> >> Hi all!!
>> >> >>> >> I don’t know which way I should take to solve this error below.
>> >> >>> >> So
>> >> >>> >> please help me out whether the problem is on my modem or I have
>> >> >>> >> left
>> >> >>> >> something on prerequisite. But the sent example is working
>> >> >>> >> correctly.
>> >> >>> >>
>> >> >>> >> ““
>> >> >>> >> --------------------Configuration: <Default>--------------------
>> >> >>> >> Example: Read messages from a serial gsm modem.
>> >> >>> >> Version: 3.5.1
>> >> >>> >>
>> >> >>> >> Modem Information:
>> >> >>> >>  Manufacturer: Manufacturer
>> >> >>> >>  Model: USB MODEM
>> >> >>> >>  Serial No: 354491022004793
>> >> >>> >>  SIM IMSI: ** MASKED **
>> >> >>> >>  Signal Level: -61 dBm
>> >> >>> >>  Battery Level: 0%
>> >> >>> >>
>> >> >>> >> java.lang.StringIndexOutOfBoundsException: String index out of
>> >> >>> >> range:
>> >> >>> >> -7
>> >> >>> >>    at java.lang.String.substring(String.java:1938)
>> >> >>> >>    at
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> org.smslib.modem.ModemGateway.readMessagesPDU(ModemGateway.java:544)
>> >> >>> >>    at
>> >> >>> >>
>> >> >>> >> org.smslib.modem.ModemGateway.readMessages(ModemGateway.java:210)
>> >> >>> >>    at org.smslib.Service.readMessages(Service.java:500)
>> >> >>> >>    at org.smslib.Service.readMessages(Service.java:388)
>> >> >>> >>    at modem.ReadMessages.doIt(ReadMessages.java:99)
>> >> >>> >>    at modem.ReadMessages.main(ReadMessages.java:160)
>> >> >>> >>
>> >> >>> >> Process completed.
>> >> >>> >>
>> >> >>> >> ””
>> >> >>> >>
>> >> >>> >> --
>> >> >>> >> You received this message because you are subscribed to the
>> >> >>> >> Google
>> >> >>> >> Groups "SMSLib Discussion Group" group.
>> >> >>> >> To post to this group, send email to [email protected].
>> >> >>> >> To unsubscribe from this group, send email to
>> >> >>> >> [email protected].
>> >> >>> >> For more options, visit this group at
>> >> >>> >> http://groups.google.com/group/smslib?hl=en.
>> >> >>> >>
>> >> >>> >
>> >> >>> > --
>> >> >>> > You received this message because you are subscribed to the
>> >> >>> > Google
>> >> >>> > Groups "SMSLib Discussion Group" group.
>> >> >>> > To post to this group, send email to [email protected].
>> >> >>> > To unsubscribe from this group, send email to
>> >> >>> > [email protected].
>> >> >>> > For more options, visit this group at
>> >> >>> > http://groups.google.com/group/smslib?hl=en.
>> >> >>> >
>> >> >>>
>> >> >>> --
>> >> >>> You received this message because you are subscribed to the Google
>> >> >>> Groups
>> >> >>> "SMSLib Discussion Group" group.
>> >> >>> To post to this group, send email to [email protected].
>> >> >>> To unsubscribe from this group, send email to
>> >> >>> [email protected].
>> >> >>> For more options, visit this group at
>> >> >>> http://groups.google.com/group/smslib?hl=en.
>> >> >>>
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups
>> >> >> "SMSLib Discussion Group" group.
>> >> >> To post to this group, send email to [email protected].
>> >> >> To unsubscribe from this group, send email to
>> >> >> [email protected].
>> >> >> For more options, visit this group at
>> >> >> http://groups.google.com/group/smslib?hl=en.
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "SMSLib Discussion Group" group.
>> >> To post to this group, send email to [email protected].
>> >> To unsubscribe from this group, send email to
>> >> [email protected].
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/smslib?hl=en.
>> >>
>> >
>> >
>> >
>> > --
>> > Weber de Souza Calixto
>> >
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "SMSLib Discussion Group" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/smslib?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "SMSLib Discussion Group" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/smslib/-/USq_FRQziXIJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/smslib?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to