From geoffrey.glangine at gmail.com Fri Aug 24 20:09:44 2018 From: geoffrey.glangine at gmail.com (Geoffrey Glangine) Date: Fri, 24 Aug 2018 20:09:44 -0400 Subject: [Cmpl] Bug Jcmpl Message-ID: Hello, I've to work with CMPL for my resarch, and I have created a CMPL model and I tried it with coliop4, It is working well. But now, I'm trying to use Jcmpl to run my model on a cmpl server but the model isn't working. there is my code : try { Cmpl m = new Cmpl("/tmp/Recipe.cmpl"); m.connect("http://127.0.0.1:4000"); m.solve(); return String.valueOf(m.solution().value()); } catch (CmplException e) { e.printStackTrace(); } I use a cmpl .cdat file called Recipe.cdat and it seems to be linked correctly. There is the error displayed : jCmpl error: CmplServer error : org.apache.xmlrpc.XmlRpcException: :coercing to Unicode: need string or buffer, exceptions.IOError found at jCMPL.Cmpl.solve(Cmpl.java:872) Do you know what I have to do to make this working? I didn't make any modifications between the working model and the Jcmpl one, it is the same! thanks you all ! -- *address *: Glangine Geoffrey Canada, -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.steglich at th-wildau.de Sat Aug 25 06:31:14 2018 From: mike.steglich at th-wildau.de (Mike Steglich) Date: Sat, 25 Aug 2018 12:31:14 +0200 Subject: [Cmpl] Bug Jcmpl In-Reply-To: References: Message-ID: <66E28A84-0070-423D-A858-51EFCDF82C91@th-wildau.de> Hello Geoffrey, Could you send the Cmpl model and the CmplData file directly to me (mike.steglich at th-wildau.de)? I will test it Monday (I am busy the entire weekend). Cheers, Mike > Am 25.08.2018 um 02:09 schrieb Geoffrey Glangine : > > Hello, > > I've to work with CMPL for my resarch, and I have created a CMPL model and I tried it with coliop4, It is working well. But now, I'm trying to use Jcmpl to run my model on a cmpl server but the model isn't working. > > there is my code : > > try { > Cmpl m = new Cmpl("/tmp/Recipe.cmpl"); > m.connect("http://127.0.0.1:4000"); > m.solve(); > return String.valueOf(m.solution().value()); > } catch (CmplException e) { > e.printStackTrace(); > } > > I use a cmpl .cdat file called Recipe.cdat and it seems to be linked correctly. > > There is the error displayed : > > jCmpl error: CmplServer error : org.apache.xmlrpc.XmlRpcException: :coercing to Unicode: need string or buffer, exceptions.IOError found > at jCMPL.Cmpl.solve(Cmpl.java:872) > > Do you know what I have to do to make this working? > > I didn't make any modifications between the working model and the Jcmpl one, it is the same! > > thanks you all ! > > > > > -- > > address : > Glangine Geoffrey > Canada, > > > _______________________________________________ > Cmpl mailing list > Cmpl at list.coin-or.org > https://list.coin-or.org/mailman/listinfo/cmpl -------------- next part -------------- An HTML attachment was scrubbed... URL: