Hello Claudio,

Im using the sample as guide, however for any returns of

  public List<GenericEntry> retrieveAllUserAliases(String userEmail)
      throws AppsForYourDomainException, MalformedURLException, IOException,
ServiceException {

    return retrieveAllPages(new URL("
https://apps-apis.google.com/a/feeds/alias/2.0/"; + domain
        + "/" + userEmail));
  }

         String userEmail= "[email protected]";
         List<GenericEntry> entry = auth.retrieveAllUserAliases(userEmail);

         for(int i=0;i<=entry.size();i++){
         System.out.println(entry.get(i).toString());
         }

Is resulting in 1301, user does not exists. I have tried in 4 differents
domains

EntityDoesNotExist(1301): null
 at
com.google.gdata.data.appsforyourdomain.AppsForYourDomainException.narrow(AppsForYourDomainException.java:133)
at
com.google.gdata.client.appsforyourdomain.AppsForYourDomainService.getFeed(AppsForYourDomainService.java:139)
 at
com.googleextension.source.ProvisioningMDM.retrieveAllPages(ProvisioningMDM.java:59)
at
com.googleextension.source.ProvisioningMDM.retrieveAllUserAliases(ProvisioningMDM.java:92)
 at
com.googleextension.ui.ProvisioningMDMUI.retrieveAllUserAliases(ProvisioningMDMUI.java:80)
at com.googleextension.main.GoogleExtension.main(GoogleExtension.java:26)

However this user exists and has 3 MDM aliases created.

Any idea?

Att,

Alexandre Jacquet



On 9 May 2011 22:10, Ale Jacquet <[email protected]> wrote:

> Thank you claudio i ll master it!
> On May 9, 2011 10:08 PM, "Claudio Cherubino" <[email protected]>
> wrote:
> > Alexandre,
> >
> > Please check this sample on the correct way to use the MDM library:
> >
> >
> http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/appsforyourdomain/labs/provisioning/ProvisioningApiMultiDomainSampleClient.java
> >
> > Claudio
> >
> > On Mon, May 9, 2011 at 5:52 PM, Ale Jacquet <[email protected]>
> wrote:
> >
> >> Hello Claudio,
> >>
> >> Thank you for the fast reply, im trying as you instructed to get the
> >> aliases now however everytime it returns that the user does not exists.
> >> Could you give me a guidance?
> >>
> >>
> >> I think I am mistaking the returns types =\
> >>
> >> nicknameService.setUserCredentials(adminCredentials,
> >> adminPassword);
> >>
> >> //Retrieving All User Aliases for a User
> >> //GET https://apps-apis.google.com/a/feeds/alias/2.0/the domain
> >> name?userEmail=user@domain
> >> URL feedUrl = new URL("
> >>
> https://apps-apis.google.com/a/feeds/alias/2.0/[email protected]
> >> ");
> >> nicknameService.getFeed(feedUrl, NicknameFeed.class);
> >>
> >> Sorry for the newbie questions.
> >>
> >>
> >> Att,
> >>
> >> Alexandre Jacquet
> >>
> >>
> >>
> >> On 9 May 2011 20:55, Claudio Cherubino <[email protected]> wrote:
> >>
> >>> Alexandre,
> >>>
> >>> You are using the url to retrieve a single user in an MDM environment
> >>> together with the getFeed method that instead is used to retrieve
> >>> collections.
> >>> If you want to retrieve all users, then the correct url is:
> >>>
> >>> https://apps-apis.google.com/a/feeds/user/2.0/lab.<
> https://apps-apis.google.com/a/feeds/user/2.0/lab.dedalusprime.com.br/[email protected]
> >
> >>> dedalusprime.com.br<
> https://apps-apis.google.com/a/feeds/user/2.0/lab.dedalusprime.com.br/[email protected]
> >
>
> >>>
> >>> without the the full user email.
> >>> Hope it helps
> >>>
> >>> Claudio
> >>>
> >>>
> >>> On Mon, May 9, 2011 at 4:41 PM, Ale Jacquet <[email protected]>
> wrote:
> >>>
> >>>> Hello Claudio,
> >>>>
> >>>>
> >>>>
> >>>> myService.setUserCredentials(adminCredentials, adminPassword);
> >>>>
> >>>> //GET https://apps-apis.google.com/a/feeds/user/2.0/the domain
> >>>> name/full user email
> >>>> URL metafeedUrl = new URL("
> >>>>
> https://apps-apis.google.com/a/feeds/user/2.0/lab.dedalusprime.com.br/[email protected]
> >>>> ");
> >>>> System.out.println("Getting user entries...\n");
> >>>> UserFeed resultFeed = myService.getFeed(metafeedUrl,
> >>>> UserFeed.class);
> >>>>
> >>>> Yes, this is happening everytime. I have done a few updates on the
> sample
> >>>> code to get MDM working
> >>>> I have downloaded last friday the new java client
> >>>> This is happening for users and aliases...
> >>>>
> >>>>
> >>>> Att,
> >>>>
> >>>> Alexandre Jacquet
> >>>>
> >>>>
> >>>>
> >>>> On 9 May 2011 20:23, Claudio Cherubino <[email protected]> wrote:
> >>>>
> >>>>> Hi Alexandre,
> >>>>>
> >>>>> Can you show us the snippet of code that caused this exception?
> >>>>> Do you get the same error every time you run that code?
> >>>>> Are you using the latest version of the Java client library?
> >>>>>
> >>>>> Claudio
> >>>>>
> >>>>> On Mon, May 9, 2011 at 3:36 PM, Ale Jacquet <[email protected]
> >wrote:
> >>>>>
> >>>>>> Hello,
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> I'm trying to get all users with MDM support in Google Apps for
> Business using Gdata Java client, however it is resulting a parse error. Do
> you guys have any idea?
> >>>>>>
> >>>>>>
> >>>>>> com.google.gdata.util.ParseException: [Line 1, Column 131] Invalid
> root element, expected (namespace uri:local name) of (
> http://www.w3.org/2005/Atom:feed), found (
> http://www.w3.org/2005/Atom:entry
> >>>>>> at
> com.google.gdata.util.XmlParser.throwParseException(XmlParser.java:730)
> >>>>>> at com.google.gdata.util.XmlParser.parse(XmlParser.java:693)
> >>>>>> at com.google.gdata.util.XmlParser.parse(XmlParser.java:576)
> >>>>>> at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:867)
> >>>>>> at
> com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:68)
> >>>>>> at
> com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:39)
> >>>>>> at
> com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:100)
> >>>>>> at
> com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:52)
> >>>>>> at
> com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:66)
> >>>>>> at
> com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:34)
> >>>>>> at
> com.google.gdata.client.Service.parseResponseData(Service.java:2165)
> >>>>>> at
> com.google.gdata.client.Service.parseResponseData(Service.java:2098)
> >>>>>> at com.google.gdata.client.Service.getFeed(Service.java:1136)
> >>>>>> at com.google.gdata.client.Service.getFeed(Service.java:998)
> >>>>>> at
> com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
> >>>>>> at com.google.gdata.client.Service.getFeed(Service.java:1017)
> >>>>>> at
> com.google.gdata.client.appsforyourdomain.AppsForYourDomainService.getFeed(AppsForYourDomainService.java:137)
> >>>>>> at AppsProvisioning.main(AppsProvisioning.java:52)
> >>>>>> Caused by: com.google.gdata.util.ParseException: Invalid root
> element, expected (namespace uri:local name) of (
> http://www.w3.org/2005/Atom:feed), found (
> http://www.w3.org/2005/Atom:entry
> >>>>>> at com.google.gdata.util.XmlParser.startElement(XmlParser.java:802)
> >>>>>> at
> org.xml.sax.helpers.ParserAdapter.startElement(ParserAdapter.java:597)
> >>>>>> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:453)
> >>>>>> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
> >>>>>> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
> >>>>>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103)
> >>>>>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)
> >>>>>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
> >>>>>> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
> >>>>>> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
> >>>>>> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
> >>>>>> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> >>>>>> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
> >>>>>> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
> >>>>>> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
> >>>>>> at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:405)
> >>>>>> at com.google.gdata.util.XmlParser.parse(XmlParser.java:685)
> >>>>>> ... 16 more
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> Att,
> >>>>>>
> >>>>>> Alexandre Jacquet
> >>>>>>
> >>>>>> --
> >>>>>> You received this message because you are subscribed to the Google
> >>>>>> Groups "Google Apps Domain Information and Management APIs" group.
> >>>>>> To post to this group, send email to
> >>>>>> [email protected].
> >>>>>> To unsubscribe from this group, send email to
> >>>>>> [email protected].
> >>>>>> For more options, visit this group at
> >>>>>> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
> >>>>>>
> >>>>>
> >>>>> --
> >>>>> You received this message because you are subscribed to the Google
> >>>>> Groups "Google Apps Domain Information and Management APIs" group.
> >>>>> To post to this group, send email to
> >>>>> [email protected].
> >>>>> To unsubscribe from this group, send email to
> >>>>> [email protected].
> >>>>> For more options, visit this group at
> >>>>> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
> >>>>>
> >>>>
> >>>> --
> >>>> You received this message because you are subscribed to the Google
> Groups
> >>>> "Google Apps Domain Information and Management APIs" group.
> >>>> To post to this group, send email to
> >>>> [email protected].
> >>>> To unsubscribe from this group, send email to
> >>>> [email protected].
> >>>> For more options, visit this group at
> >>>> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
> >>>>
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google
> Groups
> >>> "Google Apps Domain Information and Management APIs" group.
> >>> To post to this group, send email to
> >>> [email protected].
> >>> To unsubscribe from this group, send email to
> >>> [email protected].
> >>> For more options, visit this group at
> >>> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
> >>>
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "Google Apps Domain Information and Management APIs" group.
> >> To post to this group, send email to
> >> [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
> >>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Apps Domain Information and Management APIs" group.
> > To post to this group, send email to
> [email protected].
> > To unsubscribe from this group, send email to
> [email protected].
> > For more options, visit this group at
> http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
> >
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to