Skip to content

Instantly share code, notes, and snippets.

View cfalzone's full-sized avatar

Christopher Falzone cfalzone

  • Aquent
  • Erie County, PA
View GitHub Profile
[09/10/14 16:21:02:727 EDT] INFO aquentcareers.TaleoImporterServlet: Starting Job #94 of 200
[09/10/14 16:21:03:428 EDT] ERROR business.ESContentletAPIImpl: A text contentlet must be of type String
[09/10/14 16:21:03:428 EDT] ERROR business.ESContentletAPIImpl: Unable to get string value for text field in contentlet
java.lang.ClassCastException
[09/10/14 16:21:03:515 EDT] ERROR business.ESMappingAPIImpl:
java.lang.NullPointerException
[09/10/14 16:21:03:515 EDT] ERROR business.ESContentFactoryImpl:
com.dotcms.content.business.DotMappingException
at com.dotcms.content.elasticsearch.business.ESMappingAPIImpl.toMap(ESMappingAPIImpl.java:346)
at com.dotcms.content.elasticsearch.business.ESContentletIndexAPI.indexContentletList(ESContentletIndexAPI.java:323)
@cfalzone
cfalzone / ServerIdServlet.java
Created September 22, 2014 18:49
Server ID Servlet
package com.aquent;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Gson gson = new Gson();
String agentQuery = "+structureName:Agents +Agents.email:"+agentEmail;
List<Contentlet> conts = conAPI.search(agentQuery, 1, 0, "modDate desc", sysUser, false);
if(conts.size() > 0) {
agent = conts.get(0);
Contentlet newAgent = conAPI.checkout(agent.getInode(), sysUser, false);
// ** Social Media Links **
Map<String, String> socialMap = new HashMap<String, String>();
for(int i=0; i<=5; i++) {
[11/09/14 11:09:56:510 EDT] INFO business.PublisherAPIImpl: : [BundleID: 97ac896b-7a46-4ddd-b246-e6f717f507c5] Asset added to Push Publish Queue. Action: Publish, Asset Type: contentlet, Asset Id: 8f3cacca-f42a-416a-89e1-40d063e40335, User: dotcms.org.2812
[11/09/14 11:10:00:108 EDT] INFO publishing.PublisherAPIImpl: : [BundleID: 97ac896b-7a46-4ddd-b246-e6f717f507c5] Started Publishing Task
[11/09/14 11:10:00:254 EDT] ERROR publishing.PublisherAPIImpl: com.dotcms.publisher.util.DependencyManager : generate()null: Unable to pull content
com.dotcms.publishing.DotBundleException: com.dotcms.publisher.util.DependencyManager : generate()null: Unable to pull content
at com.dotcms.enterprise.publishing.remote.bundler.DependencyBundler.generate(SourceFile:65)
at com.dotcms.publishing.PublisherAPIImpl.publish(PublisherAPIImpl.java:79)
at com.dotcms.publishing.PublisherAPIImpl.publish(PublisherAPIImpl.java:17)
at com.dotcms.publisher.business.PublisherQueueJob.execute(PublisherQueueJ
@cfalzone
cfalzone / TemplatePages.jsp
Created September 8, 2014 18:28
dotcms 1.9 shows which pages use which templates
<%@page import="java.util.HashMap"%>
<%@page import="com.dotmarketing.portlets.htmlpages.business.HTMLPageAPI"%>
<%@page import="com.dotmarketing.portlets.htmlpages.model.HTMLPage"%>
<%@page import="com.dotmarketing.portlets.templates.business.TemplateAPI"%>
<%@page import="com.dotmarketing.portlets.templates.model.Template"%>
<%@page import="com.liferay.portal.model.User"%>
<%@page import="com.dotmarketing.business.APILocator"%>
<%@page import="com.dotmarketing.beans.Host"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
[02/09/14 16:46:24:743 EDT] ERROR business.PublisherAPIImpl: Index: 0, Size: 0
com.dotmarketing.exception.DotDataException: Index: 0, Size: 0
at com.dotmarketing.portlets.workflows.business.WorkflowFactoryImpl.findScheme(WorkflowFactoryImpl.java:568)
at com.dotmarketing.portlets.workflows.business.WorkflowAPIImpl.findScheme(WorkflowAPIImpl.java:175)
at com.dotcms.publisher.business.PublisherAPIImpl.addAssetsToQueue(PublisherAPIImpl.java:198)
at com.dotcms.publisher.business.PublisherAPIImpl.addContentsToPublish(PublisherAPIImpl.java:78)
[02/09/14 16:46:24:744 EDT] ERROR jsp.CreateUsers_jsp: Exception trying to push
com.dotcms.publisher.business.DotPublisherException: Unable to add element to publish queue table:Index: 0, Size: 0
at com.dotcms.publisher.business.PublisherAPIImpl.addAssetsToQueue(PublisherAPIImpl.java:247)
at com.dotcms.publisher.business.PublisherAPIImpl.addContentsToPublish(PublisherAPIImpl.java:78)
at org.apache.jsp.CreateUsers_jsp._jspService(CreateUsers_jsp.java:298)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
dotcms=# select * from containers where identifier = 'c7f733de-928e-4a32-86bd-cbf4a8165caf';
inode | code | pre_loop | post_loop | show_on_menu | title | mod_date | mod_user | sort_order | friendly_name | max_contentlets | use_div | staticify | sort_contentlets_by | lucene_query | notes | identifier | structure_inode | for_metadata
--------------------------------------+---------+----------+-----------+--------------+---------------------+------------------------+-----------------+------------+---------------------+-----------------+---------+-----------+---------------------+--------------+-------+--------------------------------------+--------------------------------------+-------------
-
0d06888a-1559-45f1-8646-efb2cb7dad91 | ${body} | | | f | Main Body Container | 22-JUL-14 11:48:53.982 | dotcms.org.2812 | 0 | Main Body Container |
[24/07/14 11:15:07:154 EDT] ERROR json.JSONObject: Problem accessing the absolute URL "https://my.aquent.com/mwi/profile/279904.json?locale=en_US". java.io.IOException: Server returned HTTP response code: 500 for URL: https://my.aquent.com/mwi/profile/279904.json?locale=en_US
java.lang.Exception: Problem accessing the absolute URL "https://my.aquent.com/mwi/profile/279904.json?locale=en_US". java.io.IOException: Server returned HTTP response code: 500 for URL: https://my.aquent.com/mwi/profile/279904.json?locale=en_US
at org.apache.velocity.tools.view.ImportSupport.acquireReader(ImportSupport.java:238)
at org.apache.velocity.tools.view.ImportSupport.acquireString(ImportSupport.java:98)
at com.dotmarketing.viewtools.JSONTool.fetch(JSONTool.java:81)
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.Metho