stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From david hbase <davidhb...@gmail.com>
Subject Re: Add New Application Definition Error with Opensatck
Date Wed, 13 May 2015 04:51:30 GMT
Hi, Imesh

Spent about hours, finally found it cause by the /etc/puppet/puppet.conf
has been overwrite during boot. Also with cartridge images.

Before:
[main]
*server=stratos41beta2a*
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

After reboot:
[main]
*server=*
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY


Could you help, Thanks
-D


On Mon, May 11, 2015 at 11:27 PM, david hbase <davidhbase@gmail.com> wrote:

> Hi, Imesh,
>
> I am going to turn on more DEBUG now. will upload the logs and if any
> found by tomorrow.
>
> Thanks
> -D
>
> On Mon, May 11, 2015 at 10:18 PM, Imesh Gunaratne <imesh@apache.org>
> wrote:
>
>> Hi David,
>>
>> Will you be able to send the complete log file? I cannot see the error
>> raised from jclouds in the log you have sent.
>>
>> Thanks
>>
>> On Tue, May 12, 2015 at 9:31 AM, david hbase <davidhbase@gmail.com>
>> wrote:
>>
>>> Hi, Udara
>>>
>>> Thanks for your help. In my case, I got the IP assigned by nova, and
>>> verified by following:
>>>
>>> root@415012051548:~# wget
>>> http://169.254.169.254/latest/meta-data/local-ipv4
>>> --2015-05-12 03:54:05--
>>> http://169.254.169.254/latest/meta-data/local-ipv4
>>> Connecting to 169.254.169.254:80... connected.
>>> HTTP request sent, awaiting response... 200 OK
>>> Length: 13 [text/html]
>>> Saving to: `local-ipv4'
>>>
>>> 100%[====================================================================================================================================================>]
>>> 13          --.-K/s   in 0s
>>>
>>> 2015-05-12 03:54:06 (2.41 MB/s) - `local-ipv4' saved [13/13]
>>>
>>> root@415012051548:~# cat local-ipv4
>>> 10.203.28.136root@415012051548:~#
>>> root@415012051548:~# IP=`ifconfig eth0 | grep -e "inet addr" | awk
>>> '{print $2}' | cut -d ':' -f 2`
>>> root@415012051548:~# echo $IP
>>> 10.203.28.136
>>> root@415012051548:~#
>>>
>>> But Stratos do not organize this IP (10.203.28.136). Any idea to confirm
>>> that Stratos can sync with this IP?
>>>
>>> Thanks
>>> -D
>>>
>>>
>>> On Mon, May 11, 2015 at 8:22 PM, Udara Liyanage <udara@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> This seems to be an issue when Jclouds fails to allocate an IP from
>>>> Openstack. I have faced a similar issue when there are no floating ips to
>>>> be assigned. After allocating floating IP to my project, using below
>>>> command, it become successful.  However you might not having the same issue.
>>>> nova floating-ip-create external
>>>> <external> is my pool name
>>>>
>>>>
>>>> On Tue, May 12, 2015 at 8:14 AM, david hbase <davidhbase@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi, Imesh
>>>>>
>>>>> Successful created the application, But failed to allocate an IP
>>>>> address.
>>>>> Edit the /root/init.sh corrected the public-ipv4 to local-ipv4 and
>>>>> rebuild the cartridge. But still got same error.
>>>>>
>>>>> [2015-05-12 02:34:12,092]  INFO
>>>>> {org.apache.stratos.autoscaler.client.CloudControllerClient} -  Trying to
>>>>> spawn an instance via cloud controller: [cluster]
>>>>> single-cartridge-app01.my-php.php.domain [partition] partition-1
>>>>> [network-partition-id] network-partition-1a
>>>>> [2015-05-12 02:34:12,134]  INFO
>>>>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher}
>>>>> -  Publishing member created event: [service-name] php [cluster-id]
>>>>> single-cartridge-app01.my-php.php.domain [cluster-instance-id]
>>>>> single-cartridge-app01-1 [member-id]
>>>>> single-cartridge-app01.my-php.php.domainc71cbc66-8012-41e9-801a-156289c46591
>>>>> [instance-id] null [network-partition-id] network-partition-1a
>>>>> [partition-id] partition-1 [lb-cluster-id] null
>>>>> [2015-05-12 02:34:12,162]  INFO
>>>>> {org.apache.stratos.messaging.message.processor.topology.MemberCreatedMessageProcessor}
>>>>> -  Member created: [service-name] php [cluster-id]
>>>>> single-cartridge-app01.my-php.php.domain [member-id]
>>>>> single-cartridge-app01.my-php.php.domainc71cbc66-8012-41e9-801a-156289c46591
>>>>> [cluster-instance-id] single-cartridge-app01-1
>>>>> [2015-05-12 02:34:59,751]  INFO
>>>>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
>>>>> Instance started successfully: [cartridge-type] php [cluster-id]
>>>>> single-cartridge-app01.my-php.php.domain [instance-id]
>>>>> us-internal-1/faf60443-9ae3-4316-a636-55dee0a7a3aa [default-private-ip]
>>>>> null [default-public-ip] null
>>>>> [2015-05-12 02:34:59,751]  INFO
>>>>> {org.apache.stratos.cloud.controller.iaases.JcloudsIaas} -  Allocating IP
>>>>> addresses for member: [cartridge-type] php [member-id]
>>>>> single-cartridge-app01.my-php.php.domainc71cbc66-8012-41e9-801a-156289c46591
>>>>> [2015-05-12 02:35:00,170] ERROR
>>>>> {org.apache.stratos.cloud.controller.iaases.openstack.networking.NovaNetworkingApi}
>>>>> -  Failed to allocate an IP address.
>>>>> [2015-05-12 02:35:00,171] ERROR
>>>>> {org.apache.stratos.cloud.controller.iaases.JcloudsIaas} -  Error occurred
>>>>> while allocating ip addresses: [cartridge-type] php [member-id]
>>>>> single-cartridge-app01.my-php.php.domainc71cbc66-8012-41e9-801a-156289c46591
>>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException:
>>>>> Failed to allocate an IP address.
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.openstack.networking.NovaNetworkingApi.associateAddresses(NovaNetworkingApi.java:101)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas.associateAddresses(OpenstackIaas.java:220)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.allocateIpAddresses(JcloudsIaas.java:229)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:83)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>> [2015-05-12 02:35:00,172] ERROR
>>>>> {org.apache.stratos.cloud.controller.services.impl.InstanceCreator} -
>>>>> Could not start instance: [cartridge-type] php [cluster-id]
>>>>> single-cartridge-app01.my-php.php.domain
>>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException:
>>>>> Error occurred while allocating ip addresses: [cartridge-type] php
>>>>> [member-id]
>>>>> single-cartridge-app01.my-php.php.domainc71cbc66-8012-41e9-801a-156289c46591
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.allocateIpAddresses(JcloudsIaas.java:282)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.services.impl.InstanceCreator.run(InstanceCreator.java:83)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by:
>>>>> org.apache.stratos.cloud.controller.exception.CloudControllerException:
>>>>> Failed to allocate an IP address.
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.openstack.networking.NovaNetworkingApi.associateAddresses(NovaNetworkingApi.java:101)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas.associateAddresses(OpenstackIaas.java:220)
>>>>>     at
>>>>> org.apache.stratos.cloud.controller.iaases.JcloudsIaas.allocateIpAddresses(JcloudsIaas.java:229)
>>>>>     ... 4 more
>>>>>
>>>>> Need your help, Thanks.
>>>>> -D
>>>>>
>>>>>
>>>>>
>>>>> On Mon, May 11, 2015 at 6:44 PM, david hbase <davidhbase@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi, Imesh
>>>>>>
>>>>>> Thanks, It's working.
>>>>>>
>>>>>> -D
>>>>>>
>>>>>> On Mon, May 11, 2015 at 6:35 PM, Imesh Gunaratne <imesh@apache.org>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi David,
>>>>>>>
>>>>>>> On Mon, May 11, 2015 at 9:00 PM, david hbase <davidhbase@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi, Imesh
>>>>>>>>
>>>>>>>> Thanks for your found, following up, I got additional issues:
>>>>>>>>
>>>>>>>> 1. I have created the network partitions with "openstack", but in
>>>>>>>> hte UI showing up as "mock",
>>>>>>>> After that I recreated the network partition via the web UI as
>>>>>>>> "openstack", but the web UI still show as "mock"
>>>>>>>>
>>>>>>>
>>>>>>> Yes this should be an issue in the UI, we will have a look at it.
>>>>>>>
>>>>>>>>
>>>>>>>> 2. Once the network partition has an issue, the applications will
>>>>>>>> be stuck in the "deployed" status, can not be undeploied or deleted.
>>>>>>>>
>>>>>>>> {
>>>>>>>>   "id": "network-partition-1b",
>>>>>>>>   "provider": "openstack",
>>>>>>>>   "partitions": [
>>>>>>>>     {
>>>>>>>>       "id": "partition-1b",
>>>>>>>>       "property": [
>>>>>>>>         {
>>>>>>>>           "name": "region",
>>>>>>>>           "value": "us-internal-1"
>>>>>>>>         }
>>>>>>>>       ]
>>>>>>>>     }
>>>>>>>>   ]
>>>>>>>> }
>>>>>>>>
>>>>>>>> We can try to forcefully un-deploy the application and then delete
>>>>>>> it:
>>>>>>>
>>>>>>> POST
>>>>>>> /applications/{applicationId}/undeploy/?force=true
>>>>>>>
>>>>>>>
>>>>>>>> Please advice, Thanks
>>>>>>>>
>>>>>>>> -D
>>>>>>>>
>>>>>>>> On Mon, May 11, 2015 at 12:39 AM, Imesh Gunaratne <imesh@apache.org
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>> Hi David,
>>>>>>>>>
>>>>>>>>> The above NPE has been raised because one of the partitions being
>>>>>>>>> null:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Please check whether you have properly deployed network
>>>>>>>>> partitions, deployment policies, etc.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> ‚Äč
>>>>>>>>>
>>>>>>>>> On Mon, May 11, 2015 at 4:29 AM, david hbase <davidhbase@gmail.com
>>>>>>>>> > wrote:
>>>>>>>>>
>>>>>>>>>> Hi, Udara
>>>>>>>>>>
>>>>>>>>>> Following up, when I try to deploy the application got the
>>>>>>>>>> following error:
>>>>>>>>>>
>>>>>>>>>> [2015-05-10 22:43:29,256]  INFO
>>>>>>>>>> {org.apache.stratos.autoscaler.monitor.component.ParentComponentMonitor} -
>>>>>>>>>> Monitor started successfully: [type] cluster [component]
>>>>>>>>>> single-cartridge-app.my-php.php.domain [dependents] none [startup-time] 3
>>>>>>>>>> seconds
>>>>>>>>>> [2015-05-10 22:43:29,258]  INFO
>>>>>>>>>> {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver}
>>>>>>>>>> -   Cluster monitor has scaling dependents  [false]
>>>>>>>>>> *[2015-05-10 22:43:29,270] ERROR
>>>>>>>>>> {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator}
>>>>>>>>>> -  Failed to retrieve topology event message*
>>>>>>>>>> java.lang.NullPointerException
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.autoscaler.context.partition.PartitionContext.<init>(PartitionContext.java:54)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.autoscaler.context.partition.ClusterLevelPartitionContext.<init>(ClusterLevelPartitionContext.java:133)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.autoscaler.context.cluster.ClusterContext.addPartition(ClusterContext.java:316)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.autoscaler.context.cluster.ClusterContext.parseDeploymentPolicy(ClusterContext.java:222)
>>>>>>>>>>     at org.apache.stratos.autoscaler.context.cluste
>>>>>>>>>> r.ClusterContext.addInstanceContext(ClusterContext.java:157)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver$14.onEvent(AutoscalerTopologyEventReceiver.java:472)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>>>>>>>>>>     at java.util.Observable.notifyObservers(Observable.java:159)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ClusterInstanceCreatedMessageProcessor.doProcess(ClusterInstanceCreatedMessageProcessor.java:122)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ClusterInstanceCreatedMessageProcessor.process(ClusterInstanceCreatedMessageProcessor.java:60)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ClusterInstanceTerminatedProcessor.process(ClusterInstanceTerminatedProcessor.java:73)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ClusterRemovedMessageProcessor.process(ClusterRemovedMessageProcessor.java:65)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ClusterInstanceInactivateProcessor.process(ClusterInstanceInactivateProcessor.java:73)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ClusterInstanceActivatedProcessor.process(ClusterInstanceActivatedProcessor.java:73)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ClusterCreatedMessageProcessor.process(ClusterCreatedMessageProcessor.java:67)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ApplicationClustersRemovedMessageProcessor.process(ApplicationClustersRemovedMessageProcessor.java:63)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ApplicationClustersCreatedMessageProcessor.process(ApplicationClustersCreatedMessageProcessor.java:65)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ServiceRemovedMessageProcessor.process(ServiceRemovedMessageProcessor.java:64)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor.process(ServiceCreatedMessageProcessor.java:65)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor.process(CompleteTopologyMessageProcessor.java:74)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:61)
>>>>>>>>>>     at
>>>>>>>>>> org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator.run(TopologyEventMessageDelegator.java:73)
>>>>>>>>>>     at
>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>>>>     at
>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Could you help? Thanks
>>>>>>>>>> -D
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, May 8, 2015 at 9:02 PM, david hbase <davidhbase@gmail.com
>>>>>>>>>> > wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi, Udara
>>>>>>>>>>>
>>>>>>>>>>> Thanks for you help, just found a typo in the definition. Will
>>>>>>>>>>> take some further testing and update with you.
>>>>>>>>>>> -D
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Thu, May 7, 2015 at 8:57 PM, Udara Liyanage <udara@wso2.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> For the second issue you encountered, could you share your
>>>>>>>>>>>> application definition.
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, May 8, 2015 at 6:04 AM, david hbase <
>>>>>>>>>>>> davidhbase@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Should I open an JIRA?
>>>>>>>>>>>>> -D
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Thu, May 7, 2015 at 4:34 PM, david hbase <
>>>>>>>>>>>>> davidhbase@gmail.com> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Additional, If I increase the TOKEN_SCOPE to varchar(255),
>>>>>>>>>>>>>> and then got another error:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> [2015-05-07 23:22:01,581]  INFO
>>>>>>>>>>>>>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>>>>>>>>>>>>> Adding application: [application-id] b3978beb-9262-d89a-5671-462559ae3010
>>>>>>>>>>>>>> [2015-05-07 23:22:01,602]  INFO
>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>> 23:22:01,602+0000]
>>>>>>>>>>>>>> [2015-05-07 23:22:01,631]  INFO
>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>> 23:22:01,631+0000]
>>>>>>>>>>>>>> [2015-05-07 23:22:01,659]  INFO
>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>> 23:22:01,659+0000]
>>>>>>>>>>>>>> [2015-05-07 23:22:01,721]  INFO
>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>> 23:22:01,721+0000]
>>>>>>>>>>>>>> [2015-05-07 23:22:01,760]  INFO
>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>> 23:22:01,760+0000]
>>>>>>>>>>>>>> [2015-05-07 23:22:01,893]  INFO
>>>>>>>>>>>>>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>>>>>>>>>>>>> Application added successfully: [application-id]
>>>>>>>>>>>>>> b3978beb-9262-d89a-5671-462559ae3010
>>>>>>>>>>>>>> [2015-05-07 23:22:38,019]  INFO
>>>>>>>>>>>>>> {org.apache.stratos.rest.endpoint.api.StratosApiV41Utils} -  Starting to
>>>>>>>>>>>>>> deploy application: [application-id] b3978beb-9262-d89a-5671-462559ae3010
>>>>>>>>>>>>>> [2015-05-07 23:22:38,067] ERROR
>>>>>>>>>>>>>> {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl}
>>>>>>>>>>>>>> -  No application cluster information found, unable to create clusters
>>>>>>>>>>>>>> [2015-05-07 23:22:38,068] ERROR
>>>>>>>>>>>>>> {org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver} -  No application
>>>>>>>>>>>>>> cluster information found, unable to create clusters
>>>>>>>>>>>>>> org.apache.stratos.cloud.controller.exception.ApplicationClusterRegistrationException:
>>>>>>>>>>>>>> No application cluster information found, unable to create clusters
>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>> org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.createApplicationClusters(CloudControllerServiceImpl.java:1063)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The token table content:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> mysql> select * from  IDN_OAUTH2_ACCESS_TOKEN  ;
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> +----------------------------------+---------------------------------+------------------------------+------------+-------------+---------------------+-----------------+--------------------------------------+-------------+----------------+
>>>>>>>>>>>>>> | ACCESS_TOKEN                     |
>>>>>>>>>>>>>> REFRESH_TOKEN                   | CONSUMER_KEY                 | AUTHZ_USER
>>>>>>>>>>>>>> | USER_TYPE   | TIME_CREATED        | VALIDITY_PERIOD |
>>>>>>>>>>>>>> TOKEN_SCOPE                          | TOKEN_STATE | TOKEN_STATE_ID |
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> +----------------------------------+---------------------------------+------------------------------+------------+-------------+---------------------+-----------------+--------------------------------------+-------------+----------------+
>>>>>>>>>>>>>> | 9a86ff538aa77fdfde9ea8c9697d3776 |
>>>>>>>>>>>>>> 81cbb6d41246eb5d0d56c48525bf55  | Pxqsmhpj7MPICPvNbwdIfn3Cbywa | admin
>>>>>>>>>>>>>> | APPLICATION | 2015-05-07 23:22:01 |         3600000 |
>>>>>>>>>>>>>> b3978beb-9262-d89a-5671-462559ae3010 | ACTIVE      | NONE           |
>>>>>>>>>>>>>> | b8a626a31ae05770e6842e3071d07610 |
>>>>>>>>>>>>>> 5ac39f8348c1428f48e24f49b7b9c4c | NuV7CytYR0s6Vo_gEceAAKZfu0wa | admin
>>>>>>>>>>>>>> | APPLICATION | 2015-05-06 05:39:05 |         3600000 |
>>>>>>>>>>>>>> single-cartridge-app                 | ACTIVE      | NONE           |
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> +----------------------------------+---------------------------------+------------------------------+------------+-------------+---------------------+-----------------+--------------------------------------+-------------+----------------+
>>>>>>>>>>>>>> 2 rows in set (0.00 sec)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Thu, May 7, 2015 at 3:41 PM, david hbase <
>>>>>>>>>>>>>> davidhbase@gmail.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi, Dev
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The network partition has been setup successfully.
>>>>>>>>>>>>>>> But when Add New Application Definition, got the following
>>>>>>>>>>>>>>> Errors with Opensatck
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Please advice:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>>>> David
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,060]  INFO
>>>>>>>>>>>>>>> {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} -
>>>>>>>>>>>>>>> Adding application: [application-id] 02e22bc8-80bb-7e65-10d0-3c2640f4b164
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,102]  INFO
>>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>>> 22:35:12,102+0000]
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,149]  INFO
>>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>>> 22:35:12,149+0000]
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,172]  INFO
>>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>>> 22:35:12,172+0000]
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,220]  INFO
>>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>>> 22:35:12,220+0000]
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,260]  INFO
>>>>>>>>>>>>>>> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -
>>>>>>>>>>>>>>> 'admin@carbon.super [-1234]' logged in at [2015-05-07
>>>>>>>>>>>>>>> 22:35:12,260+0000]
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,306] ERROR
>>>>>>>>>>>>>>> {org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO} -  Error when executing
>>>>>>>>>>>>>>> the SQL : INSERT INTO IDN_OAUTH2_ACCESS_TOKEN (ACCESS_TOKEN, REFRESH_TOKEN,
>>>>>>>>>>>>>>> CONSUMER_KEY, AUTHZ_USER, TIME_CREATED, VALIDITY_PERIOD, TOKEN_SCOPE,
>>>>>>>>>>>>>>> TOKEN_STATE, USER_TYPE) VALUES (?,?,?,?,?,?,?,?,?)
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,306] ERROR
>>>>>>>>>>>>>>> {org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO} -  Data truncation: Data
>>>>>>>>>>>>>>> too long for column 'TOKEN_SCOPE' at row 1
>>>>>>>>>>>>>>> com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data
>>>>>>>>>>>>>>> too long for column 'TOKEN_SCOPE' at row 1
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3833)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3771)
>>>>>>>>>>>>>>>     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2435)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2582)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2535)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1911)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1203)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:120)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:137)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler.issue(AbstractAuthorizationGrantHandler.java:249)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.stratos.custom.handlers.granttype.ClientCredentialsGrantHandler.getTokenDTO(ClientCredentialsGrantHandler.java:122)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.stratos.custom.handlers.granttype.ClientCredentialsGrantHandler.issue(ClientCredentialsGrantHandler.java:84)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:206)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:177)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:230)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:108)
>>>>>>>>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>>>>>> Method)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>>>>>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>>>>>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,307] ERROR
>>>>>>>>>>>>>>> {org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO} -  Error when getting an
>>>>>>>>>>>>>>> Identity Persistence Store instance.
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception:
>>>>>>>>>>>>>>> Error when storing the access code for consumer key :
>>>>>>>>>>>>>>> _zItWhfUbL_XPZLMx3AMYpu6pEsa
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:124)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:137)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler.issue(AbstractAuthorizationGrantHandler.java:249)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.stratos.custom.handlers.granttype.ClientCredentialsGrantHandler.getTokenDTO(ClientCredentialsGrantHandler.java:122)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.stratos.custom.handlers.granttype.ClientCredentialsGrantHandler.issue(ClientCredentialsGrantHandler.java:84)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:206)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:177)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:230)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:108)
>>>>>>>>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>>>>>> Method)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>>>>>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>>>>>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,309] ERROR
>>>>>>>>>>>>>>> {org.wso2.carbon.identity.oauth2.OAuth2Service} -  Error when issuing the
>>>>>>>>>>>>>>> access token.
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception:
>>>>>>>>>>>>>>> Error when getting an Identity Persistence Store instance.
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:143)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.token.handlers.grant.AbstractAuthorizationGrantHandler.issue(AbstractAuthorizationGrantHandler.java:249)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.stratos.custom.handlers.granttype.ClientCredentialsGrantHandler.getTokenDTO(ClientCredentialsGrantHandler.java:122)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.stratos.custom.handlers.granttype.ClientCredentialsGrantHandler.issue(ClientCredentialsGrantHandler.java:84)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:206)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:177)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.getAccessToken(OAuth2TokenEndpoint.java:230)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:108)
>>>>>>>>>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>>>>>>>>> Method)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>>>>>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>>>>>>>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>>>>>>>>>>>> Caused by:
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception: Error when storing
>>>>>>>>>>>>>>> the access code for consumer key : _zItWhfUbL_XPZLMx3AMYpu6pEsa
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:124)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.wso2.carbon.identity.oauth2.dao.TokenMgtDAO.storeAccessToken(TokenMgtDAO.java:137)
>>>>>>>>>>>>>>>     ... 51 more
>>>>>>>>>>>>>>> [2015-05-07 22:35:12,312] ERROR
>>>>>>>>>>>>>>> {org.apache.stratos.autoscaler.applications.parser.DefaultApplicationParser}
>>>>>>>>>>>>>>> -  Could not create oauth token: [application-id]
>>>>>>>>>>>>>>> 02e22bc8-80bb-7e65-10d0-3c2640f4b164
>>>>>>>>>>>>>>> OAuthProblemException{description='Error when issuing the
>>>>>>>>>>>>>>> access token', error='server_error', uri='null', state='null', scope='null'}
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.common.exception.OAuthProblemException.error(OAuthProblemException.java:57)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.validator.OAuthClientValidator.validateErrorResponse(OAuthClientValidator.java:63)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.validator.OAuthClientValidator.validate(OAuthClientValidator.java:48)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.response.OAuthClientResponse.validate(OAuthClientResponse.java:64)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.response.OAuthClientResponse.init(OAuthClientResponse.java:59)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.response.OAuthAccessTokenResponse.init(OAuthAccessTokenResponse.java:52)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.response.OAuthClientResponseFactory.createCustomResponse(OAuthClientResponseFactory.java:60)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.URLConnectionClient.execute(URLConnectionClient.java:105)
>>>>>>>>>>>>>>>     at
>>>>>>>>>>>>>>> org.apache.amber.oauth2.client.OAuthClient.accessToken(OAuthClient.java:64)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>>
>>>>>>>>>>>> Udara Liyanage
>>>>>>>>>>>> Software Engineer
>>>>>>>>>>>> WSO2, Inc.: http://wso2.com
>>>>>>>>>>>> lean. enterprise. middleware
>>>>>>>>>>>>
>>>>>>>>>>>> web: http://udaraliyanage.wordpress.com
>>>>>>>>>>>> phone: +94 71 443 6897
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Imesh Gunaratne
>>>>>>>>>
>>>>>>>>> Senior Technical Lead, WSO2
>>>>>>>>> Committer & PMC Member, Apache Stratos
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Imesh Gunaratne
>>>>>>>
>>>>>>> Senior Technical Lead, WSO2
>>>>>>> Committer & PMC Member, Apache Stratos
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Udara Liyanage
>>>> Software Engineer
>>>> WSO2, Inc.: http://wso2.com
>>>> lean. enterprise. middleware
>>>>
>>>> web: http://udaraliyanage.wordpress.com
>>>> phone: +94 71 443 6897
>>>>
>>>
>>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Senior Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>

Mime
View raw message