Giter Club home page Giter Club logo

Comments (5)

tfredian avatar tfredian commented on May 25, 2024

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.

joshStillerman avatar joshStillerman commented on May 25, 2024

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.

GabrieleManduchi avatar GabrieleManduchi commented on May 25, 2024

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.

MDSplusBuilder avatar MDSplusBuilder commented on May 25, 2024

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/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


Reply to this email directly or view it on GitHub
#195 (comment).

from mdsplus.

joshStillerman avatar joshStillerman commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.