Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » NullPointerException while buckminster install
NullPointerException while buckminster install [message #632224] Tue, 12 October 2010 07:58 Go to next message
nick tan is currently offline nick tanFriend
Messages: 56
Registered: July 2009
Member
hi, all

i'm working on an env for eclipse plugin headless build with buckminster.

the installation process is not that happy, encounter several problems.

1, NullPointerException while install buckminster with p2 director, according to the wiki page:
http://wiki.eclipse.org/Installing_Headless_Buckminster:

director -consolelog -r http://download.eclipse.org/tools/buckminster/headless-3.6/ -d /opt/buckminster -p Buckminster -i org.eclipse.buckminster.cmdline.product


the workaround is install from local archive:

director -consolelog -r jar:file:/opt/org.eclipse.buckminster.site.eclipse.headless_1.2.0.r11579.zip\!/ -d /opt/buckminster -p Buckminster -i org.eclipse.buckminster.cmdline.product


2. NullPointerException while install buckminster required features, according to the wiki page http://wiki.eclipse.org/Sample_headless_configuration_%28Buc kminster%29] http://wiki.eclipse.org/Sample_headless_configuration_%28Buc kminster%29[/url]:

buckminster install http://download.eclipse.org/tools/buckminster/updates/headless-site.xml org.eclipse.buckminster.core.headless.feature


so, i tried with local archive again, this time, listsite works fine:

buckminster listsite jar:file:/opt/org.eclipse.buckminster.site.eclipse.headless_1.2.0.r11579.zip\!/


but NPE remained with install:
buckminster install jar:file:/opt/org.eclipse.buckminster.site.eclipse.headless_1.2.0.r11579.zip\!/ org.eclipse.buckminster.core.headless.feature


can anybody help me out?
thanks

[Updated on: Tue, 12 October 2010 08:13]

Report message to a moderator

Re: NullPointerException while buckminster install [message #632236 is a reply to message #632224] Tue, 12 October 2010 08:45 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Hi,

On 10/12/10 9:58 AM, nick tan wrote:
> the installation process is not that happy, encounter several problems.
>
> 1, NullPointerException while install buckminster with p2 director,
> according to the wiki page:
> http://wiki.eclipse.org/Installing_Headless_Buckminster:
>
> director -consolelog -r
> http://download.eclipse.org/tools/buckminster/headless-3.6/ -d
> /opt/buckminster -p Buckminster -i org.eclipse.buckminster.cmdline.product
>
If you can't get even this far without an NPE there is probably
something wrong with the director application or that it can not connect
as it should to the repository.

Are you behind a proxy?
Which platform are you on? Java version?
Are you using a released director? Which one?
Can you update software in your IDE (using p2)? If so, does it work to
install the headless buckminster using the director embedded in the IDE?

If still getting NPE from director, please log an issue against the p2
director.

Regards
- henrik
Re: NullPointerException while buckminster install [message #632307 is a reply to message #632236] Tue, 12 October 2010 14:17 Go to previous messageGo to next message
nick tan is currently offline nick tanFriend
Messages: 56
Registered: July 2009
Member
hi, henrik

thanks for your reply
sorry for incomplete information

> Are you behind a proxy?
yes, i'm behind the proxy

> Which platform are you on? Java version?
RHEL5
JDK1.6.19

> Are you using a released director? Which one?
director_latest.zip

and finally it turn out that it's the problem with proxy
i worked behind the proxy (in the company), but i have set the http proxy in my session:
export http_proxy=my.proxy.server:proxy_port


now i'm working in my home env (no proxy), and can install the buckminster features from command line:
buckminster install http://download.eclipse.org/tools/buckminster/headless-3.6/ org.eclipse.buckminster.core.headless.feature


thanks again:)

[Updated on: Tue, 12 October 2010 15:29]

Report message to a moderator

Re: NullPointerException while buckminster install [message #632365 is a reply to message #632307] Tue, 12 October 2010 16:03 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
There are some issues with headless director and proxies (don't have the
bug # handy at the moment - sorry).

Buckminster has logging that can be turned on, and it is possible to
turn off multi-threading. This is described in the documentation.

Typically, when buckminster headless is used, it is a CI server that is
executing the process, and user feedback is not really helpful. You can
run buckminster inside the IDE as well and there you also have
preferences etc that can be set (log levels, etc.) in a convenient way.
When running there are progress monitors that when viewed reveals
details about what is going on.

When the director is running it is p2 doing all the work.
Likewise when buckminster is requesting resolution from a p2 repository.

There are tracing and debugging information available for the various
layers - p2, and then ECF (for ever lower level communication feedback).

I also wish I could define the logic that prints a meaningful error
message when an unexpected NPE occurs :) If you have concrete
suggestions, I suggest you open enhancement requests against the
relevant component.

- henrik

On 10/12/10 4:17 PM, nick tan wrote:
> hi, henrik
>
> thanks for your reply
> sorry for incomplete information
>
>> Are you behind a proxy?
> yes, i'm behind the proxy
>
>> Which platform are you on? Java version?
> RHEL5
> JDK1.6.19
>
>> Are you using a released director? Which one?
> http://www.eclipse.org/downloads/download.php?file=/tools/bu ckminster/products/director_latest.zip
>
>
> and finally it turn out that it's the problem with proxy
> i worked behind the proxy (in the company), but i have set the http
> proxy in my session:
> export http_proxy=my.proxy.server:proxy_port
>
> now i'm working in my home env (no proxy), and can install the
> buckminster features from command line.
>
>
> here are two more little suggestion:
> 1. print human readable error info instead of exception name, e.g.
> NullPointerException
> 2. could you print the installation progress to stdout (just like
> "apt-get install" in ubuntu) for headless buckminster, that user can
> know buckminster is working, rather than annoying waiting...
>
> thanks again:)
Re: NullPointerException while buckminster install [message #632455 is a reply to message #632365] Wed, 13 October 2010 02:54 Go to previous messageGo to next message
nick tan is currently offline nick tanFriend
Messages: 56
Registered: July 2009
Member
Henrik Lindberg wrote on Tue, 12 October 2010 12:03
There are some issues with headless director and proxies (don't have the
bug # handy at the moment - sorry).

Buckminster has logging that can be turned on, and it is possible to
turn off multi-threading. This is described in the documentation.

Typically, when buckminster headless is used, it is a CI server that is
executing the process, and user feedback is not really helpful.

You can
run buckminster inside the IDE as well and there you also have
preferences etc that can be set (log levels, etc.) in a convenient way.
When running there are progress monitors that when viewed reveals
details about what is going on.




IMO, the IDE env general not the same as the build server env, things work in IDE may not work in build server.
my initial thought for buckminster is it's something like maven, what we need to do to build an app, is to provide some configuration file, and execute it in command line. with buckminster, we generally:
1. providing configuration file
1. edit .cquery file
2. edit .rmap file
2. build env preparation
1. install buckminster
2. import target definition
3. execution
build

after all the steps success, i will then integrate them into hudson.

Quote:

When the director is running it is p2 doing all the work.
Likewise when buckminster is requesting resolution from a p2 repository.

There are tracing and debugging information available for the various
layers - p2, and then ECF (for ever lower level communication feedback).

I also wish I could define the logic that prints a meaningful error
message when an unexpected NPE occurs Smile If you have concrete
suggestions, I suggest you open enhancement requests against the
relevant component.

- henrik



yeah, i read the script, and guess it delegates the installation instruction to p2 director.
so it's problem with P2, right? i will raise an enhancement requests to p2 later.

Thanks


BTW, what if the build server can't access public network, how to make the build process?
i mean since we need to import target definition before build, that target definition sample from ralf:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.5"?>

<target name="Eclipse RCP">
<locations>
<location includeAllPlatforms="true" includeMode="slicer" type="InstallableUnit">
<unit id="org.eclipse.rcp.sdk.id" version="3.5.1.M20090917-0800"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="3.3.200.R35x_v20090724-7M-FneFF9aMTyz0pw04ONXn"/>
<repository location="http://download.eclipse.org/releases/galileo"/>
</location>
</locations>
</target>

which means it will access from public network.
so the build will be suck if it is not allowed to access the public network, only can access the intranet...
Any suggestion?

Thanks henrik
Re: NullPointerException while buckminster install [message #632607 is a reply to message #632455] Wed, 13 October 2010 14:55 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 10/13/10 4:54 AM, nick tan wrote:
> BTW, what if the build server can't access public network, how to make
> the build process?
> i mean since we need to import target definition before build, that
> target definition [...] will access from public network.
> so the build will be suck if it is not allowed to access the public
> network, only can access the intranet...
> Any suggestion?
Yes,
use the Eclipse b3 aggregator to define and aggregate/mirror all the
needed content from external sites into a location behind your firewall.

Regards
- henrik
Re: NullPointerException while buckminster install [message #632608 is a reply to message #632455] Wed, 13 October 2010 14:56 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 10/13/10 4:54 AM, nick tan wrote:
> yeah, i read the script, and guess it delegates the installation
> instruction to p2 director.
> so it's problem with P2, right?

Either p2, a repository, or an environment issue...

- henrik
Previous Topic:Old plugins removal
Next Topic:Difficulties when set dependencies
Goto Forum:
  


Current Time: Tue Apr 16 18:33:59 GMT 2024

Powered by FUDForum. Page generated in 3.51119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top