Still seeing the problem unfortunately. http://pastie.org/886636
On Mar 25, 6:43 am, Thanasis <[email protected]> wrote: > Hi, > > You can safely use commons/net v2.0 > > I really don't get it... > Can you replace the ReadMessages sample with the following simple code and > give it a run? This code restarts the modem several times - works here. > > http://pastie.org/886101 > > On 25 March 2010 01:13, diffa <[email protected]> wrote: > > > > > Hi, > > > I have built smslib 3.4.6 from svn and I am still having the same > > problem. I am running against commons-net 2.0 now also. Here is the > > output from the run: > > >http://pastie.org/885692 > > > The first run-through is fine, the second fails. Once the process has > > died the port is freed and I can run it again. > > > Chris > > > On Mar 24, 10:42 pm, diffa <[email protected]> wrote: > > > Hi, > > > > I am finally getting around to building the smslib library from the > > > trunk and I noticed that on the project wiki you say that SMSLib was > > > built against commons-net 2.0 (http://smslib.org/doc/installation/ > > > #Apache_Jakarta_Commons_-_NET), but in the osgi bundle manifest that > > > version is excluded from import > > > > Import-Package = > > > org.apache.commons.net;version="[1.4.0,2.0.0)",org.apache.commo > > > ns.net.telnet;version="[1.4.0,2.0.0)",org.slf4j;version="[1.5.0,2.0.0)",jav > > ax.co > > > mm;version="[2.0.0,2.0.0]" > > > > I have been running against 1.4 up until now, but I wonder whether > > > this could be the source of the problems. It doesn't seem that > > > likely, but I thought it might be worth mentioning. > > > > What is recommended, run with commons-net 1.4 or update the manifest > > > and run with 2.0? > > > > Chris > > > > On Mar 20, 7:43 am, Thanasis <[email protected]> wrote: > > > > > Hi, > > > > > Sorry, cannot reproduce this. > > > > Can you try with the latest source (check out fromhttp:// > > smslib.googlecode.com/svn/smslib/trunk/)? > > > > > On 19 March 2010 19:22, diffa <[email protected]> wrote: > > > > > > Yes, I can confirm that it is the 3.4.5 version. As you said it is > > > > > one of the first lines output to the console when the program is run. > > > > > > Chris > > > > > > On Mar 19, 4:21 pm, Thanasis <[email protected]> wrote: > > > > > > Just run the smslib.jar file - it should display some notes. > > > > > > > On 19 March 2010 17:50, diffa <[email protected]> wrote: > > > > > > > > It should be 3.4.5 - but I'll double check to make sure I'm > > picking up > > > > > > > the right version. > > > > > > > > Chris > > > > > > > > On Mar 19, 11:41 am, Thanasis <[email protected]> wrote: > > > > > > > > Are you using the latest version? > > > > > > > > This issue existed at some time, but it's supposed to be fixed > > > > > lately. > > > > > > > > > On 19 March 2010 00:55, diffa <[email protected]> wrote: > > > > > > > > > > I added a System.in.read() between the stop and the (re)start > > and > > > > > > > > > waited ~30s. Same error though. In debug, it seems to be > > calling > > > > > > > > > disconnect on the SerialPort object - something must be > > hanging > > > > > around > > > > > > > > > though. > > > > > > > > > > I have the Service object running as an OSGi service which is > > why I > > > > > > > > > want to be able to stop/start without killing the VM. > > > > > > > > > > Chris > > > > > > > > > > On Mar 18, 6:59 pm, Thanasis <[email protected]> wrote: > > > > > > > > > > Hi, > > > > > > > > > > > Can you try to add an artificial 5 or 10 seconds delay > > between > > > > > stop > > > > > > > and > > > > > > > > > > start and check if this happens again? > > > > > > > > > > > On 18 March 2010 19:10, diffa <[email protected]> > > wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > I am having a problem where I cannot seem to successfully > > stop > > > > > and > > > > > > > > > > > start the SMSLib service without error, it seems as > > though even > > > > > > > after > > > > > > > > > > > Service.stopService is called it is still holding on to > > the COM > > > > > > > port. > > > > > > > > > > > > I have updated the SendMessage example ( > > > > > > >http://gist.github.com/336566) > > > > > > > > > > > to verify the issue is not with my code. I can start the > > > > > service, > > > > > > > > > > > send a message, stop the service with no problems. If I > > then > > > > > start > > > > > > > > > > > the service once more within the same java process, I get > > the > > > > > > > > > > > following message: > > > > > > > > > > > > org.smslib.GatewayException: Comm library exception: > > > > > > > > > > > java.lang.RuntimeException: > > javax.comm.PortInUseException: Port > > > > > > > > > > > currently owned by Unknown Windows Application > > > > > > > > > > > at > > > org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java: > > > > > > > > > > > 96) > > > > > > > > > > > at > > > > > > > org.smslib.modem.AModemDriver.connect(AModemDriver.java:111) > > > > > > > > > > > at > > > org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:186) > > > > > > > > > > > at > > org.smslib.Service$1Starter.run(Service.java:257) > > > > > > > > > > > > If I let that process complete and run it again it will > > work. > > > > > Am I > > > > > > > > > > > missing something necessary to relinquish the port once > > the > > > > > service > > > > > > > > > > > has stopped? > > > > > > > > > > > > Kind regards, > > > > > > > > > > > > Chris > > > > > > > > > > > > -- > > > > > > > > > > > You received this message because you are subscribed to > > the > > > > > Google > > > > > > > > > Groups > > > > > > > > > > > "SMSLib User Group" group. > > > > > > > > > > > To post to this group, send email to > > [email protected]. > > > > > > > > > > > To unsubscribe from this group, send email to > > > > > > > > > > > [email protected]<smslib%[email protected]> > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > com> > > > > > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > > > > com> > > <smslib%252bunsubscr...@googlegroups. com> > > > > > > > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > > > > > > com> > > <smslib%252bunsubscr...@googlegroups. com> > > > > > <smslib%252bunsubscr...@googlegroups. com> > > > > > > > > > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > > > > > > > > com> > > <smslib%252bunsubscr...@googlegroups. com> > > > > > <smslib%252bunsubscr...@googlegroups. com> > > > > > > > <smslib%252bunsubscr...@googlegroups. com> > > > > > > > > > > > > . > > > > > > > > > > > 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 User Group" group. > > > > > > > > > To post to this group, send email to [email protected] > > . > > > > > > > > > To unsubscribe from this group, send email to > > > > > > > > > [email protected]<smslib%[email protected]> > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > com> > > > > > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > > > > com> > > <smslib%252bunsubscr...@googlegroups. com> > > > > > > > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > > > > > > com> > > <smslib%252bunsubscr...@googlegroups. com> > > > > > <smslib%252bunsubscr...@googlegroups. com> > > > > > > > > > > . > > > > > > > > > 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 User Group" group. > > > > > > > To post to this group, send email to [email protected]. > > > > > > > To unsubscribe from this group, send email to > > > > > > > [email protected]<smslib%[email protected]> > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > com> > > > > > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > > > > com> > > <smslib%252bunsubscr...@googlegroups. com> > > > > > > > > . > > > > > > > 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 User Group" group. > > > > > To post to this group, send email to [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<smslib%[email protected]> > > <smslib%[email protected]<smslib%252bunsubscr...@googlegroups. > > com> > > > > > > . > > > > > 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 User Group" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<smslib%[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 User 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.
