Error starting up UAA

313 views
Skip to first unread message

anuj

unread,
Apr 24, 2012, 8:32:11 AM4/24/12
to vcap-dev
Hi ,
I am getting the following errors while starting up uaa :

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[24,57] cannot
find symbol
symbol : class RandomValueTokenServices
location: package org.springframework.security.oauth2.provider.token
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[35,38] cannot
find symbol
symbol: class RandomValueTokenServices
public class JwtTokenServices extends RandomValueTokenServices {
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[63,2] cannot
find symbol
symbol : variable super
location: class org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[61,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[69,34] cannot
find symbol
symbol : variable super
location: class org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[71,13] cannot
find symbol
symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[81,29]
org.springframework.security.oauth2.common.OAuth2AccessToken is
abstract; cannot be instantiated
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[82,8] cannot
find symbol
symbol : method setScope(java.util.Set<java.lang.String>)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[83,8] cannot
find symbol
symbol : method setExpiration(java.util.Date)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[84,8] cannot
find symbol
symbol : method
setRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[66,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/TokenAdminEndpoints.java:[117,8]
cannot find symbol
symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[INFO] 12 errors
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CloudFoundry Identity - Parent .................... SUCCESS
[1.807s]
[INFO] CloudFoundry Identity Common Jar .................. FAILURE
[12.132s]
[INFO] User Account and Authentication Service ........... SKIPPED
[INFO] CloudFoundry Identity - Samples ................... SKIPPED
[INFO] Sample resource server for Cloudfoundry Identity Services
SKIPPED
[INFO] Sample user webapp for Cloudfoundry Identity Services SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 18.334s
[INFO] Finished at: Tue Apr 24 13:57:04 CEST 2012
[INFO] Final Memory: 18M/121M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:2.3.2:compile (default-compile) on project cloudfoundry-
identity-common: Compilation failure: Compilation failure:
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[24,57] cannot
find symbol
[ERROR] symbol : class RandomValueTokenServices
[ERROR] location: package
org.springframework.security.oauth2.provider.token
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[35,38] cannot
find symbol
[ERROR] symbol: class RandomValueTokenServices
[ERROR] public class JwtTokenServices extends RandomValueTokenServices
{
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[63,2] cannot
find symbol
[ERROR] symbol : variable super
[ERROR] location: class
org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[61,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[69,34] cannot
find symbol
[ERROR] symbol : variable super
[ERROR] location: class
org.cloudfoundry.identity.uaa.oauth.JwtTokenServices
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[71,13] cannot
find symbol
[ERROR] symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[81,29]
org.springframework.security.oauth2.common.OAuth2AccessToken is
abstract; cannot be instantiated
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[82,8] cannot
find symbol
[ERROR] symbol : method setScope(java.util.Set<java.lang.String>)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[83,8] cannot
find symbol
[ERROR] symbol : method setExpiration(java.util.Date)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[84,8] cannot
find symbol
[ERROR] symbol : method
setRefreshToken(org.springframework.security.oauth2.common.OAuth2RefreshToken)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[66,1] method
does not override or implement a method from a supertype
[ERROR] /home/kumara/cloudfoundry/vcap/uaa/common/src/main/java/org/
cloudfoundry/identity/uaa/oauth/TokenAdminEndpoints.java:[117,8]
cannot find symbol
[ERROR] symbol : method
setAdditionalInformation(java.util.Map<java.lang.String,java.lang.Object>)
[ERROR] location: interface
org.springframework.security.oauth2.common.OAuth2AccessToken
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR] mvn <goals> -rf :cloudfoundry-identity-common


By looking at the error it seems that the oauth jar is not the correct
one. I saw in the .m2 repository and the version is 1.0.0.BUILD-
SNAPSHOT.

Does anyone know how i can get rid of this error?

Anuj

anuj

unread,
Apr 24, 2012, 12:06:24 PM4/24/12
to vcap-dev
So I have found the reason for the error.
uaa depends upon the SNAPSHOT version of spring-security-oauth2. The
latest SNAPSHOT version has changed considerably whereas the UAA cade
is still the same. After a lot of trial and errors one version in the
SNAPSHOT that is compatible is : 1.0.0.BUILD-20120418.070023-97

Thus in order to run the build, we need to change the value of the
property <spring.security.oauth.version> in pom.xml file of uaa to
following :

<spring.security.oauth.version>1.0.0.BUILD-20120418.070023-97</
spring.security.oauth.version>

And uaa should build and work.

Cheers!
Anuj

Jesse Zhang

unread,
Apr 24, 2012, 12:31:33 PM4/24/12
to vcap...@cloudfoundry.org
Hi Anuj,
  Thanks for reporting! We have also discovered this bug over the weekend and we are working on a fix possibly similar to your solution now. Stay tuned.

(BCC'd the Dale, Dave and the UAA team)
Cheers,
Jesse

anuj

unread,
Apr 25, 2012, 3:58:26 AM4/25/12
to vcap-dev
Thanks Jeff,
So VCAP along with UAA is now up and running but my attempt to login
to the VCAP system is now failing. I am getting the following error:

C:\Users\kumara>vmc login
Attempting login to [http://api.vcap.me:22222]
Email: anuj.g...@gmail.com
Password: ********************
Problem with login to 'http://api.vcap.me:22222', HTTP exception:
Errno::ECONNRE
FUSED:No connection could be made because the target machine actively
refused it
. - connect(2), try again or register for an account.

Even vmc register is not working. Its failing with the same error.:(

Do you know what I could do to solve this error?

Do you know where I can see the logs. UAA logs does not have
anything.


Anuj
> ...
>
> read more »

anuj

unread,
Apr 25, 2012, 4:04:59 AM4/25/12
to vcap-dev
Sorry. My bad. The SSH tunnel connection was not properly setup. Its
working now :)

On Apr 25, 9:58 am, anuj <anuj.gandh...@gmail.com> wrote:
> Thanks Jeff,
>  So VCAP along with UAA is now up and running but my attempt to login
> to the VCAP system is now failing. I am getting the following error:
>
> C:\Users\kumara>vmc login
> Attempting login to [http://api.vcap.me:22222]
> Email: anuj.gandh...@gmail.com
> > > > cloudfoundry/identity/uaa/oauth/JwtTokenServices.java:[84,8] cannot...
>
> read more »

Richard North

unread,
Apr 25, 2012, 8:09:07 AM4/25/12
to vcap-dev
Hi,

I just raised a ticket in github (#208) for what sounds like a pretty
similar issue happening today - sorry for not checking here first. I
encountered a similar issue at the beginning of the month (#205).

Could I just ask, what is the plan for preventing issues like this in
the future, as this is the second time a UAA snapshot dependency has
caused me problems building vcap.

The most obvious solution seems to me to not use SNAPSHOT
dependencies; it seems that both UAA and some of its spring-oauth deps
are under active development simultaneously, giving rise to this
problem. However, I recognise that because of this active development
it is inconvenient for every commit against UAA to be tied to a
specific oauth library version.

How about a policy that, for vcap to reference a submodule at a
specific commit, that commit must not be linked to any SNAPSHOT
dependencies? Otherwise I can't see how repeatable consistent builds
can be achieved.

Also, perhaps Jenkins could have a job which runs vcap_dev_setup
inside a clean VM, so that issues like this can be detected early. I
already have a Vagrantfile that could be used for this purpose, so
would be happy to provide.

Many thanks

Richard
> ...
>
> read more »

Anuj

unread,
Apr 25, 2012, 8:35:32 AM4/25/12
to vcap-dev
Hi Richard,

I do not know what the plans are from VCAP guys, but the quickest
solution is to not depend on the latest SNAPSHOT but on the SNAPSHOT
that is compatible with the release of UAA. So in the above case it is
1.0.0.BUILD-20120418.070023-97. By looking at the code, it seems that
the UAA team has already done development against specific SNAPSHOT
versions of oauth2. I say this because I tried the Milestone version
of oauth2 which is considerably more stable, but it didnt work as the
milestone version did not have the classes in oauth2 that UAA depends
upon. I also tried other SNAPSHOT versions that were closer to the
latest one but that also failed.

UAA for me is now working ever since I changed the pom file to point
to the specific SNAPSHOT version. May be you could do the same in the
short term till the time UAA becomes more stable.

Cheers!
> > > > [ERROR] location: interface...
>
> read more »

ashishs...@gmail.com

unread,
Jul 30, 2012, 7:48:42 AM7/30/12
to vcap...@cloudfoundry.org
Hi,
 
I am getting the below uaa error, when I am trying to run vcap_dev_setup script. Any help will be greatly appreciated, and one more thing I am following this link https://github.com/cloudfoundry/vcap/  to deploy latest cloudfoundry, But unable to deploy it in a single shot. There are many components(rubygems, maven, pip, erlang etc..) that i have to install manually.
 
Is there anyone that has used this link and deployed the latest CF successfully???
Please provide me the instructions on how to user this.
 
Thanks in advance,
Ashish.
 
Mixlib::ShellOut::ShellCommandFailed: bash[Build and Deploy UAA] (uaa::default line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20120730-8427-1irfbtr-0" ----
STDOUT: [INFO] Scanning for projects...
Downloading: http://objectstyle.org/maven2/org/springframework/build/aws/org.springframework.build.aws.maven/3.0.0.RELEASE/org.springframework.build.aws.maven-3.0.0.RELEASE.pom
^MDownloading: http://repo.maven.apache.org/maven2/org/springframework/build/aws/org.springframework.build.aws.maven/3.0.0.RELEASE/org.springframework.build.aws.maven-3.0.0.RELEASE.pom
^M[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project org.cloudfoundry.identity:cloudfoundry-identity-parent:1.0.0.p6 (/root/cloudfoundry/vcap/uaa/pom.xml) has 1 error
[ERROR]     Unresolveable build extension: Plugin org.springframework.build.aws:org.springframework.build.aws.maven:3.0.0.RELEASE or one of its dependencies could not be resolved: Failed to collect dependencies for org.springframework.build.aws:org.springframework.build.aws.maven:jar:3.0.0.RELEASE (): Failed to read artifact descriptor for org.springframework.build.aws:org.springframework.build.aws.maven:jar:3.0.0.RELEASE: Could not transfer artifact org.springframework.build.aws:org.springframework.build.aws.maven:pom:3.0.0.RELEASE from/to objectstyle (http://objectstyle.org/maven2/): Connection to http://objectstyle.org refused: Connection timed out -> [Help 2]

磊张

unread,
Jul 30, 2012, 8:34:37 AM7/30/12
to vcap...@cloudfoundry.org, ashishs...@gmail.com
I'm sure the latest CloudFoundry works well by dev_setup. And your uaa repo is not the latest commit I believe.

cd into the uaa repo and do git log -p to see its commit.

If not the latest, use git reset --hard commit_random_string_of_uaa

and run dev_setup again. You can see the commit_random_string_of_uaa in commit history of  uaa in github.com

在 2012年7月30日星期一UTC+8下午7时48分42秒,ashishs...@gmail.com写道:

ashishs...@gmail.com

unread,
Jul 31, 2012, 4:48:49 AM7/31/12
to vcap...@cloudfoundry.org, ashishs...@gmail.com
Hi,
 Thanks for your reply. I have seen the commits and the UAA is latest. Now am trying to install UAA manually through github,
But unable to run $mvn install its showing same error (connection timed out). Is it a proxy issue? Even I have tried to unset the proxy and run it but of no use.
any help......
 
 
[WARNING] Unable to get resource 'org.springframework.build.aws:org.springframework.build.aws.maven:pom:3.0.0.RELEASE' from repository spring-milestone (http://maven.springframework.org.s3.amazonaws.com/milestone): Error transferring file: Connection timed out
Downloading: http://maven.springframework.org/snapshot/org/springframework/build/aws/org.springframework.build.aws.maven/3.0.0.RELEASE/org.springframework.build.aws.maven-3.0.0.RELEASE.pom
[WARNING] Unable to get resource 'org.springframework.build.aws:org.springframework.build.aws.maven:pom:3.0.0.RELEASE' from repository spring-snapshost (http://maven.springframework.org/snapshot): Error transferring file: Connection timed out
Downloading: http://objectstyle.org/maven2//org/springframework/build/aws/org.springframework.build.aws.maven/3.0.0.RELEASE/org.springframework.build.aws.maven-3.0.0.RELEASE.pom
Thanks in advance,
Ashish.
 
 
 

磊张

unread,
Jul 31, 2012, 7:09:53 AM7/31/12
to vcap...@cloudfoundry.org, ashishs...@gmail.com
If you are sure the commit of your uaa repo is

Jul 30, 2012 CFID-337 Add null check to avoid NPE in unit tests

Then run vcap_dev_setup agian. mvn install will not solve your problem.

在 2012年7月31日星期二UTC+8下午4时48分49秒,ashishs...@gmail.com写道:

Luke Taylor

unread,
Jul 31, 2012, 8:39:35 PM7/31/12
to vcap...@cloudfoundry.org
Are you behind a proxy? If so, you'll need to configure maven to use one:

http://maven.apache.org/guides/mini/guide-proxies.html

If not, check whether you can grab those URLs from the command line
(e.g. using curl).

may

unread,
Oct 16, 2012, 12:01:22 AM10/16/12
to vcap...@cloudfoundry.org, ashishs...@gmail.com
 
Have you solve the problem? I encounterd the same problem.

在 2012年7月31日星期二UTC+8下午4时48分49秒,ashishs...@gmail.com写道:
Reply all
Reply to author
Forward
0 new messages