Re: [eclipse-clp-users] Java error messages

From: Paul Davern <p.davern_at_...70...>
Date: Tue, 3 Mar 2009 09:58:16 -0000
Hello Gregory,

In my experience of using the Java interface you can get no more information 
than "there was an error". However, the error usually indicates that ECLiPSe 
is unhappy with the goal you sent it and tells you so; except as far as I am 
aware the Java interface swallows the message. What you could do is to put 
traditional print statements into the code you sent to ECLiPSe and see how 
far it gets. You may have to stick this info to a file as you may not be 
able to see anything that goes to stdout. If you are using the Saros plugin 
for Eclipse IDE you may be able to see your debug info and also more 
importantly the actual error ECLiPSe is reporting.

You can also of course get debug directly into the java interface source. 
But I haven't got very far in bug tracking this way.

I hope this helps,
Paul.

----- Original Message ----- 
From: "Gregory Harman" <greg_at_...171...>
To: <eclipse-clp-users_at_lists.sourceforge.net>
Sent: Tuesday, March 03, 2009 4:19 AM
Subject: [eclipse-clp-users] Java error messages


> Hi all,
>
> I'm fairly new to ECLiPSe, and am planning on using it as a supplement
> to a Java codebase. I've gotten basic communication between Java and
> ECLiPSe working via the parctechnologies library, but I'm struggling a
> bit with the error handling: when I execute a goal that causes an
> ECLiPSe error, I get a com.parctechnologies.eclipse.Throw returned to
> my Java class (as I should, according to the embedding documentation),
> but there is no error message associated with that Throw to help me
> debug. How can I coerce the system into giving something more to work
> with than just "there was an error"?
>
> Thanks for any pointers.
>
> -Greg
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, 
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the 
> Enterprise
> -Strategies to boost innovation and cut costs with open source 
> participation
> -Receive a $600 discount off the registration fee with the source code: 
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> ECLiPSe-CLP-Users mailing list
> ECLiPSe-CLP-Users_at_lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users 
Received on Tue Mar 03 2009 - 10:54:03 CET

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST