method not accessible

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

method not accessible

Michael (maillists) Dag

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

measel

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

Michael (maillists) Dag

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

measel

Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.

 

Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.

 

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

Michael (maillists) Dag

Yeah, got an updated version of the jar file and now the doc states it’s public…

Now running into all kinds of other class cannot be found messages…

 

Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…

Works… but I feel stupid… so there must be a better way… ?

 

Michael  

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.

 

Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.

 

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

measel

If you’re reverse engineering and using someone else’s classes, then not really.

 

Are you using import statements in your code ?  

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 9:06 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Yeah, got an updated version of the jar file and now the doc states it’s public…

Now running into all kinds of other class cannot be found messages…

 

Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…

Works… but I feel stupid… so there must be a better way… ?

 

Michael  

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.

 

Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.

 

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

rvjansen
In reply to this post by Michael (maillists) Dag
<base href="x-msg://8415/">Michael,

with MQ, the jars have a way of including other jars using the META-INF mechanism. If all works, you have to include only the top level jar.
For PCF, I need as imports:

import com.ibm.mq.constants.
import com.ibm.mqm.headers.

and on the classpath:

/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:/opt/mqm/java/lib/com.ibm.mq.headers.jar:/opt/mqm/java/lib/com.ibm.mq.jar:../lib/NetRexxC.jar


best regards,

René.

On 17 apr. 2013, at 16:06, <[hidden email]> wrote:

Yeah, got an updated version of the jar file and now the doc states it’s public…
Now running into all kinds of other class cannot be found messages…
 
Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…
Works… but I feel stupid… so there must be a better way… ?
 
Michael  
 
From: [hidden email] [mailto:ibm-[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible
 
Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.
 
Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.
 
 
From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible
 
Mike,
Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?
I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!
 
Michael   
 
From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible
 
It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?
 
From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible
 
Not being a java person, playing with some code and found this message for a method (see below),
What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?
 
same happens with 3.01, so as far as I can see not related to 3.02
 
 
NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551
Copyright (c) RexxLA, 2011,2013.  All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program mqdocpcf.nrx
  === class mqdocpcf ===
    function main(String[])
184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'
pcfParameter_.getValue()
     +++
                      ^^^^^^^^^^^^^^^^
     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'
      signals IOException
    function send(Rexx)
    function dumpHexId(byte[])
    function ReadFile(Rexx)
Compilation of 'mqdocpcf.nrx' failed [one error]
 
-------
Michael
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

rvjansen
By the way, this is discussed in https://kenai.com/jira/browse/NETREXX-74
I could not reproduce the problem (nor confirm the fix at that) but have to admit I could not find the time to check thoroughly.

René.



On 17 apr. 2013, at 16:17, René Jansen <[hidden email]> wrote:

<base href="x-msg://8415/">
Michael,

with MQ, the jars have a way of including other jars using the META-INF mechanism. If all works, you have to include only the top level jar.
For PCF, I need as imports:

import com.ibm.mq.constants.
import com.ibm.mqm.headers.

and on the classpath:

/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:/opt/mqm/java/lib/com.ibm.mq.headers.jar:/opt/mqm/java/lib/com.ibm.mq.jar:../lib/NetRexxC.jar


best regards,

René.

On 17 apr. 2013, at 16:06, <[hidden email]> wrote:

Yeah, got an updated version of the jar file and now the doc states it’s public…
Now running into all kinds of other class cannot be found messages…
 
Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…
Works… but I feel stupid… so there must be a better way… ?
 
Michael  
 
From: [hidden email] [mailto:ibm-[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible
 
Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.
 
Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.
 
 
From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible
 
Mike,
Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?
I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!
 
Michael   
 
From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible
 
It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?
 
From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible
 
Not being a java person, playing with some code and found this message for a method (see below),
What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?
 
same happens with 3.01, so as far as I can see not related to 3.02
 
 
NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551
Copyright (c) RexxLA, 2011,2013.  All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program mqdocpcf.nrx
  === class mqdocpcf ===
    function main(String[])
184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'
pcfParameter_.getValue()
     +++
                      ^^^^^^^^^^^^^^^^
     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'
      signals IOException
    function send(Rexx)
    function dumpHexId(byte[])
    function ReadFile(Rexx)
Compilation of 'mqdocpcf.nrx' failed [one error]
 
-------
Michael
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

Michael (maillists) Dag
<base href="x-msg://8415/">

René,

Thanks! Will look at this and if needed I can help testing MQ related stuff… (you can send me test / samples off the list if you want)

I am currently looking into doing more with the MQ API itself, PCF Admin and Event messages, progressing slowly as my lack of java knowledge and the lack of a good IDE for NetRexx makes feel like I am programming blindfolded sometimes… :(

 

Michael

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of René Jansen
Sent: woensdag 17 april 2013 16:22
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

By the way, this is discussed in https://kenai.com/jira/browse/NETREXX-74

I could not reproduce the problem (nor confirm the fix at that) but have to admit I could not find the time to check thoroughly.

 

René.

 

 

 

On 17 apr. 2013, at 16:17, René Jansen <[hidden email]> wrote:



Michael,

 

with MQ, the jars have a way of including other jars using the META-INF mechanism. If all works, you have to include only the top level jar.

For PCF, I need as imports:

 

import com.ibm.mq.constants.

import com.ibm.mqm.headers.

 

and on the classpath:

 

/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:/opt/mqm/java/lib/com.ibm.mq.headers.jar:/opt/mqm/java/lib/com.ibm.mq.jar:../lib/NetRexxC.jar

 

 

best regards,

 

René.

 

On 17 apr. 2013, at 16:06, <[hidden email]> wrote:



Yeah, got an updated version of the jar file and now the doc states it’s public…

Now running into all kinds of other class cannot be found messages…

 

Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…

Works… but I feel stupid… so there must be a better way… ?

 

Michael  

 

From: [hidden email] [mailto:ibm-[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.

 

Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.

 

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

billfen
Hi Michael,
Granted that the Eclipse NetRexx plugin is Alpha level code and certainly needs work, it may be better than nothing :)
Bill

On 4/17/2013 10:34 AM, [hidden email] wrote:
<base href="x-msg://8415/">

René,

Thanks! Will look at this and if needed I can help testing MQ related stuff… (you can send me test / samples off the list if you want)

I am currently looking into doing more with the MQ API itself, PCF Admin and Event messages, progressing slowly as my lack of java knowledge and the lack of a good IDE for NetRexx makes feel like I am programming blindfolded sometimes… :(

 

Michael

 

From: [hidden email] [[hidden email]] On Behalf Of René Jansen
Sent: woensdag 17 april 2013 16:22
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

By the way, this is discussed in https://kenai.com/jira/browse/NETREXX-74

I could not reproduce the problem (nor confirm the fix at that) but have to admit I could not find the time to check thoroughly.

 

René.

 

 

 

On 17 apr. 2013, at 16:17, René Jansen <[hidden email]> wrote:



Michael,

 

with MQ, the jars have a way of including other jars using the META-INF mechanism. If all works, you have to include only the top level jar.

For PCF, I need as imports:

 

import com.ibm.mq.constants.

import com.ibm.mqm.headers.

 

and on the classpath:

 

/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:/opt/mqm/java/lib/com.ibm.mq.headers.jar:/opt/mqm/java/lib/com.ibm.mq.jar:../lib/NetRexxC.jar

 

 

best regards,

 

René.

 

On 17 apr. 2013, at 16:06, <[hidden email]> wrote:



Yeah, got an updated version of the jar file and now the doc states it’s public…

Now running into all kinds of other class cannot be found messages…

 

Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…

Works… but I feel stupid… so there must be a better way… ?

 

Michael  

 

From: [hidden email] [[hidden email]-[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.

 

Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.

 

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 

 



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3272 / Virus Database: 3162/6249 - Release Date: 04/16/13



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

Michael (maillists) Dag
<base href="x-msg://8415/">

Hi Bill,

Does that do NetRexx / Java code assist like other IDE’s ? my main problem is often not knowing how to use certain variables / methods.

Compiling, running, etc works from commandline…

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Bill Fenlason
Sent: woensdag 17 april 2013 16:39
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Hi Michael,
Granted that the Eclipse NetRexx plugin is Alpha level code and certainly needs work, it may be better than nothing :)
Bill

On 4/17/2013 10:34 AM, [hidden email] wrote:

René,

Thanks! Will look at this and if needed I can help testing MQ related stuff… (you can send me test / samples off the list if you want)

I am currently looking into doing more with the MQ API itself, PCF Admin and Event messages, progressing slowly as my lack of java knowledge and the lack of a good IDE for NetRexx makes feel like I am programming blindfolded sometimes… :(

 

Michael

 

From: [hidden email] [[hidden email]] On Behalf Of René Jansen
Sent: woensdag 17 april 2013 16:22
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

By the way, this is discussed in https://kenai.com/jira/browse/NETREXX-74

I could not reproduce the problem (nor confirm the fix at that) but have to admit I could not find the time to check thoroughly.

 

René.

 

 

 

On 17 apr. 2013, at 16:17, René Jansen <[hidden email]> wrote:




Michael,

 

with MQ, the jars have a way of including other jars using the META-INF mechanism. If all works, you have to include only the top level jar.

For PCF, I need as imports:

 

import com.ibm.mq.constants.

import com.ibm.mqm.headers.

 

and on the classpath:

 

/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:/opt/mqm/java/lib/com.ibm.mq.headers.jar:/opt/mqm/java/lib/com.ibm.mq.jar:../lib/NetRexxC.jar

 

 

best regards,

 

René.

 

On 17 apr. 2013, at 16:06, <[hidden email]> wrote:




Yeah, got an updated version of the jar file and now the doc states it’s public…

Now running into all kinds of other class cannot be found messages…

 

Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…

Works… but I feel stupid… so there must be a better way… ?

 

Michael  

 

From: [hidden email] [[hidden email]-[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.

 

Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.

 

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 

 




_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/
 




No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3272 / Virus Database: 3162/6249 - Release Date: 04/16/13

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

billfen
Unfortunately not much help with that, but definitely on the "to do" list.  Sorry....
Bill

On 4/17/2013 10:52 AM, [hidden email] wrote:
<base href="x-msg://8415/">

Hi Bill,

Does that do NetRexx / Java code assist like other IDE’s ? my main problem is often not knowing how to use certain variables / methods.

Compiling, running, etc works from commandline…

 

From: [hidden email] [[hidden email]] On Behalf Of Bill Fenlason
Sent: woensdag 17 april 2013 16:39
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Hi Michael,
Granted that the Eclipse NetRexx plugin is Alpha level code and certainly needs work, it may be better than nothing :)
Bill

On 4/17/2013 10:34 AM, [hidden email] wrote:

René,

Thanks! Will look at this and if needed I can help testing MQ related stuff… (you can send me test / samples off the list if you want)

I am currently looking into doing more with the MQ API itself, PCF Admin and Event messages, progressing slowly as my lack of java knowledge and the lack of a good IDE for NetRexx makes feel like I am programming blindfolded sometimes… :(

 

Michael

 



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: method not accessible

measel
In reply to this post by Michael (maillists) Dag
<base href="x-msg://8415/">

Michael, Netrexx works better if you don’t try to code too hard.  J

 

Many of us find Jedit and the command line sufficient for a development environment.

 

<feeling like sharing>

One of my favorite blocks of nrx code:

 

               appProp = Properties()

               propfile = String "myapp.properties"

               propinput = FileInputStream(propfile)                                      /* our properties file name */

               appProp.load(propinput)

               debug_flag = appProp.getProperty("config.debug")

               if debug_flag then say '================>>>   debugging enabled '

 

or

               if debug_flag then trace all

 

 

myapp.properties:

#

config.debug=1

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 9:34 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

René,

Thanks! Will look at this and if needed I can help testing MQ related stuff… (you can send me test / samples off the list if you want)

I am currently looking into doing more with the MQ API itself, PCF Admin and Event messages, progressing slowly as my lack of java knowledge and the lack of a good IDE for NetRexx makes feel like I am programming blindfolded sometimes… :(

 

Michael

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of René Jansen
Sent: woensdag 17 april 2013 16:22
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

By the way, this is discussed in https://kenai.com/jira/browse/NETREXX-74

I could not reproduce the problem (nor confirm the fix at that) but have to admit I could not find the time to check thoroughly.

 

René.

 

 

 

On 17 apr. 2013, at 16:17, René Jansen <[hidden email]> wrote:

 

Michael,

 

with MQ, the jars have a way of including other jars using the META-INF mechanism. If all works, you have to include only the top level jar.

For PCF, I need as imports:

 

import com.ibm.mq.constants.

import com.ibm.mqm.headers.

 

and on the classpath:

 

/opt/mqm/java/lib/com.ibm.mq.jmqi.jar:/opt/mqm/java/lib/com.ibm.mq.pcf.jar:/opt/mqm/java/lib/com.ibm.mq.headers.jar:/opt/mqm/java/lib/com.ibm.mq.jar:../lib/NetRexxC.jar

 

 

best regards,

 

René.

 

On 17 apr. 2013, at 16:06, <[hidden email]> wrote:

 

Yeah, got an updated version of the jar file and now the doc states it’s public…

Now running into all kinds of other class cannot be found messages…

 

Is there a secret to quickly find the needed jar file when you get this kind of error, I search by opening the jar file with winzip and then see what’s inside…

Works… but I feel stupid… so there must be a better way… ?

 

Michael  

 

From: [hidden email] [mailto:ibm-[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:59
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

Well, the javadoc or whatever you used to find out the methods you are playing with should indicate that it’s private.  You can also use reflection to list public methods.

 

Sorry don’t know what I was thinking about extending.  You still wouldn’t be able to get at a private method.

 

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:39 AM
To: 'IBM Netrexx'
Subject: Re: [Ibm-netrexx] method not accessible

 

Mike,

Interesting, how would I know a method is private? Is this documented or is this implicit from this error message?

I can change my code however I want, I have no clue how to extend the pcfParameter class so any NetRexx samples or pointers are welcome!

 

Michael   

 

From: [hidden email] [[hidden email]] On Behalf Of Measel, Mike
Sent: woensdag 17 april 2013 15:29
To: IBM Netrexx
Subject: Re: [Ibm-netrexx] method not accessible

 

It’s a private method, accessible only from within its own class.  Can you change your code to extend the pcfParameter class ?

 

From: [hidden email] [[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, April 17, 2013 8:18 AM
To: IBM Netrexx
Subject: [Ibm-netrexx] method not accessible

 

Not being a java person, playing with some code and found this message for a method (see below),

What does it mean is not accessible from class (mqdocpcf), is this a NetRexx thing? Am I doing something wrong?

 

same happens with 3.01, so as far as I can see not related to 3.02

 

 

NetRexx portable processor, version NetRexx 3.02, build 11-20130323-1551

Copyright (c) RexxLA, 2011,2013.  All rights reserved.

Parts Copyright (c) IBM Corporation, 1995,2008.

Program mqdocpcf.nrx

  === class mqdocpcf ===

    function main(String[])

184 +++         if trace_opt     = 'on' Then say '-1-'pcfParameter_.getParameter()'-2-'pcfParameter_.getParameterName()'-3-'pcfParameter_.getStringValue()'-4-'

pcfParameter_.getValue()

     +++

                      ^^^^^^^^^^^^^^^^

     +++ Error: The method 'PCFParameter.getParameterName' was found, but is not accessible from class 'mqdocpcf'

      signals IOException

    function send(Rexx)

    function dumpHexId(byte[])

    function ReadFile(Rexx)

Compilation of 'mqdocpcf.nrx' failed [one error]

 

-------

Michael

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

 

 


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/