unhandled exception com.mathworks.toolbox.javabuilder.mwexception

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011204487/article/details/79978381
matlab中有许多便于图像计算的函数,尤其是做算法,但matlab不便于用做开发,因此需要把. m文件打成jar包,便于java调用。
在Java项目里调用MATLAB程序生成的jar包时,遇到错误:
1、unhandled exception com.mathworks.toolbox.javabuilder.mwexception

2、java.lang.UnsupportedClassVersionError: com/mathworks/toolbox/javabuilder/MWException : Unsupported major.minor version 51.0

原因:外部jar包使用jdk1.7(jdk7)编译,而使用此jar包的Java工程jdk版本为jdk1.6(jdk6),算是版本不支持。

unhandled exception ?

03-06

See the end of this message for details on invoking rnjust-in-time (JIT) debugging instead of this dialog box.rnrn************** Exception Text **************rnSystem.Data.SqlClient.SqlException: 列名 'P0902050010' 无效。rn at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)rn at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)rn at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)rn at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)rn at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()rn at System.Data.SqlClient.SqlDataReader.get_MetaData()rn at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)rn at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)rn at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)rn at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)rn at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)rn at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)rn at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)rn at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)rn at XiaoMain.GetSql.GetDs(SqlConnection conn, String sqlstr) in D:\C#\XiaoMain\XiaoMain\XiaoMain\GetSql.cs:line 109rn at App.FrmHwOrderFinish.LoadData()rn at App.FrmHwOrderFinish.Filter_Click(Object sender, EventArgs e)rn at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)rn at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)rn at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)rn at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)rn at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)rn at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)rn at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)rn at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)rn at System.Windows.Forms.Control.WndProc(Message& m)rn at System.Windows.Forms.ScrollableControl.WndProc(Message& m)rn at System.Windows.Forms.ToolStrip.WndProc(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** Loaded Assemblies **************rnmscorlibrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework2.0.50727/mscorlib.dllrn----------------------------------------rnXiaoMainrn Assembly Version: 1.0.0.0rn Win32 Version: 1.0.0.0rn CodeBase: file:///D:/Debug/凭证接口.exern----------------------------------------rnSystem.Windows.Formsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dllrn----------------------------------------rnSystemrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dllrn----------------------------------------rnSystem.Drawingrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllrn----------------------------------------rnSystem.Datarn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dllrn----------------------------------------rnSystem.Xmlrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dllrn----------------------------------------rnSystem.Configurationrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dllrn----------------------------------------rnSystem.Transactionsrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dllrn----------------------------------------rnSystem.EnterpriseServicesrn Assembly Version: 2.0.0.0rn Win32 Version: 2.0.50727.42 (RTM.050727-4200)rn CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dllrn----------------------------------------rnApprn Assembly Version: 1.0.0.0rn Win32 Version: 1.0.0.0rn CodeBase: file:///D:/Debug/App.DLLrn----------------------------------------rnrn************** JIT Debugging **************rnTo enable just-in-time (JIT) debugging, the .config file for thisrnapplication or computer (machine.config) must have thernjitDebugging value set in the system.windows.forms section.rnThe application must also be compiled with debuggingrnenabled.rnrnFor example:rnrnrn rnrnrnWhen JIT debugging is enabled, any unhandled exceptionrnwill be sent to the JIT debugger registered on the computerrnrather than be handled by this dialog box.rnrnrn详细信息见上面。rn我在本机上没有问题rn提交给客户后出错。请大家帮忙。

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试