[Scilab-Dev] Problem with advanced mode using scilab within Eclipse

Clément David clement.david at scilab-enterprises.com
Tue May 24 09:16:46 CEST 2016


Hello Jean-Marie,

> java.lang.ClassCastException:
> org.scilab.modules.history_manager.HistoryPrefs cannot be cast to
> org.scilab.modules.commons.xml.XConfigurationListener

Could you try to debug the caller of this code ? This seems related to some configuration file but
as we use introspection for that part, it is hard to get more info without a stacktrace.

Thanks,

--
Clément

Le dimanche 22 mai 2016 à 15:06 -0700, jm.gauthier a écrit :
> Hello, 
> 
> I'am trying to package an Eclipse plugin that calls the Scilab engine throw
> the org.scilab.modules.javasci API. 
> 
> The following is what I want to do: 
> 
> /Scilab sci = new Scilab(true);
> sci.open();
> 
> String command = "loadXcosLibs();
> importXcosDiagram("PathToMyXCosFile.zcos");xcos_simulate(scs_m, 4);"; 	
> sci.exec(command);/
> 
> This piece of code works very well inside a JUnit test. However when
> embedded in an eclipse plugin, it thrown the following error message inside
> the console (all the paths are defined, and I have a lib folder which
> contains all the required jar file (including the required modules): 
> 
> java.lang.ClassCastException:
> org.scilab.modules.history_manager.HistoryPrefs cannot be cast to
> org.scilab.modules.commons.xml.XConfigurationListener
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x000007fefbd1a06d,
> pid=11568, tid=12744
> #
> # JRE version: Java(TM) SE Runtime Environment (8.0_91-b14) (build
> 1.8.0_91-b14)
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.91-b14 mixed mode
> windows-amd64 compressed oops)
> # Problematic frame:
> # C  [KERNELBASE.dll+0x1a06d]
> #
> # Failed to write core dump. Minidumps are not enabled by default on client
> versions of Windows
> #
> # An error report file with more information is saved as:
> # C:\Softwares\eclipse_mdt_neon_M3\hs_err_pid11568.log
> #
> # If you would like to submit a bug report, please visit:
> #   http://bugreport.java.com/bugreport/crash.jsp
> # The crash happened outside the Java Virtual Machine in native code.
> # See problematic frame for where to report the bug.
> #
> 
> In addition, I have included all the jar files inside the Classpath of the
> MANIFEST.MF (Runtime tab). 
> Please, find the  hs_err_pid11568.log
> <http://mailinglists.scilab.org/file/n4034100/hs_err_pid11568.log>   file.
> I'am using Eclipse Neon 64b with Java 1.8 64b and Scilab 5.5.2 64b.
> 
> Thank you in advance for your helps.  
> 
> 
> 
> 
> 
> --
> View this message in context: http://mailinglists.scilab.org/Problem-with-advanced-mode-using-scil
> ab-within-Eclipse-tp4034100.html
> Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> dev mailing list
> dev at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/dev



More information about the dev mailing list