Live Script (.mlx) copy and paste error?

hello,
i updated my MAtlab (to version 2017b) and i recenty tried to edit a live script. when i tried to copy and paste the one part of the script to another i got the following error: please, what is wrong? and what is this "subscription handler"
=====================================================
WARNING: Error in subscription handler
java.lang.IllegalArgumentException: C:\Users\Guest User1\AppData\Local\Temp\ConnectorClipboard7695891344922226972 does not exist
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1637)
at com.mathworks.services.clipboardservice.ConnectorClipboardService$4.handle(ConnectorClipboardService.java:319)
at com.mathworks.connector.message_service.impl.MessageServiceJSONImpl.handleMessage(MessageServiceJSONImpl.java:50)
at com.mathworks.connector.message_service.impl.MessageServiceJniPush.handleMessage(MessageServiceJniPush.java:49)
at com.mathworks.connector.message_service.impl.JniMessageServiceAdaptorImpl.doHandlePublish(JniMessageServiceAdaptorImpl.java:46)
at com.mathworks.connector.message_service.api.JniMessageServiceAdaptor.fromNative(JniMessageServiceAdaptor.java:21)
error:
=====================================================

4 个评论

I want to bring this back up because I also have this problem.
Mar 20, 2018 9:48:51 PM com.mathworks.connector.message_service.impl.MessageServiceJSONImpl handleMessage
WARNING: Error in subscription handler
java.lang.IllegalArgumentException: C:\Users\mowen\AppData\Local\Temp\ConnectorClipboard4509181840531976573 does not exist
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1637)
at com.mathworks.services.clipboardservice.ConnectorClipboardService$4.handle(ConnectorClipboardService.java:319)
at com.mathworks.connector.message_service.impl.MessageServiceJSONImpl.handleMessage(MessageServiceJSONImpl.java:50)
at com.mathworks.connector.message_service.impl.MessageServiceJniPush.handleMessage(MessageServiceJniPush.java:49)
at com.mathworks.connector.message_service.impl.JniMessageServiceAdaptorImpl.doHandlePublish(JniMessageServiceAdaptorImpl.java:46)
at com.mathworks.connector.message_service.api.JniMessageServiceAdaptor.fromNative(JniMessageServiceAdaptor.java:21)
Hi all, I am experiencing the same issue with the same error message. It started when I first used Ctrl+C in Live Script to copy a part of my script. Would like to hear from someone on how to fix this.
Hi, I have the same problem. Within a Live Script copy and paste does not work. Any ideas?
The problem seems to correct itself overtime, i've not had the problem in a while and i haven't made a significant change to my MAtlab since then, except updating my Java.

请先登录,再进行评论。

回答(1 个)

Jonghyun Ra
Jonghyun Ra 2018-4-18
I had the same problem.
I don't know why but increasing Java heap memory fixed the problem.
https://www.mathworks.com/help/matlab/matlab_external/java-heap-memory-preferences.html

1 个评论

Thanks for your response Ra, but i tried it again this morning after updating my windows and the problem seemed to vanish, strange stuff.
on a side note, If anyone still has this problem, i think it might be a result of having more than one matlab versions installed (in my case i had the 2016b, upgraded to 2017a then 2017b).
For diagnostics i'd recommend you open the other versions and see if the same problem persists on your other matlab versions, if it doesn't exist on your other versions then i'd recommend you re-install the matlab version with the problem.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Software Development 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by