Community
 
 
 

CloudPortal Business Manager 2.x

324フォロワー
 
Avatar
Pankaj Paliwal

BeanCreationException: Error creating bean with name 'cloudService'

Avatar

BeanCreationException: Error creating bean with name 'cloudService'

Hi,
Having added the Citrix CloudPlatform service in CPBM 2.0, I am getting the following error in the cpbm_server.log.

[2013-04-04 10:18:14.562] ERROR workerBootStrapThread c.c.c.platform.admin.service.impl.ConnectorManagementServiceImpl org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.oxm.Unmarshaller com.citrix.cloudplatform.client.impl.DefaultCloudServiceImpl.unmarshaller; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cloudMarshaller' defined in URL [bundleentry://138.fwk862463384/META-INF/spring/applicationContext-cloudxml.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (2) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'aliases' threw exception; nested exception is java.lang.ClassNotFoundException: com.citrix.cloudplatform.model.Domain not found from bundle [vmops.core]
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'fieldAliases' threw exception; nested exception is java.lang.ClassNotFoundException: com.citrix.cloudplatform.model.Account not found from bundle [vmops.core]

Any help resolving this error, is much appreciated.

Thanks.

Attached Files


TARIQ IQBAL MEMBERS
4件のコメント
0

サインインしてコメントを残してください。

 
 

Previous 4件のコメント

Avatar
Pankaj Paliwal
Avatar

BeanCreationException: Error creating bean with name 'cloudService'

Can you please confirm the exact steps that lead to this errors? Does this issue appaedrs while intergrating Colud Platform with CPBM?


Abhisek Basu CITRIX EMPLOYEES
コメントアクション パーマリンク
Avatar
Pankaj Paliwal
Avatar

The steps that lead to this error were:

-Installed CloudPlatform 3.0.6
-Installed CPBM 2.0
-Added the CloudPlatform service

The error appears in the management-server.log


TARIQ IQBAL MEMBERS
コメントアクション パーマリンク
Avatar
Pankaj Paliwal
Avatar

Hi,
I've the same problem, installed CloudPlatform 3.6 and installed CPBM 2.0, after trying to add CloudPlatform in CPBM the service creation fails with the following error in:

/var/log/cloud/portal/cpbm-server.log

[2013-05-09 11:37:30.814] INFO http-bio-8080-exec-11 System.out [Thu May 09 11:37:30 CEST 2013] [Info] CsrfGuard analyzing request /po
rtal/portal/connector/createInstance
[2013-05-09 11:37:30.826] INFO http-bio-8080-exec-11 com.vmops.web.interceptors.UserContextInterceptor Before handling the request
[2013-05-09 11:37:30.986] INFO http-bio-8080-exec-11 System.out GRANTED due to ACE: AccessControlEntryImpl[id: 1; granting: true; sid:
PrincipalSid[root]; permission: BasePermission[...............................R=1]; auditSuccess: true; auditFailure: true]
[2013-05-09 11:37:30.987] DEBUG http-bio-8080-exec-11 com.vmops.security.CustomAclPermissionEvaluator Access is granted
[2013-05-09 11:37:31.032] DEBUG http-bio-8080-exec-11 com.citrix.cloudplatform.client.impl.DefaultCloudServiceImpl ###Entering in initializeServers method
[2013-05-09 11:37:31.040] ERROR http-bio-8080-exec-11 c.c.c.platform.admin.service.impl.ConnectorManagementServiceImpl Exception in fetching the service Ref.. org.springframework.beans.fact
ory.BeanCreationException: Error creating bean with name 'cloudService' defined in URL [bundleentry://138.fwk993921722/META-INF/spring/applicationContext-cloud.xml]: Instantiation of bean failed; n
ested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.citrix.cloudplatform.client.impl.DefaultCloudServiceImpl]: Constructor threw exception
; nested exception is java.lang.ArrayIndexOutOfBoundsException: 1
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1002)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:906)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1087)
at com.citrix.cloudplatform.service.impl.CloudPlatformCloudService.setServiceInstanceConfiguration(CloudPlatformCloudService.java:107)
at com.citrix.cloudplatform.service.impl.CloudPlatformCloudServiceAdapter.initialize(CloudPlatformCloudServiceAdapter.java:19)
at com.citrix.cloudplatform.service.impl.CloudPlatformCloudServiceAdapter.initialize(CloudPlatformCloudServiceAdapter.java:11)
at com.citrix.cpbm.platform.admin.service.impl.ConnectorManagementServiceImpl.getConnectorImplementation(ConnectorManagementServiceImpl.java:1212)
at com.citrix.cpbm.platform.admin.service.impl.ConnectorManagementServiceImpl.addUpdateInstance(ConnectorManagementServiceImpl.java:230)
at com.citrix.cpbm.platform.admin.service.impl.ConnectorManagementServiceImpl.addInstance(ConnectorManagementServiceImpl.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)


Arash Kaffamanesh MEMBERS
コメントアクション パーマリンク
Avatar
Pankaj Paliwal
Avatar

Hi,
the problem was due to wrong values for CloudPlatform IP List (none admin port) and CloudPlatform IP List (admin port) during adding the CloudPlatform service, the values might be:

CloudPlatform IP List (admin port)
IP:8096

CloudPlatform IP List
IP:8080

after that the cloudplatform was added as a service properly, but I couldn't log into the CloudPortal anymore and got:

Oops, something is going wrong!

and that was due to providing the configuration setting for protocol and public port, which doesn't work with httpS and port 10285, I'd use http and 8080.

And I'd to stop iptables on my XenServer hosts, since the CPBM runs as a VM in CloudPlatform in HA mode.

I did a clean installation on the same VM by removing cloud-portal and droping the cloud_* DB schemas:

rpm -aq | grep cloud-portal | xargs rpm -e --nodeps --allmatches

drop database cloud_portal;
drop database cloud_portalmq;
drop database cloud_reports;

and run ./install
choose "D" option to install the DB Schema again
choose "I" to install CPBM again

and add the cloud service with the right SSO key (get the SSO key from CCP through searching in the global setting of CCP for security.singlesignon.key

After adding the service you might create a new product and product bundle and set the effective date through "schedule activation" function and then add the first channel and a new user.


Arash Kaffamanesh MEMBERS
コメントアクション パーマリンク

Top Contributors