[4.1.1] Java API can't find contentlet, but query tool can?

31 views
Skip to first unread message

Nathan Keiter

unread,
Dec 20, 2017, 7:16:21 PM12/20/17
to dot...@googlegroups.com

When using the ContentletAPI.findContentletByIdentifier() method I get this error:

 

com.dotmarketing.portlets.contentlet.business.DotContentletStateException: Can't find contentlet: 41c722b0-4766-45ee-b185-9df939840926 lang:1 live:true

 

However, if I run the exact same query in the query tool, it finds the content.

 

 

What gives?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

Will Ezell

unread,
Dec 20, 2017, 7:29:39 PM12/20/17
to dot...@googlegroups.com
Maybe try with the pluses:


+identifier:41c722b0-4766-45ee-b185-9df939840926 +lang:1 +live:true 


Also, check permissions.

--
http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+unsubscribe@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dotcms/c783b54315e4498c964e07650c8d272b%40exch13c.ms.gettysburg.edu.
For more options, visit https://groups.google.com/d/optout.



--



3059 Grand Avenue
Suite 410-B
Miami FL 33133
Main: 
305-900-2001 | Direct: 978.294.9429

   

Nathan Keiter

unread,
Dec 20, 2017, 7:36:24 PM12/20/17
to dot...@googlegroups.com

Ok, so it turns out the content I was looking for wasn’t live.

 

Thanks Will.

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

From: dot...@googlegroups.com [mailto:dot...@googlegroups.com] On Behalf Of Will Ezell
Sent: Wednesday, December 20, 2017 7:29 PM
To: dot...@googlegroups.com
Subject: Re: [dotcms] [4.1.1] Java API can't find contentlet, but query tool can?

 

Maybe try with the pluses:

+identifier:41c722b0-4766-45ee-b185-9df939840926 +lang:1 +live:true 

 

 

Also, check permissions.

On Wed, Dec 20, 2017 at 7:16 PM, Nathan Keiter <nke...@gettysburg.edu> wrote:

When using the ContentletAPI.findContentletByIdentifier() method I get this error:

 

com.dotmarketing.portlets.contentlet.business.DotContentletStateException: Can't find contentlet: 41c722b0-4766-45ee-b185-9df939840926 lang:1 live:true

 

However, if I run the exact same query in the query tool, it finds the content.

 

 

What gives?

 

Nathan I. Keiter | Lead Network Applications Programmer | Benefits Advisory Council Member | I.D.E.A Council Member
Gettysburg College | Information Technology | DataSystems
Campus Box 2453 | 300 North Washington Street | Gettysburg, PA 17325
Phone: 717.337.6993

https://www.gettysburg.edu

 

--

http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.



 

--

 

 

3059 Grand Avenue

Suite 410-B

Miami FL 33133

Main: 305-900-2001 | Direct: 978.294.9429

 

   

--

http://dotcms.com - Open Source Java Content Management
---
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.

To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.


To post to this group, send email to dot...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages