Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Re: Illegal Argument Exception: input == null

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Illegal Argument Exception: input == null

    Hello every body , i'm a student and i'm trying to use the SMSlib of java to send and receive message with (an ONDA_ M01 SERIAL DB15_DB9 gsm modem) thought my application i used to use the free code inder src folder of the library but i got some exceptions like :
    in receiving :
    run:
    Example: Read messages from a serial gsm modem.
    SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.
    This software is distributed under the terms of the Apache v2.0 License.
    Web Site: SMSLib
    Version: 3.5.3
    log4j:WARN No appenders could be found for logger (smslib).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for more info.
    >>> Gateway Status change for modem.com37, OLD: STOPPED -> NEW: RESTART
    >>> Gateway Status change for modem.com37, OLD: RESTART -> NEW: STOPPING
    >>> Gateway Status change for modem.com37, OLD: STOPPING -> NEW: STOPPED
    org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException
    at org.smslib.modem.SerialModemDriver.connectPort(Ser ialModemDriver.java:102)
    at org.smslib.modem.AModemDriver.connect(AModemDriver .java:114)
    at org.smslib.modem.ModemGateway.startGateway(ModemGa teway.java:189)
    at org.smslib.Service$1Starter.run(Service.java:277)
    BUILD SUCCESSFUL (total time: 6 seconds)
    in sending :
    run:
    Example: Send message from a serial gsm modem.
    SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.
    This software is distributed under the terms of the Apache v2.0 License.
    Web Site: SMSLib
    Version: 3.5.3
    log4j:WARN No appenders could be found for logger (smslib).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for more info.
    org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.NoSuchPortException
    at org.smslib.modem.SerialModemDriver.connectPort(Ser ialModemDriver.java:102)
    at org.smslib.modem.AModemDriver.connect(AModemDriver .java:114)
    at org.smslib.modem.ModemGateway.startGateway(ModemGa teway.java:189)
    at org.smslib.Service$1Starter.run(Service.java:277)
    BUILD SUCCESSFUL (total time: 1 second)
    i'll be very thankful if someone could help to solve these problems: (Poignée de main):


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Illegal Argument Exception: input == null

    Welcome to the forums. Please avoid posting questions to other completely unrelated threads. I have moved your question to its own thread.

Similar Threads

  1. Illegal Argument Exception: input == null
    By Ecen in forum Exceptions
    Replies: 4
    Last Post: January 8th, 2014, 12:29 PM
  2. illegal state exception from regex
    By kornkorn in forum Exceptions
    Replies: 1
    Last Post: September 8th, 2013, 11:33 PM
  3. input argument for webservice
    By neda.r in forum Web Frameworks
    Replies: 0
    Last Post: June 2nd, 2013, 05:58 AM
  4. [SOLVED] Null Pointer Exception
    By musasabi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 11th, 2010, 09:25 PM