ecmnet / matlabcontrol Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/matlabcontrol
Automatically exported from code.google.com/p/matlabcontrol
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using?
R2011b
What operating system are you using?
OSX
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside
What steps will reproduce the problem?
1. Run the following sample code:
MatlabProxyFactory factory = new MatlabProxyFactory();
MatlabProxy proxy = factory.getProxy();
proxy.eval("disp('hello world')");
// Use the proxy as desired
System.out .println("disconnected: " + proxy.disconnect());
What did you expect to happen? What happened instead?
I would expect disconnect to print as true based on the javadoc.. but it prints
as false.
If there was a stack trace, please copy it here.
Please provide any additional information below.
It looks like RemoteMatlabProxy#disconnect() returns #isConnected(), which is
the reverse of what the javadoc suggests.
I am not sure if there are any other implications of this flag being flipped.
Original issue reported on code.google.com by [email protected]
on 16 Jul 2014 at 8:04
What version of matlabcontrol are you using?
(4.0.0)
What version of MATLAB are you using?
R2010b
What operating system are you using?
win 7
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside
What steps will reproduce the problem?
1. Open MATLAB control demo
2. Connect to MATLAB
3. Close DEMO
4. Open DEMO
5. Connect to MATLAB again(existing)
6. Close MATLAB
7. Connect DEMO again .
What did you expect to happen? What happened instead?
Open a new MATLAB session and connect .
it gives an error :
matlabcontrol.MatlabConnectionException: Could not bind proxy receiver to the
RMI registry at
matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.jav
a:96)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 25 Aug 2011 at 12:05
New facade for existing matlabcontrol code
Implementation of the JSR-223 API
We (CSIRO Marine and Atmospheric Research) are using Matlabcontrol as a JSR-223
bridge to Matlab from our code, this lets us treat Matlab as just another
execution engine like other JVM based languages such as JRuby, Groovy, Jython
(we also use native code based bridges to R and Perl). Implementing the JSR-223
API in Matlabcontrol will ease its adoption into existing systems. We can
contribute the JSR-223 bindings under MIT licence from our nascent TrikeND
(http://sourceforge.net/projects/trikend/) project to be maintained within
Matlabcontrol.
Original issue reported on code.google.com by [email protected]
on 17 Jul 2011 at 7:34
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using?
R2013a (8.1.0.604)
What operating system are you using?
Linux - CentOS 5.9
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside
What steps will reproduce the problem?
1. Edit DemoFrame.java to wrap the proxy with a LoggingMatlabProxy
_proxyHolder.set(new LoggingMatlabProxy(proxy));
2. Run the demo, connect to matlab, select feval
3. Enter fprintf for function
4 For argument, select string and enter blah\n
What did you expect to happen? What happened instead?
Expected "blah" to be printed to matlab console, as it is when the
LoggingMatlabProxy is not used.
Instead, it throws the following exception and displays an error in the matlab
console.
If there was a stack trace, please copy it here.
$ java -cp build/classes:../../matlabcontrol-4.1.0.jar
-Djava.util.logging.config.file=logging.properties demo.gui.RemoteMain
Jul 9, 2013 9:51:24 AM matlabcontrol.LoggingMatlabProxy feval(String, Object...)
FINER: ENTRY fprintf [Ljava.lang.Object;@4aee260b
Jul 9, 2013 9:51:24 AM matlabcontrol.LoggingMatlabProxy feval(String, Object...)
FINER: THROW
matlabcontrol.MatlabInvocationException: Method did not return properly because
of an internal MATLAB exception
at matlabcontrol.MatlabInvocationException$Reason.asException(MatlabInvocationException.java:62)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.returningFeval(JMIWrapper.java:459)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.feval(JMIWrapper.java:406)
at matlabcontrol.JMIWrapper$6.call(JMIWrapper.java:180)
at matlabcontrol.JMIWrapper$6.call(JMIWrapper.java:176)
at matlabcontrol.JMIWrapper$9.run(JMIWrapper.java:307)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:364)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at matlabcontrol.$Proxy1.feval(Unknown Source)
at matlabcontrol.RemoteMatlabProxy$6.invoke(RemoteMatlabProxy.java:285)
at matlabcontrol.RemoteMatlabProxy$6.invoke(RemoteMatlabProxy.java:281)
at matlabcontrol.RemoteMatlabProxy.invoke(RemoteMatlabProxy.java:182)
at matlabcontrol.RemoteMatlabProxy.feval(RemoteMatlabProxy.java:280)
at matlabcontrol.LoggingMatlabProxy$3.invoke(LoggingMatlabProxy.java:248)
at matlabcontrol.LoggingMatlabProxy.invoke(LoggingMatlabProxy.java:156)
at matlabcontrol.LoggingMatlabProxy.feval(LoggingMatlabProxy.java:243)
at demo.gui.DemoFrame$4.actionPerformed(DemoFrame.java:419)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6290)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6055)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4653)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2482)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:607)
at java.awt.EventQueue$1.run(EventQueue.java:605)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:621)
at java.awt.EventQueue$2.run(EventQueue.java:619)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: com.mathworks.jmi.MatlabException: Function is not defined for
'cell' inputs.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:219)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1608)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.returningFeval(JMIWrapper.java:420)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.feval(JMIWrapper.java:406)
at matlabcontrol.JMIWrapper$6.call(JMIWrapper.java:180)
at matlabcontrol.JMIWrapper$6.call(JMIWrapper.java:176)
at matlabcontrol.JMIWrapper$9.run(JMIWrapper.java:307)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:364)
Jul 9, 2013 9:51:24 AM matlabcontrol.LoggingMatlabProxy feval(String, Object...)
FINER: RETURN
Please provide any additional information below.
This is printed in the matlab console:
Error using fprintf
Function is not defined for 'cell' inputs.
Original issue reported on code.google.com by [email protected]
on 9 Jul 2013 at 4:02
Attachments:
What version of matlabcontrol are you using?
4.1.0
What version of MATLAB are you using?
2009a (7.8.0.347)
What operating system are you using?
Windows 7 / Centos 6.4
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside
What steps will reproduce the problem?
1. Run the following program. Call this R1.
2. Whilst R1 is still running, launch R1 again. Call this R2.
3. Allow R2 to run once.
4. Kill R1.
5. Subsequent attempts to launch matlabcontrol in R2 will fail with an rmi
ConnectException.
public class MatlabControlExample {
public static void main(String[] args) {
final MatlabProxyFactory matlabProxyFactory = new MatlabProxyFactory();
final String command = "disp('hello world!')";
Executors.newSingleThreadScheduledExecutor().scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
System.out.println("Invoking " + command);
MatlabProxy proxy = null;
try {
proxy = matlabProxyFactory.getProxy();
proxy.eval(command);
} catch (Exception e) {
e.printStackTrace(System.out);
System.exit(-1);
} finally {
try {
if (proxy != null) {
proxy.exit();
}
} catch (MatlabInvocationException e) {
e.printStackTrace(System.out);
System.exit(-1);
}
}
}
}, 0L, 1L, TimeUnit.MINUTES);
}
}
What did you expect to happen? What happened instead?
I expected R2 to continue running successfully (i.e. that no dependency existed
between independently running VMs).
If there was a stack trace, please copy it here.
matlabcontrol.MatlabConnectionException: Could not bind proxy receiver to the
RMI registry
at matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:104)
at matlabcontrol.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:144)
at matlabcontrol.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:81)
at gsa.playpen.MatlabControlExample$1.run(MatlabControlExample.java:30)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.rmi.ConnectException: Connection refused to host: localhost;
nested exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:99)
... 12 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:218)
at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:212)
at matlabcontrol.LocalHostRMIHelper$LocalHostRMISocketFactory.createSocket(LocalHostRMIHelper.java:71)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 17 more
Please provide any additional information below.
This can be avoided by altering the port used when the RMI registry is created,
so as to ensure the port is unique to the running process.
Original issue reported on code.google.com by [email protected]
on 10 Jun 2013 at 2:19
I'm using matlabcontrol 4.0.0, Matlab r2010a on Debian Squeeze.
I'm using MatlabControl from outside MATLAB. The client class is a class
running inside a Tomcat 6.0 (the one in the Debian repository!).
At the attempt of calling the MATLAB instance, no error is catched, but the
connection time out!
This problem happens only if Tomcat is running as a service. If Tomcat is
launched from the shell everything works fine.
Thinking it was a security problem, I tried to grant all security permissions
to the web application but nothing changed.
I thought it could be related to the PATH environment variable, but the PATH
variable maps the MATLAB codebase location and nothing good happened.
Files permissions are OK.
Am I forgetting something?
Thanx
Rudy
Original issue reported on code.google.com by [email protected]
on 30 Nov 2012 at 1:31
What version of matlabcontrol are you using?
(Release versions: 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.0.0
What version of MATLAB are you using?
R2009a
What operating system are you using?
Windows Vista Home Edition 64-bit
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside
What steps will reproduce the problem?
1. Downloaded matlabcontrol src package
2. Created new project in JAVA named MatlabeControlGage.
3. Modified the import commands and commands calling for "matlabcontrol" to
"matlabcontrolgage" as was named.
4. Reproduced the code at the following site:
http://code.google.com/p/matlabcontrol/wiki/Walkthrough
under the "Hello World" section.
5. Try to run the file named MatlabControlGage.java
What did you expect to happen? What happened instead?
Expected to see display in tutorial "hello world"
Instead, got MATLAB to open with a display in the JAVA window of the following:
"
Exception in thread "main" matlabcontrolgage.MatlabConnectionException: MATLAB
proxy could not be created in 180000 milliseconds
at matlabcontrolgage.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:158)
at matlabcontrolgage.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:81)
at matlabcontrolgage.MatlabControlGage.main(MatlabControlGage.java:20)
Java Result: 1
BUILD SUCCESSFUL (total time: 3 minutes 0 seconds)
"
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 May 2012 at 12:18
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using?
2012
What operating system are you using?
MacOsX 10.9
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside matlab using osgi (felix)
What steps will reproduce the problem?
starting the bundle
What did you expect to happen? What happened instead?
A succesfull instantiation of my object.
If there was a stack trace, please copy it here.
matlabcontrol.MatlabConnectionException: Support code location could not be
determined. Could not get path from URI location.
URI Location: location:ExamplePC.jar1397038232404
URL Location: location:ExamplePC.jar1397038232404
Code Source: (location:ExamplePC.jar1397038232404 <no signer certificates>)
Protection Domain: [examplePC [12]]
Class Loader: examplePC [12]
Class Loader Class: class
org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5
at matlabcontrol.Configuration.getSupportCodeLocation(Configuration.java:295)
at matlabcontrol.RemoteMatlabProxyFactory.createProcess(RemoteMatlabProxyFactory.java:289)
at matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:125)
at matlabcontrol.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:144)
at matlabcontrol.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:81)
at examplePCComponent.<init>(Unknown Source)
at examplePCCodeBase.createLoociComponent(Unknown Source)
at looci.osgi.serv.impl.LoociCodebase.instantiateComponent(LoociCodebase.java:208)
at looci.osgi.runtime.ComponentManager.instantiateComponent(ComponentManager.java:84)
at looci.osgi.runtime.CodebaseManager.instantiateComponent(CodebaseManager.java:120)
at looci.osgi.runtime.reconfiguration.ReconfigurationEngine.instantiateComponent(ReconfigurationEngine.java:222)
at looci.osgi.runtime.reconfiguration.ReconfigEngineComp.receive(ReconfigEngineComp.java:82)
at looci.osgi.serv.impl.LoociComponent.receive(LoociComponent.java:115)
at looci.osgi.serv.impl.EventQueue.run(EventQueue.java:97)
at java.lang.Thread.run(Thread.java:744)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Apr 2014 at 10:12
What version of matlabcontrol are you using? 4.1.0
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
What version of MATLAB are you using? 2010b
What operating system are you using? Windows XP
Are you using matlabcontrol from inside MATLAB or outside MATLAB? Outside
What steps will reproduce the problem?
1.In the Builder, set setHidden to true and use setMatlabStartingDirectory to
set a starting folder.
What did you expect to happen? What happened instead? I expected a minimized
command window opened in the starting folder I specified. However, the
minimized command opened at the location where the Matlab executable was
present. Hence, it was unable to execute a Matlab script present in the
location specified by me as it never opened in that location. As a workaround,
I manually pass a 'cd' command to the proxy to switch to the desired folder and
then execute the script.
If there was a stack trace, please copy it here.
matlabcontrol.MatlabInvocationException: Method did not return properly because
of an internal MATLAB exception
at matlabcontrol.MatlabInvocationException$Reason.asException(MatlabInvocationException.java:62)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.returningFeval(JMIWrapper.java:459)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.eval(JMIWrapper.java:394)
at matlabcontrol.JMIWrapper$4.call(JMIWrapper.java:154)
at matlabcontrol.JMIWrapper$4.call(JMIWrapper.java:150)
at matlabcontrol.JMIWrapper$9.run(JMIWrapper.java:307)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:339)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:275)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:252)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:194)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:148)
at matlabcontrol.$Proxy2.eval(Unknown Source)
at matlabcontrol.RemoteMatlabProxy$4.invoke(RemoteMatlabProxy.java:257)
at matlabcontrol.RemoteMatlabProxy$4.invoke(RemoteMatlabProxy.java:253)
at matlabcontrol.RemoteMatlabProxy.invoke(RemoteMatlabProxy.java:182)
at matlabcontrol.RemoteMatlabProxy.eval(RemoteMatlabProxy.java:252)
at util.matlab.Matlab.getProxy(Matlab.java:162)
at util.matlab.Matlab.executeScript(Matlab.java:73)
at util.matlab.Matlab.main(Matlab.java:182)
Caused by: com.mathworks.jmi.MatlabException: Undefined function or variable
'startup'.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:210)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:121)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1536)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.returningFeval(JMIWrapper.java:420)
at matlabcontrol.JMIWrapper$MatlabThreadOperations.eval(JMIWrapper.java:394)
at matlabcontrol.JMIWrapper$4.call(JMIWrapper.java:154)
at matlabcontrol.JMIWrapper$4.call(JMIWrapper.java:150)
at matlabcontrol.JMIWrapper$9.run(JMIWrapper.java:307)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:339)
Exception in thread "main" java.io.IOException: Internal Matlab Error
at util.matlab.Matlab.executeScript(Matlab.java:97)
at util.matlab.Matlab.main(Matlab.java:182)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 19 Mar 2015 at 4:32
What version of matlabcontrol are you using?
(Release versions: 4.1.0)
What version of MATLAB are you using?
R2012b
What operating system are you using?
OS X 10.8.3
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside
What steps will reproduce the problem?
1.
2.
3.
What did you expect to happen? What happened instead?
If there was a stack trace, please copy it here.
Please provide any additional information below.
Not a bug report. I could not find a place to ask a question.....
Can you direct me to info or a person that can help me use matlabcontrol from
ColdFusion?
Sam Hanie
[email protected]
623-229-1202
Original issue reported on code.google.com by [email protected]
on 9 Apr 2013 at 1:34
Is this an entirely new feature or an enhancement of an existing feature?
Enhancement of existing feature,
What is the feature or enhancement?
I want an option added to change the architecture. Right now when I try to
start matlab through the proxy it fails to start because the default arch is
64-bit because I have 10.6.8, but matlab is MATLAB_R2010aSV, which has no
32-bit mac version. The only way I've found to launch it is using this script
and pointing the proxy towards it:
matlab.sh:
#!/bin/bash
shift
"/Applications/MATLAB_R2010aSV.app/bin/matlab" -maci "$@"
I don't say the script is perfect. It might be dropping an argument, but that
should give you an idea of what I mean.
If you have currently implemented a solution of your own to implement this
feature or enhancement, how have you done so?
I could probably do this if I needed to, though I don't see any build scripts,
project files, or hints on how to build it, which would be a little annoying to
do. Or does this need something from MATLAB to build?
Original issue reported on code.google.com by [email protected]
on 3 Aug 2011 at 6:07
What version of matlabcontrol are you using?
(Release versions: 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.0.0
What version of MATLAB are you using?
R2011b
What operating system are you using?
Windows XP
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside Matlab
What steps will reproduce the problem?
downloaded JAR, added to build path then ran the following code:
MatlabProxyFactory factory = new MatlabProxyFactory();
try{
MatlabProxy proxy = factory.getProxy();
proxy.setVariable("a", 5);
proxy.disconnect();
}
catch(Exception e){
e.printStackTrace();
}
What did you expect to happen? What happened instead?
I expected Matlab to set a variable "a" to 5.
Instead I get the following error in Matlab:
"Error using javaaddpath (line 46)
Too many input arguments."
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 13 Aug 2012 at 6:59
What version of matlabcontrol are you using?
4.1.0
What version of MATLAB are you using?
R2014B
What operating system are you using?
OSx Yosemite
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside Matlab (from java code)
What steps will reproduce the problem?
Simply calling MatlabProxy proxy = factory.getProxy();
What did you expect to happen? What happened instead?
Expected to be able to run Matlab code from a java program. Could not do this.
If there was a stack trace, please copy it here.
matlabcontrol.MatlabConnectionException: Support code location could not be
determined. Could not get URL from CodeSource.
Code Source: (null <no signer certificates>)
Protection Domain: ProtectionDomain (null <no signer certificates>)
edu.rice.cs.plt.reflect.PathClassLoader@2df95165
<no principals>
null
Class Loader: edu.rice.cs.plt.reflect.PathClassLoader@2df95165
Class Loader Class: class edu.rice.cs.plt.reflect.PathClassLoader
at matlabcontrol.Configuration.getSupportCodeLocation(Configuration.java:322)
at matlabcontrol.RemoteMatlabProxyFactory.createProcess(RemoteMatlabProxyFactory.java:289)
at matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:125)
at matlabcontrol.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:144)
at matlabcontrol.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:81)
at PolygonAssembly.configure(PolygonAssembly.java:62)
at TestPolygonAssembly.main(TestPolygonAssembly.java:90)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Dec 2014 at 12:01
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using?
MATLAB_R2013a
What operating system are you using?
Mac
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside
What steps will reproduce the problem?
1.create matrix in Java
2.pass matrix to matlab
3.when the matrix is of size more than 3000*2000, it causes the following
exception:
//////////////////
Exception in thread "main" matlabcontrol.MatlabInvocationException: Object
attempting to be sent cannot be transferred between Java Virtual Machines
at matlabcontrol.MatlabInvocationException$Reason.asException(MatlabInvocationException.java:62)
at matlabcontrol.RemoteMatlabProxy.invoke(RemoteMatlabProxy.java:190)
at matlabcontrol.RemoteMatlabProxy.invokeAndWait(RemoteMatlabProxy.java:309)
at matlabcontrol.extensions.MatlabTypeConverter.setNumericArray(MatlabTypeConverter.java:128)
at lib.DocumentVector.getRevMilestoneVector(DocumentVector.java:63)
at lib.SemancticCovergence.main(SemancticCovergence.java:89)
Caused by: java.rmi.MarshalException: error marshalling arguments; nested
exception is:
java.net.SocketException: Broken pipe
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:138)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at matlabcontrol.$Proxy9.invokeAndWait(Unknown Source)
at matlabcontrol.RemoteMatlabProxy$8.invoke(RemoteMatlabProxy.java:314)
at matlabcontrol.RemoteMatlabProxy.invoke(RemoteMatlabProxy.java:182)
... 4 more
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1860)
at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(ObjectOutputStream.java:1898)
at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1559)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:334)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
... 9 more
//////////////////////
What did you expect to happen? What happened instead?
I expected to get some sub matrix and get the median array of the sub matrix.
For matrix of smaller size, it works fine.
If there was a stack trace, please copy it here.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Mar 2014 at 6:44
matlabcontrol-4.1.0.jar
MATLAB R2014a
Win 7
Using matlabcontrol from outside MATLAB!
Steps that should reproduce the problem:
1. sign code (with code signing cerificate) and copy onto web-server
2. launch app using Java Web-Start
The location of "matlabcontrol-4.1.0.jar" was determined as being on the
C-drive; however, it is in fact on the web-server.
Error Message:
Support code loaction was determined improperly. Location does not exist.
Location determined as: C:\apps\jet\beta\matlabcontrol-4.1.0.jar
Path: /apps/jet/beta/matlabcontrol-4.1.0.jar
URI Location: http://{server}/apps/jet/beta/matlabcontrol-4.1.0.jar
URL Location: http://{server}/apps/jet/beta/matlabcontrol-4.1.0.jar
Code Source: (
http://{server}/apps/jet/beta/matlabcontrol-4.1.0.jar [
[ {certificate info}
...
Thanks,
Wolf
Original issue reported on code.google.com by [email protected]
on 20 Nov 2014 at 12:06
What version of matlabcontrol are you using?
Release version: 4.0.0
What version of MATLAB are you using?
2011a 64-bit
What operating system are you using?
Windows 7 64-bit
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside in a Java application
What steps will reproduce the problem?
1. Run this code:
MatlabProxyFactoryOptions MATLABOptions = new
MatlabProxyFactoryOptions.Builder().setHidden(true).build();
MatlabProxyFactory factory = new MatlabProxyFactory(MATLABOptions);
MatlabProxy proxy = null;
MatlabTypeConverter converter = null;
try
{
proxy = factory.getProxy();
converter = new MatlabTypeConverter(proxy);
proxy.eval("a = [1+1i;2+2i;3+3i];");
double[][] arrayRealValues = converter.getNumericArray("a").getRealArray2D();
double[][] arrayImagValues = converter.getNumericArray("a").getImaginaryArray2D();
}
catch (Exception e)
{
System.err.println(e);
}
What did you expect to happen? What happened instead?
Expected to be able to access the variable in matlab without throwing an
exception. The following message/exception was displayed instead:
"matlabcontrol.MatlabInvocationException: RuntimeException occurred in
MatlabThreadCallable, see cause for more information"
The cause was indicated as: "java.lang.ClassCastException: [Ljava.lang.Object;
cannot be cast to [D"
Please provide any additional information below.
Note that the above program works perfectly if accessing a real valued
variable, i.e. if the eval line was adjusted to "proxy.eval("a = [1;2;3];");",
and the getImaginaryArray2D command was removed.
Original issue reported on code.google.com by [email protected]
on 24 Oct 2011 at 9:07
What version of matlabcontrol are you using?
4.1.0(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
What version of MATLAB are you using?
Matlab R2013a
What operating system are you using?
Windows 7 x64
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside
What steps will reproduce the problem?
1.Launch a project with netbeans with matlabcontrol
2.Relaunch the project other time
3.Give this erro
What did you expect to happen? What happened instead?
javax.servlet.ServletException: matlabcontrol.MatlabConnectionException: Could
not bind proxy receiver to the RMI registry
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
org.apache.jsp.procesa_005fwavytxt_jsp._jspService(procesa_005fwavytxt_jsp.java:165)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
Please provide any additional information below.
you should repair this issue soon, please
Original issue reported on code.google.com by [email protected]
on 16 Apr 2014 at 3:27
What version of matlabcontrol are you using?
4.0.0
What version of MATLAB are you using?
R2009b
What operating system are you using?
WinXP SP3
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside MATLAB
What steps will reproduce the problem?
// Launch and stop matlab, no reference left
{
MatlabProxyFactory factory = new MatlabProxyFactory();
MatlabProxy proxy = factory.getProxy();
proxy.exit();
}
// Wait for matlabcontrol timers to detect matlab disconnection
System.in.read();
// Run garbage collector
for (int i = 0; i<10; i++) { int x[] = new int[5000000]; }
What did you expect to happen? What happened instead?
Threads created by matlabcontrol must die. They do not.
Some reference to MatlabProxy persist somewhere.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 29 Jul 2011 at 1:08
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
I am using 4.1.0
What version of MATLAB are you using?
R2010b
What operating system are you using?
Ubuntu 12.04
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside Matlab
What steps will reproduce the problem?
I am making a HelloWorld java program. Here is my source code:
import matlabcontrol.MatlabConnectionException;
import matlabcontrol.MatlabInvocationException;
import matlabcontrol.MatlabProxy;
import matlabcontrol.MatlabProxyFactory;
import matlabcontrol.MatlabProxyFactoryOptions;
public class HelloWorld
{
public static void main(String[] args) throws MatlabConnectionException, MatlabInvocationException
{
MatlabProxyFactoryOptions options=
new MatlabProxyFactoryOptions.Builder()
.setMatlabLocation("/usr/local/MATLAB/R2010b/bin/matlab")
.build();
//Create a proxy, which we will use to control MATLAB
MatlabProxyFactory factory = new MatlabProxyFactory(options);
MatlabProxy proxy = factory.getProxy();
//Display 'hello world' just like when using the demo
proxy.eval("disp('hello world')");
//Disconnect the proxy from MATLAB
proxy.disconnect();
}
}
What did you expect to happen? What happened instead?
I thought it would display Hello World in the new session of Matlab or the
interface that would come up but instead I get this:
Exception in thread "main" java.lang.NoClassDefFoundError:
matlabcontrol/MatlabConnectionException
Caused by: java.lang.ClassNotFoundException:
matlabcontrol.MatlabConnectionException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
If there was a stack trace, please copy it here.
Please provide any additional information below.
What am I doing wrong in this situation?
Original issue reported on code.google.com by [email protected]
on 23 Feb 2014 at 12:09
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using?
R2011a
What operating system are you using?
Windows 7
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside Matlab (inside Java)
What steps will reproduce the problem?
1. Create Matlab script which writes something to file using print, save, or
saveas.
2. Run Matlab script from Java.
3. Matlab script appears to execute in its entirety, but nothing is written to
file.
What did you expect to happen? What happened instead?
I expected something to be written to file and to appear in my home Matlab
directory. This is what happened when running the script from Matlab itself.
If there was a stack trace, please copy it here.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Mar 2014 at 7:41
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using?
7.8.0
What operating system are you using?
8.1
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside
What steps will reproduce the problem?
1.
2.
3.
What did you expect to happen? What happened instead?
If there was a stack trace, please copy it here.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 13 Dec 2014 at 11:42
What version of matlabcontrol are you using?
4.0.0
What version of MATLAB are you using?
2010b 32bit
What operating system are you using?
10.8.0 Darwin Kernel Version 10.8.0
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside
What steps will reproduce the problem?
1. Create two MatlabProxy connections from outside matlab, and make sure they
are connected.
2. Invoke a matlab function on the first MatlabProxy that blocks and does not
return.
3. Invoke a matlab function on the second MatlabProxy.
What did you expect to happen?
Expected second MatlabProxy to also invoke its method in step 3, without
requiring the first MatlabProxy to finish.
What happened instead?
The code blocks until the first MatlabProxy function is completed, and the
MatlabProxy does not finish.
Please provide any additional information below.
I am trying to start two processes that run at the same time in Matlab. Since
neither process do not return a value and instead are continually running, I am
unable to start both processes using MatlabControl.
Is this right? Or, did I miss an option somewhere?
Original issue reported on code.google.com by [email protected]
on 29 Jul 2012 at 8:23
Following the documentation I first tried:
MatlabProxyFactoryOptions options = new MatlabProxyFactoryOptions.Builder()
options.build();
options.setHidden(true);
The error is: type mismatch and if the type of options is changed to builder:
Builder options = new MatlabProxyFactoryOptions.Builder();
options.build();
options.setHidden(true);
There are no errors, however none of this options takes into effect.
Then I tried:
MatlabProxyFactoryOptions.Builder options = new
MatlabProxyFactoryOptions.Builder();
options.build();
options.setHidden(true);
no errors but matlab does not run hidden again
Original issue reported on code.google.com by [email protected]
on 17 Feb 2014 at 11:20
What version of matlabcontrol are you using?
(Release versions: 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.0.0
What version of MATLAB are you using?
R2010a
What operating system are you using?
WinXP
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
outside Matlab
What steps will reproduce the problem?
1. call returningFeval
2.
3.
What did you expect to happen? What happened instead?
Please provide any additional information below.
I use proxy.returningFeval to invoke a matlab function which returns 2
parameters, numeric arrays. How can I get this values in JAVA?
Original issue reported on code.google.com by [email protected]
on 21 Sep 2011 at 5:21
What version of matlabcontrol are you using?
4.0.0
What version of MATLAB are you using?
R2012a
What operating system are you using?
Windows 7
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside MATLAB. Specifically, from a custom-written Java plugin in the
Java-based microscopy software MicroManager.
What steps will reproduce the problem?
1. Creating a MatlabProxyFactoryOptions instance.
What did you expect to happen? What happened instead?
I expected Matlab would open, create an instance, and then I would later be
able to connect to that instance. When I create an instance, I get the error
message below in Matlab. Commands sent through the proxy will execute, but I
cannot reconnect to the session.
Errors:
Reconnecting to this session of MATLAB will not be possible
matlabcontrol.MatlabConnectionException: Could not register this session of
MATLAB
at matlabcontrol.MatlabBroadcaster.bindSession(MatlabBroadcaster.java:144)
at matlabcontrol.MatlabBroadcaster.broadcast(MatlabBroadcaster.java:92)
at matlabcontrol.MatlabConnector$EstablishConnectionRunnable.run(MatlabConnector.java:189)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: matlabcontrol.MatlabSession (no security manager: RMI class loader disabled)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:400)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at matlabcontrol.MatlabBroadcaster.bindSession(MatlabBroadcaster.java:140)
... 8 more
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: matlabcontrol.MatlabSession (no security manager: RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:390)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:248)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: matlabcontrol.MatlabSession (no
security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:533)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1530)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1492)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
... 12 more
Original issue reported on code.google.com by asgro%[email protected]
on 20 Feb 2013 at 2:15
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using? R2011b
What operating system are you using? Windows 8.1
Are you using matlabcontrol from inside MATLAB or outside MATLAB? outside MATLAB
What steps will reproduce the problem?
1. Run the demo java code
2.the matlab opens
3. run again the demo java code and a new matlab opens
What did you expect to happen? What happened instead?
I expect to open Matlab only one time but according to comments here, changing
the code bellow would fix the problem:
MatlabProxyFactoryOptions options = new
MatlabProxyFactoryOptions.Builder().setUsePreviouslyControlledSession(true).buil
d();
I changed but when java is run, a new matlab window is opened.
If there was a stack trace, please copy it here.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2014 at 6:07
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0
What version of MATLAB are you using?
R2012b
What operating system are you using?
Windows 8.1
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside Matlab (Java Web Application)
What steps will reproduce the problem?
..while invoking a matlab function from java
What did you expect to happen? What happened instead?
..Matlab session would start usually when using on windows 7
.. Instead An exception occurred
If there was a stack trace, please copy it here.
type Exception report
message An exception occurred processing JSP page /addingclip.jsp at line 76
description The server encountered an internal error that prevented it from
fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page
/addingclip.jsp at line 76
73:
74:
75: MatlabProxyFactory factory = new MatlabProxyFactory();
76: MatlabProxy proxy = factory.getProxy();
77: //proxy.disconnect();
78: //invoke matlab function here
79: proxy.setVariable("a", saveFile);
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
root cause
javax.servlet.ServletException: matlabcontrol.MatlabConnectionException: Could
not bind proxy receiver to the RMI registry
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
org.apache.jsp.addingclip_jsp._jspService(addingclip_jsp.java:184)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
root cause
matlabcontrol.MatlabConnectionException: Could not bind proxy receiver to the
RMI registry
matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:104)
matlabcontrol.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:144)
matlabcontrol.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:81)
org.apache.jsp.addingclip_jsp._jspService(addingclip_jsp.java:148)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
root cause
java.rmi.NoSuchObjectException: no such object in table
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:379)
sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
matlabcontrol.RemoteMatlabProxyFactory.requestProxy(RemoteMatlabProxyFactory.java:99)
matlabcontrol.RemoteMatlabProxyFactory.getProxy(RemoteMatlabProxyFactory.java:144)
matlabcontrol.MatlabProxyFactory.getProxy(MatlabProxyFactory.java:81)
org.apache.jsp.addingclip_jsp._jspService(addingclip_jsp.java:148)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
Please provide any additional information below.
It was working fine when deployed on windows 7. I migrated the project on windows 8.1 which also had another version of matlab installed.I thought , there was error bcoz of multiple versions of Matlab so i uninstalled both and again installed the required one.Still not working ... Please tell me where is the problem and how can i resolve this..
Original issue reported on code.google.com by [email protected]
on 3 Jul 2015 at 11:05
Just wanted to contribute back some changes that I made:
https://github.com/diffplug/matlabcontrol
Added CopyPasteCallback to the set of options for creating a
MatlabProxyFactory. The factory sends a chunk of code to the callback, and the
user copy-pastes this code into a MATLAB terminal to initiate a connection.
ThrowableWrapper now initializes the getMessage() field with MATLAB's raw error
text.
Added OSGiClassloaderFriendly to the set of factory options. When this flag is
set to true, RMI is started in a way that doesn't get hosed by OSGi.
The CopyPasteCallback is very handy for implementing interactive applications
such as this:
https://docs.diffplug.com/1.5.0/ViewerDiffers/SimulinkViewerDiffer/TrackInMatlab
/
Original issue reported on code.google.com by [email protected]
on 16 Apr 2015 at 4:27
What version of matlabcontrol are you using?
(Release versions: 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.0.0
What version of MATLAB are you using?
2012a
What operating system are you using?
Linux
Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Inside matlab
What steps will reproduce the problem?
1.
2.
3.
What did you expect to happen? What happened instead?
Please provide any additional information below.
Sometimes matlabproxy.eval(cmd) runs the command inside a method namespace
instead of the main namespace. This happens in a gui matlab application, and
I'm guessing it's related to callback functions. I expected this to not be
possible due to matlab's single-threading, but I can see it happen occasionally.
Anyway: Replacing "eval" with "evalin","base" in the three relevant functions
of JMIWrapper.MatlabThreadOperations seems to fix it.
Original issue reported on code.google.com by [email protected]
on 3 Oct 2012 at 10:29
Is this an entirely new feature or an enhancement of an existing feature?
I haven't been able to find a repo distributing compiled jars for this project. This would be a handy thing to have, as it would make listing it as a dependency in projects using maven/lein/gradle etc. easier.
What is the feature or enhancement?
The enhancement would be to upload this project to a repo like Central (http://central.sonatype.org/). This would make it easier for other projects to make use of matlabcontrol as a dependency, by listing the library in their build scripts for maven, ant, etc to download.
If you have currently implemented a solution of your own to implement this
feature or enhancement, how have you done so?
I haven't done anything on this. As I understand, sonatype will provide free hosting in their repo for open source projects, but there's a somewhat long-winded approach involved in getting this done -- see http://central.sonatype.org/pages/ossrh-guide.html
Original issue reported on code.google.com by [email protected]
on 11 Aug 2014 at 5:10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.