Comments (5)
I believe this is a problem with Yosemite and it's new security protection. There is an issue with finding libraries with Yosemite if depending on the DYLD_LIBRARY_PATH environment variable which MDSplus does. Unfortunately I'm not a MacOSX expert so I can't help you with this. I know our Mac support people have looked into this problem and hopefully will provide some guidance on how to get it working.
from mdsplus.
Gabriele -
Have been looking into these problems…. A few things have come up:
1 - I think the stable releases on the web site were no good (should be now)
2 - if I mdsconnect from tditest to alcdata - no problem
3 - if i try to use the mdsdataprovider in jscope to connect I get:
lost connection from: alcdata.psfc.mit.edu http://alcdata.psfc.mit.edu/
followed by ‘datatype code 0 not yet supported’
4 - I have a feeling that if I can not get jScope to work, it is unlikely that matlab connections will work.
5 - if i do not turn off mac’s version of selinux (boot to recovery and type: csrutil disable; reboot) then java applications can not load libJavaMds…
Any ideas ?
-Josh
To person having this problem:
If you get it to the point where it returns -1, then you are activating all the images, and it is the problem described above with the Connection object.
On Nov 5, 2015, at 11:31 AM, zhenghaku [email protected] wrote:
I have being using MDSplus in matlab on my Mac Maverick, evething is working.
But when I recently upgraded to Yosemite, it didn't work.I tried the latest and the oldest stable release of MDSplus in both Matlab2015 and 2014 and getting the same error:
Error loading library javamds: java.lang.UnsatisfiedLinkError: /usr/local/mdsplus/lib/libJavaMds.dylib: dlopen(/usr/local/mdsplus/lib/libJavaMds.dylib, 1): Library not loaded: ../lib/libMdsShr.dylib
Referenced from: /usr/local/mdsplus/lib/libJavaMds.dylib
Reason: image not found
java.lang.UnsatisfiedLinkError: /usr/local/mdsplus/lib/libJavaMds.dylib: dlopen(/usr/local/mdsplus/lib/libJavaMds.dylib, 1): Library not loaded: ../lib/libMdsShr.dylib
Referenced from: /usr/local/mdsplus/lib/libJavaMds.dylib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at MDSplus.Connection.(Connection.java:7)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)at com.mathworks.jmi.OpaqueJavaInterface.findClass(OpaqueJavaInterface.java:181)
after i copied everything in the /usr/local/mdsplus/lib/ to ../lib/ the error is gone, but i always get ans=-1 when doing mdsconnect immediately, no timeout.
I also tried the objective way, I get the following error:
c=Connection('someipaddress')
Java exception occurred:
MDSplus.MdsException: Cannot connect to someipaddress
at MDSplus.Connection.(Connection.java:28)this error comes up without delay, I am sure no network connection is even tried.
I think I followed the install instruction right since I was able to get it working on my Mac Maverick.Maybe it's not an issue, but I really need to get it work.
—
Reply to this email directly or view it on GitHub #195.
from mdsplus.
Hi Josh,
I tried from here to connect to alcdata using TCP/IP
mdsconnect('alcdata.psfc.mit.edu')
but I get access denied, so I cannot investigate further the reason why
jScope does not connect (it could be related to the fact that some
support funs for jScope are missing on alcdata).
In any case the Java Connection object links against mdstcpip (unlike
jScope that handles the mdsip protocol entirely in java), so if
mdsconnect works, the Connection object should work, too.
Ciao
Gabriele
On 09/11/2015 19:10, Josh Stillerman wrote:
Gabriele -
Have been looking into these problems…. A few things have come up:1 - I think the stable releases on the web site were no good (should
be now)
2 - if I mdsconnect from tditest to alcdata - no problem
3 - if i try to use the mdsdataprovider in jscope to connect I get:
lost connection from: alcdata.psfc.mit.edu http://alcdata.psfc.mit.edu/
followed by ‘datatype code 0 not yet supported’
4 - I have a feeling that if I can not get jScope to work, it is
unlikely that matlab connections will work.
5 - if i do not turn off mac’s version of selinux (boot to recovery
and type: csrutil disable; reboot) then java applications can not load
libJavaMds…Any ideas ?
-Josh
To person having this problem:
If you get it to the point where it returns -1, then you are
activating all the images, and it is the problem described above with
the Connection object.On Nov 5, 2015, at 11:31 AM, zhenghaku [email protected] wrote:
I have being using MDSplus in matlab on my Mac Maverick, evething is
working.
But when I recently upgraded to Yosemite, it didn't work.I tried the latest and the oldest stable release of MDSplus in both
Matlab2015 and 2014 and getting the same error:Error loading library javamds: java.lang.UnsatisfiedLinkError:
/usr/local/mdsplus/lib/libJavaMds.dylib:
dlopen(/usr/local/mdsplus/lib/libJavaMds.dylib, 1): Library not
loaded: ../lib/libMdsShr.dylib
Referenced from: /usr/local/mdsplus/lib/libJavaMds.dylib
Reason: image not found
java.lang.UnsatisfiedLinkError:
/usr/local/mdsplus/lib/libJavaMds.dylib:
dlopen(/usr/local/mdsplus/lib/libJavaMds.dylib, 1): Library not
loaded: ../lib/libMdsShr.dylib
Referenced from: /usr/local/mdsplus/lib/libJavaMds.dylib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at MDSplus.Connection.(Connection.java:7)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)at
com.mathworks.jmi.OpaqueJavaInterface.findClass(OpaqueJavaInterface.java:181)after i copied everything in the /usr/local/mdsplus/lib/ to ../lib/
the error is gone, but i always get ans=-1 when doing mdsconnect
immediately, no timeout.I also tried the objective way, I get the following error:
c=Connection('someipaddress')
Java exception occurred:
MDSplus.MdsException: Cannot connect to someipaddress
at MDSplus.Connection.(Connection.java:28)this error comes up without delay, I am sure no network connection
is even tried.
I think I followed the install instruction right since I was able to
get it working on my Mac Maverick.Maybe it's not an issue, but I really need to get it work.
—
Reply to this email directly or view it on GitHub
#195.—
Reply to this email directly or view it on GitHub
#195 (comment).
Gabriele Manduchi
Istituto Gas Ionizzati del CNR
Consorzio RFX - Associazione EURATOM/ENEA sulla Fusione
Corso Stati Uniti 4, 35127 Padova - Italy
ph +39-049-829-5039/-5000 fax +39-049-8700718
mailto:[email protected], http://www.igi.cnr.it
from mdsplus.
Hi Gabriele,
You can no longer connect to alcdata because mdsip connections to
alcdata from outside the psfc are now blocked by our firewall.
Collaborators now either have to ssh to psfc to access data or use the
ssh mdsip plugin.
Ciao,
Tom
On 11/10/2015 2:58 AM, GabrieleManduchi wrote:
Hi Josh,
I tried from here to connect to alcdata using TCP/IPmdsconnect('alcdata.psfc.mit.edu')
but I get access denied, so I cannot investigate further the reason why
jScope does not connect (it could be related to the fact that some
support funs for jScope are missing on alcdata).In any case the Java Connection object links against mdstcpip (unlike
jScope that handles the mdsip protocol entirely in java), so if
mdsconnect works, the Connection object should work, too.Ciao
GabrieleOn 09/11/2015 19:10, Josh Stillerman wrote:
Gabriele -
Have been looking into these problems…. A few things have come up:1 - I think the stable releases on the web site were no good (should
be now)
2 - if I mdsconnect from tditest to alcdata - no problem
3 - if i try to use the mdsdataprovider in jscope to connect I get:
lost connection from: alcdata.psfc.mit.edu
http://alcdata.psfc.mit.edu/
followed by ‘datatype code 0 not yet supported’
4 - I have a feeling that if I can not get jScope to work, it is
unlikely that matlab connections will work.
5 - if i do not turn off mac’s version of selinux (boot to recovery
and type: csrutil disable; reboot) then java applications can not load
libJavaMds…Any ideas ?
-Josh
To person having this problem:
If you get it to the point where it returns -1, then you are
activating all the images, and it is the problem described above with
the Connection object.On Nov 5, 2015, at 11:31 AM, zhenghaku [email protected]
wrote:I have being using MDSplus in matlab on my Mac Maverick, evething is
working.
But when I recently upgraded to Yosemite, it didn't work.I tried the latest and the oldest stable release of MDSplus in both
Matlab2015 and 2014 and getting the same error:Error loading library javamds: java.lang.UnsatisfiedLinkError:
/usr/local/mdsplus/lib/libJavaMds.dylib:
dlopen(/usr/local/mdsplus/lib/libJavaMds.dylib, 1): Library not
loaded: ../lib/libMdsShr.dylib
Referenced from: /usr/local/mdsplus/lib/libJavaMds.dylib
Reason: image not found
java.lang.UnsatisfiedLinkError:
/usr/local/mdsplus/lib/libJavaMds.dylib:
dlopen(/usr/local/mdsplus/lib/libJavaMds.dylib, 1): Library not
loaded: ../lib/libMdsShr.dylib
Referenced from: /usr/local/mdsplus/lib/libJavaMds.dylib
Reason: image not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
at java.lang.Runtime.loadLibrary0(Runtime.java:849)
at java.lang.System.loadLibrary(System.java:1088)
at MDSplus.Connection.(Connection.java:7)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)at
com.mathworks.jmi.OpaqueJavaInterface.findClass(OpaqueJavaInterface.java:181)
after i copied everything in the /usr/local/mdsplus/lib/ to ../lib/
the error is gone, but i always get ans=-1 when doing mdsconnect
immediately, no timeout.I also tried the objective way, I get the following error:
c=Connection('someipaddress')
Java exception occurred:
MDSplus.MdsException: Cannot connect to someipaddress
at MDSplus.Connection.(Connection.java:28)this error comes up without delay, I am sure no network connection
is even tried.
I think I followed the install instruction right since I was able to
get it working on my Mac Maverick.Maybe it's not an issue, but I really need to get it work.
—
Reply to this email directly or view it on GitHub
#195.—
Reply to this email directly or view it on GitHub
#195 (comment).Gabriele Manduchi
Istituto Gas Ionizzati del CNR
Consorzio RFX - Associazione EURATOM/ENEA sulla Fusione
Corso Stati Uniti 4, 35127 Padova - Italy
ph +39-049-829-5039/-5000 fax +39-049-8700718
mailto:[email protected], http://www.igi.cnr.it—
Reply to this email directly or view it on GitHub
#195 (comment).
from mdsplus.
The next stable release, and the current alpha release should work with some provisos
1 - Current stable: Nov 06, 2015 MDSplus-7-0-59-osx.pkg - it must be newer than this !
2 - It may not be sending the username to the host on connect. If this is the case then the mdsip.hosts file on host must assign *@the-client-ip to a reasonable username
3 - in El Capitan (i don't think earlier) you need to disable apple's version of SELINUX
from mdsplus.
Related Issues (20)
- TCL's `set current` and `show current` commands have problems when using the `$default_tree_path` HOT 6
- Ubuntu 22 build Makefile error HOT 4
- jScope freezes during loading with a "broken pipe" error HOT 20
- closeAllTrees() fails for thin client in python HOT 2
- Make the MDSplus data types or at least the scalar types json serializable
- Python API breaks when evaluating certain lowercase tags HOT 9
- Add the ability to easily make a static snapshot of a signal HOT 8
- The Motif `traverser` application throws an error when entering an expression into newly created non-text nodes
- Build: add Amazon Linux 2023 as a supported platform
- Build: add Ubuntu 22 on ARM64 as a supported platform
- Build: MATLAB test suite needs correct formatting for the expected output
- Writing to the "current shot" (shot # = 0) via thick-client does not work HOT 3
- MDSplus tries to use OFD locks on systems that do not support it HOT 2
- Unsuccessful read with SS-SUCESS exception using Tree.getNode(...).getData() in Python HOT 31
- MDSplus dispatcher opens lots of files HOT 54
- Activating the `MDSDBG()` debug statements generates compiler errors
- Building on conda forge OSX fails HOT 12
- Mdstcl's "dispatch" feature can trigger segfaults and other errors if flood the "action server" with hundreds of actions HOT 6
- Missing "mdsobjectscppshr-vs.lib" in vs devtools lib32 folder HOT 6
- Some calling routines do not properly handle SsINTERNAL, C_ERROR, and/or FALSE returned by low-level routines HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdsplus.