Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E72BE953D for ; Thu, 11 Dec 2014 06:44:32 +0000 (UTC) Received: (qmail 11977 invoked by uid 500); 11 Dec 2014 06:44:32 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 11923 invoked by uid 500); 11 Dec 2014 06:44:32 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 11913 invoked by uid 99); 11 Dec 2014 06:44:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2014 06:44:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dakshika@wso2.com designates 209.85.217.174 as permitted sender) Received: from [209.85.217.174] (HELO mail-lb0-f174.google.com) (209.85.217.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2014 06:44:05 +0000 Received: by mail-lb0-f174.google.com with SMTP id 10so3591255lbg.19 for ; Wed, 10 Dec 2014 22:43:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=g1Tz5LoRR5utj04teNB3c8MOcKE72x7JZhySWSLRjdI=; b=EmHo6lt6NLiVyftpAufLg9N6AIuLRLJvFwGyRoYUCaOeyhPOzu45eK82bvIbf4S9l0 1gcGcUDTTfA2saqUgMGagJPQlU/uxh9m4b7Jq2kCQbNoEYkCDP8KYeh8fpWkIbf3Q0nw bYE1+fsodgI/DAAOLA6LjFEHSzdHCsyDEhkMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=g1Tz5LoRR5utj04teNB3c8MOcKE72x7JZhySWSLRjdI=; b=lZFXjjQRMKNgKCmK/O4Aav4KlU7ukWCkiRhiQBavnSsjx0IOfwgeLjpubNx01wbCUB 05f9P7fqFIpS9y160sCiWiGf1PlZwQVDpmP+cuMbLFqh2c/txWVxjTKIJYcwlEdU8pd+ HWynJhekEh2vNEW82LEe2Si2K1lVf4ERyZuaxq3oO55QmX32gCsfuLkvQmpvUzYN90mb W6nI4wgy/0TpPDGB53PddOoKdLcIqcFaAYn0zvJsYq05J2MiomGDWhEp8zaCmgAT/KQl 8YHlbVq/0gFXFHgW7+jfi3zBMRSyMk9inPhm/nc51QsmI0iIiPW9n2gtTf3NUwYYyCbF b/JQ== X-Gm-Message-State: ALoCoQlN/nGper3mbjK9VwJFrWt9N2LopnHnyj8ZO2u0vcoiD4mo96RiFI9ik5pH0WupW5HGlUD+ X-Received: by 10.112.63.133 with SMTP id g5mr7965392lbs.33.1418280199509; Wed, 10 Dec 2014 22:43:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.213.80 with HTTP; Wed, 10 Dec 2014 22:42:59 -0800 (PST) In-Reply-To: References: From: Dakshika Jayathilaka Date: Thu, 11 Dec 2014 12:12:59 +0530 Message-ID: Subject: Re: Can not create tenants from REST API To: dev Cc: Udara Liyanage Content-Type: multipart/alternative; boundary=001a11c3d8307be3570509eb1770 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3d8307be3570509eb1770 Content-Type: text/plain; charset=UTF-8 Hi Udara, are you using 4.1.0- test branch ? *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Thu, Dec 11, 2014 at 12:06 PM, Udara Liyanage wrote: > Hi Dakshika, > > Still the same fate. > > On Thu, Dec 11, 2014 at 12:00 PM, Dakshika Jayathilaka > wrote: > >> Try with this >> >> curl -X POST -H "Content-Type: application/json" -d @request -k -v -u >> admin:admin https://localhost:9443/api/v4.1/tenants >> >> *Dakshika Jayathilaka* >> Software Engineer >> WSO2, Inc. >> lean.enterprise.middleware >> 0771100911 >> >> On Thu, Dec 11, 2014 at 11:46 AM, Udara Liyanage wrote: >> >>> Hi, >>> >>> I got errors when creating a tenant using REST API. I remember this kind >>> of error is fixed sometime back. >>> >>> curl -X POST -H "Content-Type: application/json" -d @request -k -v -u >>> admin:admin https://localhost:9443/api/tenants >>> >>> {"Error":{ "errorCode": " 500", "errorMessage": " Internal server >>> error"}} >>> >>> Backend Error log : >>> >>> [2014-12-11 11:43:39,865] WARN {org.apache.cxf.jaxrs.utils.JAXRSUtils} >>> - * No message body reader has been found for request class >>> TenantInfoBean, ContentType : application/json.* >>> >>> >>> -- >>> >>> Udara Liyanage >>> Software Engineer >>> WSO2, Inc.: http://wso2.com >>> lean. enterprise. middleware >>> >>> web: http://udaraliyanage.wordpress.com >>> phone: +94 71 443 6897 >>> >> >> > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > --001a11c3d8307be3570509eb1770 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Udara,

are you using 4.1.0- test bra= nch ?

Dakshika Jayathilaka
Software Engineer
WSO2, Inc= .
lean.enterprise.middleware
0771100911

On Thu, Dec 11, 2014 at 12:06 PM, Udara Liya= nage <udara@wso2.com> wrote:
=
Hi Dakshika,

Still the same fate.
=
On Thu, Dec 11, 2014 at 12:00 PM, Dakshika Jay= athilaka <dakshika@wso2.com> wrote:
Try with th= is=C2=A0

curl -X POST -H "Content-Type: applicati= on/json" -d @request -k -v -u admin:admin=C2=A0
https://localhost:9443/api/v4.1/tenants

Dakshika Jayathilaka
=
Software Engi= neer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Thu, Dec 11, 2014 at = 11:46 AM, Udara Liyanage <udara@wso2.com> wrote:
Hi,

I got errors when creating a tenant using REST API. I remember this kind = of error is fixed sometime back.

=C2=A0curl -= X POST -H "Content-Type: application/json" -d @request -k -v -u a= dmin:admin https://localhost:9443/api/tenants

{"Err= or":{ "errorCode": " 500", "errorMessage"= ;: " Internal server error"}}

Backen= d Error log :

[2014-12-11 11:43:39,865] =C2= =A0WARN {org.apache.cxf.jaxrs.utils.JAXRSUtils} - =C2=A0No message body = reader has been found for request class TenantInfoBean, ContentType : appli= cation/json.


--




--

--001a11c3d8307be3570509eb1770--