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/ * 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 changetest0650 +++ _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/ |
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é.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
René, I wish I could say how to reproduce. Take a look at this:
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, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
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é.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
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, _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
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/ |
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.njpWindows 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/ |
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. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
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é.
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
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/ |
Hi Jeff,
great! Will put that in the manuals. (and probably the read.me.first) best regards, René
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |