You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Jean-Marc Borer <jm...@gmail.com> on 2019/11/05 16:10:33 UTC

nb-javac installation problem

Hi guys,

I am stuck behind a corporate web proxy that filters Jar and Nbm if they
are not on a white list. Unfortunately, to white list something, it is a
difficult and long process in our company. Fortunately, hg.netbeans.org is
white listed. However NB tries first to download nb-javac from
netbeans.osuosl.org which is not allowed and because NB gets an empty file,
it just stops and doesn't try  hg.netbeans.org.

Where can I get either the NBMs (only jars can be found on the sites) to
install manually or how can I tell NB to use first  hg.netbeans.org and
then only  netbeans.osuosl.org?

Meanwhile, I can't update nb-javac...

I hope someone has a solution here.

Cheers,

JM Borer

Re: Re: nb-javac installation problem

Posted by Jean-Marc Borer <jm...@gmail.com>.
In my corporate environment, I have to face 3 major challenges when I need
to get access to the internet:
1) NTLM authentication
2) Self signed certificate
3) Black/white listing

Each time we need to figure out how to solve those issues.

For 1, we use cntlm which allows us to consistently be authenticated and
configure our tools to use this local proxy
Point 2 is often more challenging since our company uses a self signed
certificate. There are 2 options, install the certificate in the tools
trusted cert repo (cacert for Java) or let the tool ignore certification
issues (not a good idea)
Last but not least, point 3 is the most challenging since our proxy doesn’t
really block Jars and Nbms, but returns empty (0k) files, which often
result in really strange error messages when your are used to it. Here the
only solutions are to white list the URL (long and tedious internal
security process but the most sustainable) or manually install the files
downloaded from somewhere else.

Hope it helps

Cheers

Le mar. 5 nov. 2019 à 18:53, Eric Bresie <eb...@gmail.com> a écrit :

> This may be similar issue on nb-java I mentioned (and forgot to vote on
> :-) ) previously [1]
>
> As I may have similar corporate proxy setup it could be related.
>
> At the time, I was thinking it had to do with Java certificate
> authentication activity (i.e. proxy does the white list handling). A given
> site was unknown to the registered sites in the cert file. Does Netbeans
> use a global java cert file or a Netbeans specific cert file!
>
> I noticed with IntelliJ it gives a dialog to add a sites credentials to
> the IntelliJ certs with each new and unknown site cert. is something like
> that needed here?
>
> Or maybe some firewall restrictions (prevention of specific port/protocols
> - does hg have unique prototoc used here) is in play? Maybe an additional
> blurb somewhere on some firewall and / proxy configuration is is needed if
> it doesn’t exist someplace.
>
> [1]
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/201910.mbox/%3cCAHw6w1RBP0PHfD=kDyUbzSPRBrZXsPK4na98_n79Eh1ow8bdBw@mail.gmail.com%3e
> (
> http://mail-archives.apache.org/mod_mbox/netbeans-dev/201910.mbox/%3cCAHw6w1RBP0PHfD=kDyUbzSPRBrZXsPK4na98_n79Eh1ow8bdBw@mail.gmail.com%3e
> )
>
> Eric Bresie
> Ebresie@gmail.com
> > On November 5, 2019 at 10:21:57 AM CST, Geertjan Wielenga <
> geertjan@apache.org> wrote:
> > I think the main question is what can we do to get you involved earlier
> --
> > i.e., check the releases before they are released, during the beta
> phases,
> > rather than afterwards?
> >
> > You could use NetBeans without nb-javac, which has downsides, but having
> > nb-javac also has downsides for you.
> >
> > You can also get nb-javac here:
> >
> > http://plugins.netbeans.org/plugin/73454/nb-javac-library
> >
> > Gj
> >
> >
> > On Tue, Nov 5, 2019 at 5:11 PM Jean-Marc Borer <jm...@gmail.com>
> wrote:
> >
> > > Hi guys,
> > >
> > > I am stuck behind a corporate web proxy that filters Jar and Nbm if
> they
> > > are not on a white list. Unfortunately, to white list something, it is
> a
> > > difficult and long process in our company. Fortunately,
> hg.netbeans.org is
> > > white listed. However NB tries first to download nb-javac from
> > > netbeans.osuosl.org which is not allowed and because NB gets an empty
> > > file,
> > > it just stops and doesn't try hg.netbeans.org.
> > >
> > > Where can I get either the NBMs (only jars can be found on the sites)
> to
> > > install manually or how can I tell NB to use first hg.netbeans.org and
> > > then only netbeans.osuosl.org?
> > >
> > > Meanwhile, I can't update nb-javac...
> > >
> > > I hope someone has a solution here.
> > >
> > > Cheers,
> > >
> > > JM Borer
> > >
>

Re: Re: nb-javac installation problem

Posted by Eric Bresie <eb...@gmail.com>.
This may be similar issue on nb-java I mentioned (and forgot to vote on :-) ) previously [1]

As I may have similar corporate proxy setup it could be related.

At the time, I was thinking it had to do with Java certificate authentication activity (i.e. proxy does the white list handling). A given site was unknown to the registered sites in the cert file. Does Netbeans use a global java cert file or a Netbeans specific cert file!

I noticed with IntelliJ it gives a dialog to add a sites credentials to the IntelliJ certs with each new and unknown site cert. is something like that needed here?

Or maybe some firewall restrictions (prevention of specific port/protocols - does hg have unique prototoc used here) is in play? Maybe an additional blurb somewhere on some firewall and / proxy configuration is is needed if it doesn’t exist someplace.

[1] http://mail-archives.apache.org/mod_mbox/netbeans-dev/201910.mbox/%3cCAHw6w1RBP0PHfD=kDyUbzSPRBrZXsPK4na98_n79Eh1ow8bdBw@mail.gmail.com%3e (http://mail-archives.apache.org/mod_mbox/netbeans-dev/201910.mbox/%3cCAHw6w1RBP0PHfD=kDyUbzSPRBrZXsPK4na98_n79Eh1ow8bdBw@mail.gmail.com%3e)

Eric Bresie
Ebresie@gmail.com
> On November 5, 2019 at 10:21:57 AM CST, Geertjan Wielenga <ge...@apache.org> wrote:
> I think the main question is what can we do to get you involved earlier --
> i.e., check the releases before they are released, during the beta phases,
> rather than afterwards?
>
> You could use NetBeans without nb-javac, which has downsides, but having
> nb-javac also has downsides for you.
>
> You can also get nb-javac here:
>
> http://plugins.netbeans.org/plugin/73454/nb-javac-library
>
> Gj
>
>
> On Tue, Nov 5, 2019 at 5:11 PM Jean-Marc Borer <jm...@gmail.com> wrote:
>
> > Hi guys,
> >
> > I am stuck behind a corporate web proxy that filters Jar and Nbm if they
> > are not on a white list. Unfortunately, to white list something, it is a
> > difficult and long process in our company. Fortunately, hg.netbeans.org is
> > white listed. However NB tries first to download nb-javac from
> > netbeans.osuosl.org which is not allowed and because NB gets an empty
> > file,
> > it just stops and doesn't try hg.netbeans.org.
> >
> > Where can I get either the NBMs (only jars can be found on the sites) to
> > install manually or how can I tell NB to use first hg.netbeans.org and
> > then only netbeans.osuosl.org?
> >
> > Meanwhile, I can't update nb-javac...
> >
> > I hope someone has a solution here.
> >
> > Cheers,
> >
> > JM Borer
> >

Re: nb-javac installation problem

Posted by Neil C Smith <ne...@apache.org>.
On Tue, 5 Nov 2019 at 16:38, Jean-Marc Borer <jm...@gmail.com> wrote:
> @Neil, I was not aware about the issue. So if I understand, we shall
> disable/uninstall nb-javac until the issue is solved?

Not necessarily.  If you disable that third-party libraries update
centre, the old nb-javac is still in the plugin portal.  I think that
doesn't have the issue, although I'm currently running without
nb-javac installed.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: nb-javac installation problem

Posted by Jean-Marc Borer <jm...@gmail.com>.
@Geertjan Wielenga <ge...@apache.org> , Thanx I could install it and
sure I started the whitelisting process
@Neil, I was not aware about the issue. So if I understand, we shall
disable/uninstall nb-javac until the issue is solved?

On Tue, Nov 5, 2019 at 4:31 PM Neil C Smith <ne...@apache.org> wrote:

> On Tue, 5 Nov 2019 at 16:11, Jean-Marc Borer <jm...@gmail.com> wrote:
> > Meanwhile, I can't update nb-javac...
>
> That may not be a bad thing until
> https://github.com/apache/netbeans/pull/1604 somehow makes its way
> into an update.  I'm currently running with Third Party Libraries
> disabled in Tools/Plugins/Settings.
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: nb-javac installation problem

Posted by Neil C Smith <ne...@apache.org>.
On Tue, 5 Nov 2019 at 16:11, Jean-Marc Borer <jm...@gmail.com> wrote:
> Meanwhile, I can't update nb-javac...

That may not be a bad thing until
https://github.com/apache/netbeans/pull/1604 somehow makes its way
into an update.  I'm currently running with Third Party Libraries
disabled in Tools/Plugins/Settings.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




Re: nb-javac installation problem

Posted by Geertjan Wielenga <ge...@apache.org>.
And in the meantime, start the process to get http://netbeans.osuosl.org/
whitelisted.

Gj

On Tue, Nov 5, 2019 at 5:21 PM Geertjan Wielenga <ge...@apache.org>
wrote:

> I think the main question is what can we do to get you involved earlier --
> i.e., check the releases before they are released, during the beta phases,
> rather than afterwards?
>
> You could use NetBeans without nb-javac, which has downsides, but having
> nb-javac also has downsides for you.
>
> You can also get nb-javac here:
>
> http://plugins.netbeans.org/plugin/73454/nb-javac-library
>
> Gj
>
>
> On Tue, Nov 5, 2019 at 5:11 PM Jean-Marc Borer <jm...@gmail.com> wrote:
>
>> Hi guys,
>>
>> I am stuck behind a corporate web proxy that filters Jar and Nbm if they
>> are not on a white list. Unfortunately, to white list something, it is a
>> difficult and long process in our company. Fortunately, hg.netbeans.org
>> is
>> white listed. However NB tries first to download nb-javac from
>> netbeans.osuosl.org which is not allowed and because NB gets an empty
>> file,
>> it just stops and doesn't try  hg.netbeans.org.
>>
>> Where can I get either the NBMs (only jars can be found on the sites) to
>> install manually or how can I tell NB to use first  hg.netbeans.org and
>> then only  netbeans.osuosl.org?
>>
>> Meanwhile, I can't update nb-javac...
>>
>> I hope someone has a solution here.
>>
>> Cheers,
>>
>> JM Borer
>>
>

Re: nb-javac installation problem

Posted by Geertjan Wielenga <ge...@apache.org>.
I think the main question is what can we do to get you involved earlier --
i.e., check the releases before they are released, during the beta phases,
rather than afterwards?

You could use NetBeans without nb-javac, which has downsides, but having
nb-javac also has downsides for you.

You can also get nb-javac here:

http://plugins.netbeans.org/plugin/73454/nb-javac-library

Gj


On Tue, Nov 5, 2019 at 5:11 PM Jean-Marc Borer <jm...@gmail.com> wrote:

> Hi guys,
>
> I am stuck behind a corporate web proxy that filters Jar and Nbm if they
> are not on a white list. Unfortunately, to white list something, it is a
> difficult and long process in our company. Fortunately, hg.netbeans.org is
> white listed. However NB tries first to download nb-javac from
> netbeans.osuosl.org which is not allowed and because NB gets an empty
> file,
> it just stops and doesn't try  hg.netbeans.org.
>
> Where can I get either the NBMs (only jars can be found on the sites) to
> install manually or how can I tell NB to use first  hg.netbeans.org and
> then only  netbeans.osuosl.org?
>
> Meanwhile, I can't update nb-javac...
>
> I hope someone has a solution here.
>
> Cheers,
>
> JM Borer
>