Problem Migrating to NetBeans 8.2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem Migrating to NetBeans 8.2

Blaine Heinfeld
I apologize up front if this message is inappropriate on this list.  I
am new to the list.  I have been a periodic user of NetBeans for years
and have never before encountered a problem I couldn't resolve myself.  
But I haven't found any other reports of this problem or a solution
posted on-line.

I have been successfully using NetBeans 8.1 for Java SE development on a
remote Raspberry Pi for quite a while.  With NetBeans 8.1, I am able to
issue a "Run Project" command and have my program begin execution on the
Raspberry Pi.  Life is good. But when I installed NetBeans 8.2, having
all settings imported from NetBeans 8.1, the remote run capability
stopped working.

Here is a portion of what I see in the output window when I run using
NetBeans 8.1:

compile:
Copying 1 file to D:\V04\CMRIV04\build
Copy libraries to D:\V04\CMRIV04\dist\lib.
Building jar: D:\V04\CMRIV04\dist\CMRIV04.jar
To run this application from the command line without Ant, try:
java -jar "D:\V04\CMRIV04\dist\CMRIV04.jar"
jar:
Connecting to xxx.xxx.xxx.xxx:22
cmd : mkdir -p '/home/pi/NetBeansProjects//CMRIV04/dist'
Connecting to xxx.xxx.xxx.xxx:22
done.
profile-rp-calibrate-passwd:
Connecting to xxx.xxx.xxx.xxx:22
cmd : cd '/home/pi/NetBeansProjects//CMRIV04'; 'export' DISPLAY=:1.0;
xhost +local:; 'sudo'
'/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/bin/java'
-Dfile.encoding=UTF-8 -Xmx12m
-Djava.library.path=/home/pi/NetBeansProjects//CMRIV04/dist/lib
-Djava.awt.headless=false -jar
/home/pi/NetBeansProjects//CMRIV04/dist/CMRIV04.jar
non-network local connections being added to access control list
run-remote:
BUILD SUCCESSFUL (total time: 31 seconds)

Where the last two lines appear after I exit the program on the remote
Raspberry Pi.  And here is the same information when I run using
NetBeans 8.2:

compile:
Copying 1 file to D:\V04\CMRIV04\build
Copy libraries to D:\V04\CMRIV04\dist\lib.
Building jar: D:\V04\CMRIV04\dist\CMRIV04.jar
To run this application from the command line without Ant, try:
java -jar "D:\V04\CMRIV04\dist\CMRIV04.jar"
jar:
run-remote:
BUILD SUCCESSFUL (total time: 7 seconds)

With NetBeans 8.2 there is no apparent attempt to connect to the remote
system after the jar file has been built, and no errors are logged here
either.  The program does not run on the remote Raspberry Pi, and the
last two lines appear immediately.

If I go into the platform manager in NetBeans 8.2 and do a "Test
Platform", the platform appears to work successfully and I receive the
"Connection to a remote platform is successfully established" message.  
I just can't seem to run (or debug) the program on the remote platform.  
Using some different configuration information this program can also run
on Windows and, if I change to the default platform, the program does
run from on Windows from both NetBeans 8.1 and 8.2.

I can also successfully go back and forth between NetBeans 8.1 and 8.2.  
Remote execution from NetBeans 8.1 always works.  On NetBeans 8.2 it
never works.

Any help or insights on this problem would be appreciated. Hopefully I'm
just overlooking something simple.  While there are no features in
NetBeans 8.2 that I need, I'd like to migrate to the latest version.

Blaine

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Migrating to NetBeans 8.2

markwade
There was a thread on this list in January that I believe is relevant to
your post:


https://forums.netbeans.org/topic67345.html


The issue seems not to have been resolved in the thread. The OP
mentioned a workaround  that "requires some manual work" but didn't post
what that was.

On 06/15/2017 10:11 AM, Blaine Heinfeld wrote:

> I apologize up front if this message is inappropriate on this list. I
> am new to the list.  I have been a periodic user of NetBeans for years
> and have never before encountered a problem I couldn't resolve
> myself.  But I haven't found any other reports of this problem or a
> solution posted on-line.
>
> I have been successfully using NetBeans 8.1 for Java SE development on
> a remote Raspberry Pi for quite a while.  With NetBeans 8.1, I am able
> to issue a "Run Project" command and have my program begin execution
> on the Raspberry Pi.  Life is good. But when I installed NetBeans 8.2,
> having all settings imported from NetBeans 8.1, the remote run
> capability stopped working.
>
> Here is a portion of what I see in the output window when I run using
> NetBeans 8.1:
>
> compile:
> Copying 1 file to D:\V04\CMRIV04\build
> Copy libraries to D:\V04\CMRIV04\dist\lib.
> Building jar: D:\V04\CMRIV04\dist\CMRIV04.jar
> To run this application from the command line without Ant, try:
> java -jar "D:\V04\CMRIV04\dist\CMRIV04.jar"
> jar:
> Connecting to xxx.xxx.xxx.xxx:22
> cmd : mkdir -p '/home/pi/NetBeansProjects//CMRIV04/dist'
> Connecting to xxx.xxx.xxx.xxx:22
> done.
> profile-rp-calibrate-passwd:
> Connecting to xxx.xxx.xxx.xxx:22
> cmd : cd '/home/pi/NetBeansProjects//CMRIV04'; 'export' DISPLAY=:1.0;
> xhost +local:; 'sudo'
> '/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/bin/java'
> -Dfile.encoding=UTF-8 -Xmx12m
> -Djava.library.path=/home/pi/NetBeansProjects//CMRIV04/dist/lib
> -Djava.awt.headless=false -jar
> /home/pi/NetBeansProjects//CMRIV04/dist/CMRIV04.jar
> non-network local connections being added to access control list
> run-remote:
> BUILD SUCCESSFUL (total time: 31 seconds)
>
> Where the last two lines appear after I exit the program on the remote
> Raspberry Pi.  And here is the same information when I run using
> NetBeans 8.2:
>
> compile:
> Copying 1 file to D:\V04\CMRIV04\build
> Copy libraries to D:\V04\CMRIV04\dist\lib.
> Building jar: D:\V04\CMRIV04\dist\CMRIV04.jar
> To run this application from the command line without Ant, try:
> java -jar "D:\V04\CMRIV04\dist\CMRIV04.jar"
> jar:
> run-remote:
> BUILD SUCCESSFUL (total time: 7 seconds)
>
> With NetBeans 8.2 there is no apparent attempt to connect to the
> remote system after the jar file has been built, and no errors are
> logged here either.  The program does not run on the remote Raspberry
> Pi, and the last two lines appear immediately.
>
> If I go into the platform manager in NetBeans 8.2 and do a "Test
> Platform", the platform appears to work successfully and I receive the
> "Connection to a remote platform is successfully established"
> message.  I just can't seem to run (or debug) the program on the
> remote platform.  Using some different configuration information this
> program can also run on Windows and, if I change to the default
> platform, the program does run from on Windows from both NetBeans 8.1
> and 8.2.
>
> I can also successfully go back and forth between NetBeans 8.1 and
> 8.2.  Remote execution from NetBeans 8.1 always works.  On NetBeans
> 8.2 it never works.
>
> Any help or insights on this problem would be appreciated. Hopefully
> I'm just overlooking something simple.  While there are no features in
> NetBeans 8.2 that I need, I'd like to migrate to the latest version.
>
> Blaine
>
>

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem Migrating to NetBeans 8.2

Blaine Heinfeld
Mark,...

I had found this thread in my own searching for a solution.
Unfortunately, the original problem here doesn't seem to be the same as
mine.

In that thread, John states that NetBeans displays "Unable to establish
connection with 192.168.0.110 on port 22" when testing the connection.  
I have no trouble testing the connection.  My connection test is always
successful.  But when I try to do a remote run there is no indication in
the output stream that NetBeans is even making an attempt to use the
connection.  No "Connecting to..." message, and no error, connection
failure, or timeout message.

In fact, if I power down the Raspberry Pi and try a remote run with
NetBeans 8.2, I get exactly the same result.  No "Connecting to..."
message, and no error, connection failure, or timeout message.  I'd
almost rather have an error message, because I'd have something specific
to pursue to resolve the problem.

Blaine

On 6/15/2017 1:20 PM, Mark Wade wrote:

> There was a thread on this list in January that I believe is relevant
> to your post:
>
>
> https://forums.netbeans.org/topic67345.html
>
>
> The issue seems not to have been resolved in the thread. The OP
> mentioned a workaround  that "requires some manual work" but didn't
> post what that was.
>
> On 06/15/2017 10:11 AM, Blaine Heinfeld wrote:
>> I apologize up front if this message is inappropriate on this list. I
>> am new to the list.  I have been a periodic user of NetBeans for
>> years and have never before encountered a problem I couldn't resolve
>> myself.  But I haven't found any other reports of this problem or a
>> solution posted on-line.
>>
>> I have been successfully using NetBeans 8.1 for Java SE development
>> on a remote Raspberry Pi for quite a while.  With NetBeans 8.1, I am
>> able to issue a "Run Project" command and have my program begin
>> execution on the Raspberry Pi.  Life is good. But when I installed
>> NetBeans 8.2, having all settings imported from NetBeans 8.1, the
>> remote run capability stopped working.
>>
>> Here is a portion of what I see in the output window when I run using
>> NetBeans 8.1:
>>
>> compile:
>> Copying 1 file to D:\V04\CMRIV04\build
>> Copy libraries to D:\V04\CMRIV04\dist\lib.
>> Building jar: D:\V04\CMRIV04\dist\CMRIV04.jar
>> To run this application from the command line without Ant, try:
>> java -jar "D:\V04\CMRIV04\dist\CMRIV04.jar"
>> jar:
>> Connecting to xxx.xxx.xxx.xxx:22
>> cmd : mkdir -p '/home/pi/NetBeansProjects//CMRIV04/dist'
>> Connecting to xxx.xxx.xxx.xxx:22
>> done.
>> profile-rp-calibrate-passwd:
>> Connecting to xxx.xxx.xxx.xxx:22
>> cmd : cd '/home/pi/NetBeansProjects//CMRIV04'; 'export' DISPLAY=:1.0;
>> xhost +local:; 'sudo'
>> '/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/bin/java'
>> -Dfile.encoding=UTF-8 -Xmx12m
>> -Djava.library.path=/home/pi/NetBeansProjects//CMRIV04/dist/lib
>> -Djava.awt.headless=false -jar
>> /home/pi/NetBeansProjects//CMRIV04/dist/CMRIV04.jar
>> non-network local connections being added to access control list
>> run-remote:
>> BUILD SUCCESSFUL (total time: 31 seconds)
>>
>> Where the last two lines appear after I exit the program on the
>> remote Raspberry Pi.  And here is the same information when I run
>> using NetBeans 8.2:
>>
>> compile:
>> Copying 1 file to D:\V04\CMRIV04\build
>> Copy libraries to D:\V04\CMRIV04\dist\lib.
>> Building jar: D:\V04\CMRIV04\dist\CMRIV04.jar
>> To run this application from the command line without Ant, try:
>> java -jar "D:\V04\CMRIV04\dist\CMRIV04.jar"
>> jar:
>> run-remote:
>> BUILD SUCCESSFUL (total time: 7 seconds)
>>
>> With NetBeans 8.2 there is no apparent attempt to connect to the
>> remote system after the jar file has been built, and no errors are
>> logged here either.  The program does not run on the remote Raspberry
>> Pi, and the last two lines appear immediately.
>>
>> If I go into the platform manager in NetBeans 8.2 and do a "Test
>> Platform", the platform appears to work successfully and I receive
>> the "Connection to a remote platform is successfully established"
>> message.  I just can't seem to run (or debug) the program on the
>> remote platform.  Using some different configuration information this
>> program can also run on Windows and, if I change to the default
>> platform, the program does run from on Windows from both NetBeans 8.1
>> and 8.2.
>>
>> I can also successfully go back and forth between NetBeans 8.1 and
>> 8.2.  Remote execution from NetBeans 8.1 always works.  On NetBeans
>> 8.2 it never works.
>>
>> Any help or insights on this problem would be appreciated. Hopefully
>> I'm just overlooking something simple.  While there are no features
>> in NetBeans 8.2 that I need, I'd like to migrate to the latest version.
>>
>> Blaine
>>
>>
>
>

Loading...