Pipe compile problem

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

Pipe compile problem

Jeff Hennick-3

I am having a problem with the new 3.08 GA pipes.  It is giving an error message when compiling a test .njp file.

This file compiles, then works nicely.  It is named changetest05.njp :

-- changetest05  /a/111/ *

/*
>>--CHANGE-+---------+-+-----------------+--------------->
           +-ANYcase-+ +-inputRange------¦
                       ¦   +--<----+     ¦
                       +-(-+-range-+--)--+

>--+--| changeString |----------------+--+-----------+---->>
   +-delimitedString--delimitedString-+  +-numorstar-+

changeString:
 |--delimiter--string--delimiter--string--delimiter--|
*/

/*
  19/09/07 Jeff Hennick
*/

pipe (changetest05)

literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last |
split ; |
change /_// |
   change /a/111/ * |
console |
compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ |
console ?
literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st |
split ; |
change /_// |
compare:

But, if I copy the file, renaming it to  changetest06.njp  and change the pipe name to changetest06, it will not compile.  It gives:

PS C:\Users\Jeff\documents\pipe tests> pipe changetest06
 50 +++     _s_1 = changetest06()
    +++            ^^^^^^^^^^^^
    +++ Error: The method 'changetest06() cannot be found in class 'pb3ba194' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.runner.main(runner.java:76)
PS C:\Users\Jeff\documents\pipe tests>

(It does not matter if I change the first comment's 05 to 06, of course.)

Anyone have any thoughts? I've run out, I'm afraid.  Thanks.

Jeff



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

Reply | Threaded
Open this post in threaded view
|

Re: Pipe compile problem

rvjansen
Hi Jeff,

cannot reproduce:

➜  test git:(master) ✗ emacs changetest05.njp
➜  test git:(master) ✗ pipc changetest05
pipe (changetest05 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest05.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗ cp changetest05.njp changetest06.njp
➜  test git:(master) ✗ emacs changetest06.njp
➜  test git:(master) ✗ pipc changetest06.njp
pipe (changetest06 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest06.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗

So ?
Let me know what I have to do, exactly, to reproduce the error.

best regards,

René.

On 8 Sep 2019, at 15:04, Jeff Hennick <[hidden email]> wrote:

I am having a problem with the new 3.08 GA pipes.  It is giving an error message when compiling a test .njp file.

This file compiles, then works nicely.  It is named changetest05.njp :

-- changetest05  /a/111/ *

/*
>>--CHANGE-+---------+-+-----------------+--------------->
           +-ANYcase-+ +-inputRange------¦
                       ¦   +--<----+     ¦
                       +-(-+-range-+--)--+

>--+--| changeString |----------------+--+-----------+---->>
   +-delimitedString--delimitedString-+  +-numorstar-+

changeString:
 |--delimiter--string--delimiter--string--delimiter--|
*/

/*
  19/09/07 Jeff Hennick
*/

pipe (changetest05)

literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last |
split ; |
change /_// |
   change /a/111/ * |
console |
compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ |
console ?
literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st |
split ; |
change /_// |
compare:

But, if I copy the file, renaming it to  changetest06.njp  and change the pipe name to changetest06, it will not compile.  It gives:

PS C:\Users\Jeff\documents\pipe tests> pipe changetest06
 50 +++     _s_1 = changetest06()
    +++            ^^^^^^^^^^^^
    +++ Error: The method 'changetest06() cannot be found in class 'pb3ba194' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.runner.main(runner.java:76)
PS C:\Users\Jeff\documents\pipe tests>

(It does not matter if I change the first comment's 05 to 06, of course.)

Anyone have any thoughts? I've run out, I'm afraid.  Thanks.

Jeff


_______________________________________________
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: Pipe compile problem

Jeff Hennick-3

René,

I wish I could say how to reproduce.  Take a look at this:

C:\Users\Jeff\Documents\Pipe Tests>type a.njp
pipe(a)
literal 7 | console

C:\Users\Jeff\Documents\Pipe Tests>pipe a
 50 +++     _s_1 = a()
    +++            ^
    +++ Error: The method 'a()' cannot be found in class 'pa74dc72' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.pipes.runner.main(runner.java:76)

C:\Users\Jeff\Documents\Pipe Tests>pipe changetest05      <-- Works

C:\Users\Jeff\Documents\Pipe Tests>

At this time, any new file I try causes the error.  In PowerShell or cmd window.  Old files continue to work.

Jeff

On 9/8/2019 3:12 PM, René Jansen wrote:
Hi Jeff,

cannot reproduce:

➜  test git:(master) ✗ emacs changetest05.njp
➜  test git:(master) ✗ pipc changetest05
pipe (changetest05 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest05.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗ cp changetest05.njp changetest06.njp
➜  test git:(master) ✗ emacs changetest06.njp
➜  test git:(master) ✗ pipc changetest06.njp
pipe (changetest06 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest06.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗

So ?
Let me know what I have to do, exactly, to reproduce the error.

best regards,

René.

On 8 Sep 2019, at 15:04, Jeff Hennick <[hidden email]> wrote:

I am having a problem with the new 3.08 GA pipes.  It is giving an error message when compiling a test .njp file.

This file compiles, then works nicely.  It is named changetest05.njp :

-- changetest05  /a/111/ *

/*
>>--CHANGE-+---------+-+-----------------+--------------->
           +-ANYcase-+ +-inputRange------¦
                       ¦   +--<----+     ¦
                       +-(-+-range-+--)--+

>--+--| changeString |----------------+--+-----------+---->>
   +-delimitedString--delimitedString-+  +-numorstar-+

changeString:
 |--delimiter--string--delimiter--string--delimiter--|
*/

/*
  19/09/07 Jeff Hennick
*/

pipe (changetest05)

literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last |
split ; |
change /_// |
   change /a/111/ * |
console |
compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ |
console ?
literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st |
split ; |
change /_// |
compare:

But, if I copy the file, renaming it to  changetest06.njp  and change the pipe name to changetest06, it will not compile.  It gives:

PS C:\Users\Jeff\documents\pipe tests> pipe changetest06
 50 +++     _s_1 = changetest06()
    +++            ^^^^^^^^^^^^
    +++ Error: The method 'changetest06() cannot be found in class 'pb3ba194' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.runner.main(runner.java:76)
PS C:\Users\Jeff\documents\pipe tests>

(It does not matter if I change the first comment's 05 to 06, of course.)

Anyone have any thoughts? I've run out, I'm afraid.  Thanks.

Jeff


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


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

Reply | Threaded
Open this post in threaded view
|

Re: Pipe compile problem

rvjansen
Hi Jeff,

that should be:

pipc a

the pipes runner is meant for running pipelines immediately. It can do so from the command line or the NetRexx Workspace, nrws.

check if this works:

java org.netrexx.njpipes.pipes.compiler a
java a


And the pipc.bat should be on PATH.

Sorry for the incompatible change, it is for the people from CMS to be more at home. There is, however, nothing that keep you from aliasing ‘pipe’ with the compiler again.

The new class should be on CLASSPATH.

best regards,

René.


On 8 Sep 2019, at 18:05, Jeff Hennick <[hidden email]> wrote:

René,

I wish I could say how to reproduce.  Take a look at this:

C:\Users\Jeff\Documents\Pipe Tests>type a.njp
pipe(a)
literal 7 | console

C:\Users\Jeff\Documents\Pipe Tests>pipe a
 50 +++     _s_1 = a()
    +++            ^
    +++ Error: The method 'a()' cannot be found in class 'pa74dc72' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.pipes.runner.main(runner.java:76)

C:\Users\Jeff\Documents\Pipe Tests>pipe changetest05      <-- Works

C:\Users\Jeff\Documents\Pipe Tests>

At this time, any new file I try causes the error.  In PowerShell or cmd window.  Old files continue to work.

Jeff

On 9/8/2019 3:12 PM, René Jansen wrote:
Hi Jeff,

cannot reproduce:

➜  test git:(master) ✗ emacs changetest05.njp
➜  test git:(master) ✗ pipc changetest05
pipe (changetest05 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest05.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗ cp changetest05.njp changetest06.njp
➜  test git:(master) ✗ emacs changetest06.njp
➜  test git:(master) ✗ pipc changetest06.njp
pipe (changetest06 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest06.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗

So ?
Let me know what I have to do, exactly, to reproduce the error.

best regards,

René.

On 8 Sep 2019, at 15:04, Jeff Hennick <[hidden email]> wrote:

I am having a problem with the new 3.08 GA pipes.  It is giving an error message when compiling a test .njp file.

This file compiles, then works nicely.  It is named changetest05.njp :

-- changetest05  /a/111/ *

/*
>>--CHANGE-+---------+-+-----------------+--------------->
           +-ANYcase-+ +-inputRange------¦
                       ¦   +--<----+     ¦
                       +-(-+-range-+--)--+

>--+--| changeString |----------------+--+-----------+---->>
   +-delimitedString--delimitedString-+  +-numorstar-+

changeString:
 |--delimiter--string--delimiter--string--delimiter--|
*/

/*
  19/09/07 Jeff Hennick
*/

pipe (changetest05)

literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last |
split ; |
change /_// |
   change /a/111/ * |
console |
compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ |
console ?
literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st |
split ; |
change /_// |
compare:

But, if I copy the file, renaming it to  changetest06.njp  and change the pipe name to changetest06, it will not compile.  It gives:

PS C:\Users\Jeff\documents\pipe tests> pipe changetest06
 50 +++     _s_1 = changetest06()
    +++            ^^^^^^^^^^^^
    +++ Error: The method 'changetest06() cannot be found in class 'pb3ba194' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.runner.main(runner.java:76)
PS C:\Users\Jeff\documents\pipe tests>

(It does not matter if I change the first comment's 05 to 06, of course.)

Anyone have any thoughts? I've run out, I'm afraid.  Thanks.

Jeff


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

_______________________________________________
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: Pipe compile problem

Jeff Hennick-3

C:\Users\Jeff\Documents\Pipe Tests>java org.netrexx.njpipes.pipes.compiler a

C:\Users\Jeff\Documents\Pipe Tests>java a
Error: Could not find or load main class a

C:\Users\Jeff\Documents\Pipe Tests>pipc a

C:\Users\Jeff\Documents\Pipe Tests>java a
Error: Could not find or load main class a

C:\Users\Jeff\Documents\Pipe Tests>dir a.*
 Volume in drive C is OS
 Volume Serial Number is DEE6-292A

 Directory of C:\Users\Jeff\Documents\Pipe Tests

09/08/2019  05:54 PM                30 a.njp
               1 File(s)             30 bytes
               0 Dir(s)  247,756,996,608 bytes free

Since you don't see it, there is something going on on my machine.  Probably some old system/beta interfering.

I'll take a deeper look on Monday.

On 9/8/2019 7:22 PM, René Jansen wrote:
Hi Jeff,

that should be:

pipc a

the pipes runner is meant for running pipelines immediately. It can do so from the command line or the NetRexx Workspace, nrws.

check if this works:

java org.netrexx.njpipes.pipes.compiler a
java a


And the pipc.bat should be on PATH.

Sorry for the incompatible change, it is for the people from CMS to be more at home. There is, however, nothing that keep you from aliasing ‘pipe’ with the compiler again.

The new class should be on CLASSPATH.

best regards,

René.


On 8 Sep 2019, at 18:05, Jeff Hennick <[hidden email]> wrote:

René,

I wish I could say how to reproduce.  Take a look at this:

C:\Users\Jeff\Documents\Pipe Tests>type a.njp
pipe(a)
literal 7 | console

C:\Users\Jeff\Documents\Pipe Tests>pipe a
 50 +++     _s_1 = a()
    +++            ^
    +++ Error: The method 'a()' cannot be found in class 'pa74dc72' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.pipes.runner.main(runner.java:76)

C:\Users\Jeff\Documents\Pipe Tests>pipe changetest05      <-- Works

C:\Users\Jeff\Documents\Pipe Tests>

At this time, any new file I try causes the error.  In PowerShell or cmd window.  Old files continue to work.

Jeff

On 9/8/2019 3:12 PM, René Jansen wrote:
Hi Jeff,

cannot reproduce:

➜  test git:(master) ✗ emacs changetest05.njp
➜  test git:(master) ✗ pipc changetest05
pipe (changetest05 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest05.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗ cp changetest05.njp changetest06.njp
➜  test git:(master) ✗ emacs changetest06.njp
➜  test git:(master) ✗ pipc changetest06.njp
pipe (changetest06 ) literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last | split ; | change /_// | change /a/111/ * | console | compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ | console ? literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st | split ; | change /_// | compare:
➜  test git:(master) ✗ changetest06.class
line 1.1
line 1.2 l111st

line 2.1
line 2
Line 2.2
LIne 2.3 LAST

LINE 3.1 l111st
OK
➜  test git:(master) ✗

So ?
Let me know what I have to do, exactly, to reproduce the error.

best regards,

René.

On 8 Sep 2019, at 15:04, Jeff Hennick <[hidden email]> wrote:

I am having a problem with the new 3.08 GA pipes.  It is giving an error message when compiling a test .njp file.

This file compiles, then works nicely.  It is named changetest05.njp :

-- changetest05  /a/111/ *

/*
>>--CHANGE-+---------+-+-----------------+--------------->
           +-ANYcase-+ +-inputRange------¦
                       ¦   +--<----+     ¦
                       +-(-+-range-+--)--+

>--+--| changeString |----------------+--+-----------+---->>
   +-delimitedString--delimitedString-+  +-numorstar-+

changeString:
 |--delimiter--string--delimiter--string--delimiter--|
*/

/*
  19/09/07 Jeff Hennick
*/

pipe (changetest05)

literal line 1.1;line 1.2 last;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 last |
split ; |
change /_// |
   change /a/111/ * |
console |
compare: compare equal /OK/ notequal /BAD at \\c, \\b/ less /Less:\\p::\\s:/ more /More:\\p::\\s:/ |
console ?
literal line 1.1;line 1.2 l111st;_;line 2.1;line 2;Line 2.2;LIne 2.3 LAST;_;LINE 3.1 l111st |
split ; |
change /_// |
compare:

But, if I copy the file, renaming it to  changetest06.njp  and change the pipe name to changetest06, it will not compile.  It gives:

PS C:\Users\Jeff\documents\pipe tests> pipe changetest06
 50 +++     _s_1 = changetest06()
    +++            ^^^^^^^^^^^^
    +++ Error: The method 'changetest06() cannot be found in class 'pb3ba194' or a superclass
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217)
        at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240)
        at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337)
        at org.netrexx.njpipes.runner.main(runner.java:76)
PS C:\Users\Jeff\documents\pipe tests>

(It does not matter if I change the first comment's 05 to 06, of course.)

Anyone have any thoughts? I've run out, I'm afraid.  Thanks.

Jeff


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

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


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

Reply | Threaded
Open this post in threaded view
|

Re: Pipe compile problem

rvjansen
Error: Could not find or load main class a
means: it is not on the Classpath; probably just needs a . (Dot)

René.

> On 8 Sep 2019, at 22:01, Jeff Hennick <[hidden email]> wrote:
>
> Error: Could not find or load main class a

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

Reply | Threaded
Open this post in threaded view
|

Re: Pipe compile problem

Jeff Hennick-3

The Classpath begins with .; and has done so.

I have cleared out any possible old NR versions and done a cold reboot.

Still having problems.  Neither pipc nor java org.netrexx.njpipes.pipes.compiler a create a .class file, and give no error messages:

C:\Users\Jeff\Documents\Pipe Tests>type a.njp
pipe(a)
literal 7 | console

C:\Users\Jeff\Documents\Pipe Tests>dir a.*
 Volume in drive C is OS
 Volume Serial Number is DEE6-292A

 Directory of C:\Users\Jeff\Documents\Pipe Tests

09/08/2019  05:54 PM                30 a.njp
               1 File(s)             30 bytes
               0 Dir(s)  262,195,929,088 bytes free

C:\Users\Jeff\Documents\Pipe Tests>pipc a

C:\Users\Jeff\Documents\Pipe Tests>dir a.*
 Volume in drive C is OS
 Volume Serial Number is DEE6-292A

 Directory of C:\Users\Jeff\Documents\Pipe Tests

09/08/2019  05:54 PM                30 a.njp
               1 File(s)             30 bytes
               0 Dir(s)  262,193,553,408 bytes free

C:\Users\Jeff\Documents\Pipe Tests>java org.netrexx.njpipes.pipes.compiler a

C:\Users\Jeff\Documents\Pipe Tests>dir a.*
 Volume in drive C is OS
 Volume Serial Number is DEE6-292A

 Directory of C:\Users\Jeff\Documents\Pipe Tests

09/08/2019  05:54 PM                30 a.njp
               1 File(s)             30 bytes
               0 Dir(s)  262,191,398,912 bytes free
Windows search can not find an a.class file anywhere.

On 9/9/2019 12:08 AM, René Jansen wrote:
Error: Could not find or load main class a
means: it is not on the Classpath; probably just needs a . (Dot)

René.

On 8 Sep 2019, at 22:01, Jeff Hennick [hidden email] wrote:

Error: Could not find or load main class a
_______________________________________________
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
|

nrws.bat missing from NetRexx-3.08-GA.zip

Jeff Hennick-3
In reply to this post by rvjansen

The NetRexx Work Station bat file is not in the bin folder for the NetRexx-3.08-GA.zip release.

There is a nrws.history file in the examples/pipes.  That is the only nrws.* file found.

C:\Users\Jeff\Documents\Pipe Tests>java org.vpad.extra workpad.Workspace.
Error: Could not find or load main class org.vpad.extra

C:\Users\Jeff\Documents\Pipe Tests>


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

Reply | Threaded
Open this post in threaded view
|

Re: nrws.bat missing from NetRexx-3.08-GA.zip

rvjansen
Hi Jeff,

yep, my bad. It was a git push from windows that did not succeed and was subsequently forgotten.
I’ll put it in. In the meantime, it is like pipe and pipc and the .aliases file specifies the class.

best regards,

René.


On 9 Sep 2019, at 14:34, Jeff Hennick <[hidden email]> wrote:

The NetRexx Work Station bat file is not in the bin folder for the NetRexx-3.08-GA.zip release.

There is a nrws.history file in the examples/pipes.  That is the only nrws.* file found.


C:\Users\Jeff\Documents\Pipe Tests>java org.vpad.extra workpad.Workspace.
Error: Could not find or load main class org.vpad.extra

C:\Users\Jeff\Documents\Pipe Tests>


_______________________________________________
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: Pipe compile problem :: SOLVED

Jeff Hennick-3
In reply to this post by Jeff Hennick-3
René and all,

I have found my problem.

It was the lack of a system environment variable:  NetRexx_Home .

Once I looked at the pipc.bat and saw it was using that variable, I checked and mine was not set.  Once set, it all works nicely.

But this means the Quick Start needs an update.  There is one more step after unzipping the file: Set the system environment variable, NetRexx_Home to where the files are (above the lib directory).

Thank you for staying with me on this through all the long night (and day) hours.

I expect to get back to stage testing tonight or Wed.

Jeff (Happy again)


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

Reply | Threaded
Open this post in threaded view
|

Re: Pipe compile problem :: SOLVED

rvjansen
Hi Jeff,

great! Will put that in the manuals. (and probably the read.me.first)

best regards,

René

On 10 Sep 2019, at 13:14, Jeff Hennick <[hidden email]> wrote:

René and all,

I have found my problem.

It was the lack of a system environment variable:  NetRexx_Home .

Once I looked at the pipc.bat and saw it was using that variable, I checked and mine was not set.  Once set, it all works nicely.

But this means the Quick Start needs an update.  There is one more step after unzipping the file: Set the system environment variable, NetRexx_Home to where the files are (above the lib directory).

Thank you for staying with me on this through all the long night (and day) hours.

I expect to get back to stage testing tonight or Wed.

Jeff (Happy again)

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