Quantcast
Channel: Adobe Community : Popular Discussions - CQ5 (read only)
Viewing all 12476 articles
Browse latest View live

Nothing shows in sidekick inspite of the design selection

$
0
0

Additional update-  If the same page, I view it in preview and revert back to authoring mode, sidekick gets populated. So preview does the trick of sidekick population but not on all the templates. For few, the sidekick stays empty all times but parsys has the component list from design.

 

Hello,

 

     I have a template which has usual header/footer/leftnav embedded in it. In the body of the template there are two components. First is embedded global headline component and next is a parsys component. I go in design and identify the components that will be part of parsys and save it. There are two things happening here.

 

1. No matter what I do, sidekick doesnot populate at all and is always empty.

 

2. If I directly go to the parsys and righclick on new, another popup comes that lists all the selected component identified in the design. So I can create the content directly from parsys but not from sidekick.

 

Why is sidekick empty? How can that be fixed? I have attached the code.

 

<%@ include file="/apps/homesite/components/global.jsp" %>

  <cq:includeClientLib categories="820subNav"/>

<section id="content" class="container_12 clearfix">

          <aside id="leftSubNav" class="twoCol">

                      <cq:include path="leftnav" resourceType="homesite/components/leftnav"/>

          </aside>

          <div id="content-wrapper" class="tenCol">

        <div id="subIndustry" class="mainPadding">

          <cq:include path="globalheadline" resourceType="/apps/homesite/components/globalheadline"/>

          <cq:include path="subindustries" resourceType="/apps/homesite/components/parsys"/>

          <%--For this section of content created in parsys, sidekick will have video and multiple lists with no links --%>

        </div>

          </div>

</section>

<cq:include path="collateralcarousal" resourceType="/apps/homesite/components/insights/collateralcarousel"/>

 

 

Thanks


Manually Clean Dispatcher Cache

$
0
0

We have a requirement that we update some details of a page from a feed after certain interval of time and then we need to clean the dispatcher cache.

 

We have done few sling mapping also

e.g.

for page  /content/mysite/page1.html we have defined a sling mapping and whenever a request comes for http://domainname/mysite/page1.html it serves /content/mysite/page1.html

 

Cache generated : /mysite/page1.html in docroot folder

 

Once the page data is updated by the feed, we need to clean the cache.

 

I am trying to manually clean the cache by making following  POST request at http://domainname/dispatcher/invalidate.cache with parameters

CQ-Action: Activate
CQ-Handle:
/mysite

Content-Length: 0


It returns 201 with following but the cache is not deleted.  Am I doing something wrong ?

 

 

Any help will be much appreciated.

 

Regards,

-Yogesh

i18n value in sling include

$
0
0

I am unable to get I18n value in sling include content in 404.jsp/default.jsp.

 

Basically I am including a 404 page ( based on some template ) into sling/servlet/errorhandler/default.jsp like

<sling:include path="/content/mysite/en/errorpage" />

 

I am able to see the included error page in case of 404. But the i18n value that are used in errorpage is not applied, instead i am getting the sling:key as the value itself.

The standalone page (if i directly open the page instead of going thru 404 error ) shows correct i18n value

I am using i18n as:

 

ResourceBundle i18n = slingRequest.getResourceBundle(locale);

or

I18n i18n1= new I18n(slingRequest);

 

Please suggest if i m doing something wrong.

CQ login page is throwing 500 Internal Server Error on start up. Can't load http root property error

$
0
0

Hello Team,

 

When I am trying to start the CQ instance, I am seeing the following in the stderr.log

 

Setting properties from filename 'C:/CQ/CQInstall/cq-author-4502.jar'

Property '-r' set to 'author' from filename cq-quickstart-5.5.0-20120220.jar

System property 'sling.run.modes' set to 'author' by -r option

Redirecting stdout to C:\CQ\CQInstall\.\crx-quickstart\logs\stdout.log

Redirecting stderr to C:\CQ\CQInstall\.\crx-quickstart\logs\stderr.log

ResourceProvider paths=[/gui, /gui/default]

Can't load http root property: java.io.FileNotFoundException: C:\CQ\CQInstall\.\crx-quickstart\conf\sling.properties (The system cannot find the file specified)

 

MAIN process: shutdown hook

 

MAIN process: exiting

 

I am not sure where from this extra \.\ is getting added in the path.

 

Even when I see the osgi bundle in the system console,

 

http://localhost:4502/system/console/bundles


Bundle information: 122 bundles in total, 119 bundles active, 3 active fragments, 0 bundles resolved, 0 bundles installed.


On my mac machine, I have the same version and could see the total bundles as different.


bundle information 231 bundles in total, 224 bundles active, 7 active fragments, 0 bundles resolved and 0 bundles installed


When I try to access the http://localhost:4502/libs/crx/core/content/login.html

 

Internal Server Error

 

When I looked into the logs, it is giving the following error message:

 

06.02.2013 17:38:31.980 *ERROR* [0:0:0:0:0:0:0:1 [1360193734586] GET /libs/crx/core/content/login.html HTTP/1.1] org.apache.sling.servlets.resolver.internal.SlingServletResolver Original error class org.apache.sling.api.SlingException org.apache.sling.api.SlingException:

 

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspExceptionInterna l(JspServletWrapper.java:563)

 

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.handleJspException(JspSer vletWrapper.java:499)

at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:451)

at org.apache.sling.scripting.jsp.JspServletWrapperAdapter.service(JspServletWrapperAdapter. java:59)

Caused by: org.apache.sling.api.SlingException: Unable to setup processor: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

 

at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:452)

 

at org.apache.sling.rewriter.impl.RewriterResponse.getProcessor(RewriterResponse.java:172)

at org.apache.sling.rewriter.impl.RewriterResponse.getWriter(RewriterResponse.java:110)

at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.getWriter(OnDemandWriter.java: 38)

at org.apache.sling.scripting.core.impl.helper.OnDemandWriter.write(OnDemandWriter.java:61)

at java.io.PrintWriter.write(PrintWriter.java:382)

Caused by: java.io.IOException: Unable to get component of class 'interface org.apache.sling.rewriter.Generator' with type 'htmlparser'.

 

at org.apache.sling.rewriter.impl.PipelineImpl.getPipelineComponent(PipelineImpl.java:160)

 

at org.apache.sling.rewriter.impl.PipelineImpl.init(PipelineImpl.java:85)

at org.apache.sling.rewriter.impl.ProcessorManagerImpl.getProcessor(ProcessorManagerImpl.jav a:445)

... 73 more

 

Any pointers to solve the problem would be highly appreciated.

 

Best Regards,

Durga

Using multi-value properties in JSP components

$
0
0

I am trying to figure out if I am doing some small step wrong or if I don't have a full grasp on how some things work.

 

I am accessing a multi-value property from the JSP of my component:

 

<%@include file="/libs/foundation/global.jsp" %>

    <h2>Keys</h2>

    <div class="container_16">

        <div class="grid_8"><%

Object keysObj = properties.get("keys");

if (keysObj != null)

{

String[] keys = (String[]) keysObj;

%>

<%= keys %><%

} %></div>

</div>

 

Here is how I defined my component:

 

{

     "jcr:createdBy":"admin",

     "jcr:title":"My Listing",

     "allowedParents":["*/*parsys"],

     "componentGroup":"Listing Group",

     "sling:resourceSuperType":"foundation/components/parbase",

     "jcr:created":"Wed Aug 15 2012 20:01:15 GMT-0400",

     "jcr:primaryType":"cq:Component",

     "keys":[""]

}

 

So keys is a multi-value String object. I am supposing the value is a String[].

 

I created a dialog to set the values within the CQ page edit.

 

- myList

--- dialog [cq:Dialog]

----- items [cq:Widget]

------- items [cq:WidgetCollection]

--------- tabs1 [cq:Panel]

----------- items [cq:WidgetCollection]

------------- keys [cq:Widget]

 

The keys cq:Widget is defined as:

 

{

     "fieldLabel":"Keys to List",

     "xtype":"multifield",

     "name":"./keys",

     "jcr:primaryType":"cq:Widget",

     "fieldDescription":"List keys to display"

}

 

I placed the component into an existing geometrixx page to test. When I double-clicked on it I was able to add multiple values.

 

It is failing when I attempt to coerce the properties.get method to a String[]: String[] keys = (String[]) keysObj;

 

16.08.2012 11:58:29.444 *ERROR* [10.176.196.66 [1345132705084] GET /content/geometrixx/en/services.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Error during include of SlingRequestPathInfo: path='/content/geometrixx/en/services/jcr:content/par/keylist', selectorString='null', extension='html', suffix='null' org.apache.sling.api.scripting.ScriptEvaluationException: An exception occurred processing JSP page /apps/myList/components/keyList/keyList.jsp at line 14

<snip stack trace>

Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

 

So all that leads to my question.

 

It looks like I am wrong on how to coerce the results of properties.get to a String[]. What is the best way to work with multi-value properties? I want to iterate through the values in the multi-value property.

 

Should I have specified the index in the method?

---- properties.get("keys[0]");

 

Thanks!

Fail to access CRX with JcrUtils.getRepository

$
0
0

I just started with CQ5/CRX/JCR, so I beg your pardon if asking silly questions.

I'm running a CQ5 Standalone Server (CQ_5_5_Quickstart.jar) on my Windows 7 and am fine with accessing it with my browser and the URL "http://localhost:4502".

Now I try to access it via a Java-client using the JcrUtils.getRepository-method, as described in http://dev.day.com/docs/en/crx/current/developing/accessing_the_crx.html.

But this fails with message:

javax.jcr.RepositoryException: Unable to access a repository with the following settings:

    org.apache.jackrabbit.repository.uri: http://localhost:4502/crx/server

The following RepositoryFactory classes were consulted:

    org.apache.jackrabbit.commons.JndiRepositoryFactory: declined

Perhaps the repository you are trying to access is not available at the moment.

at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:199)

at org.apache.jackrabbit.commons.JcrUtils.getRepository(JcrUtils.java:239)

at AccessJCR.connectJcrUtils2(AccessJCR.java:32)

at AccessJCR.main(AccessJCR.java:16)

 

I'm not sure about the used URL; I just took it from cited webpage. There is said: "The default server's endpoint URL is http://host:port/crx/server. Make sure you adapt the client-side connection URL in case of customized server installation.".

I didn't customize anything so this should be ok. I will attach the complete Code, hopefully you can give some hints.

 

Regards,

Ulrich

 

[code]

import java.util.*;

import javax.jcr.*;

public class AccessJCR {

      public AccessJCR() {}

 

      public static void main(String[] args) {

           AccessJCR ajcr = new AccessJCR();

           try {

                ajcr.connect();

           }

           catch (Exception ce) {

                ce.printStackTrace();

            }

        }

 

      private void connect() throws Exception {

           //Create a connection to the Day CQ repository running on local host

           Repository repository = org.apache.jackrabbit.commons.JcrUtils.getRepository("http://localhost:4502/crx/server");

        }

}

[/code]

CQ5 Trial

$
0
0

I’m trying to set up a local, non-production environment to test and evaluate CQ5. I’ve downloaded the ‘Adobe Digital Enterprise Platform (ADEP) – Experience Services  ’ and followed the install instruction given (http://dev.day.com/docs/en/cq/current/getting_started/download_and_startworking.html), but all I get is the option to use CRXDE lite. There is no option for CQ5 WCM as shown on some of the getting started scripts on the Adobe web site. How do I set up a website (there isn’t a websites menu open now) so that I can test/evaluate CQ5 locally? Thanks…fred

Correct Syntax for Reteriving Current Template

$
0
0

I've been reading over the documentation and I'm have a difficult time getting the template being used on the current page.  In my component, all I want to do is use an IF statement to see if template MyTemplate is being used and apply some  HTML - if not, apply different HTML.

 

<%@include file="/libs/foundation/global.jsp"%><%@page session="false"            import="com.day.cq.wcm.api.WCMMode"
%>

if (currentPage.getTemplate().equals(MyTemplate) {
    %>temp = my template<%
} else {    %>temp not equal to my template<%       }

 

Can someone correct my syntax?


Dispatcher Flush Agent on Publisher not invalidating cache

$
0
0

Hi all,

 

We're having an issue with invalidating that cache apon activation/replication of content, but only from the Publish flush agent.  I've copied the default flush agent on the Publish instance, updated the URI to point to my dispatcher, and enabled the agent.  Clicking Test Connection shows a successful connection to the dispatcher.  Also, I can see that the .stat file has been created at the web root on the dispatcher (I'm not specifying a specific statsfile or a statsfile level in the dispatcher.any).  When I change a setting in the publisher flush agent and save it, or stop and start it, the .stat file is updated.  So I know the Publisher is able to correctly reach the dispatcher and pass along the invalidate message to update the .stat file.

 

When I replicate a node from Author the Publisher, I see the following in the Publisher error.log:

 

22.05.2013 04:23:23.241 *INFO* [ObservationManager] com.day.cq.wcm.core.impl.components.ComponentCacheImpl Detecting component change. invalidating cache.

22.05.2013 04:23:23.245 *INFO* [10.20.30.40 [1369196603165] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.content.durbo.DurboImporter imported content in 79ms for durbo request on path: /apps/my-project/components/page/base/footer.jsp

22.05.2013 04:23:23.245 *INFO* [10.20.30.40 [1369196603165] POST /bin/receive HTTP/1.1] com.day.cq.replication.impl.servlets.ReplicationServlet Processed replication action in 79ms: ACTIVATE of /apps/my-project/components/page/base/footer.jsp

 

However when I check the dispatcher, I see that the .stat file has not had its timestamp updated.  I've also noticed that when I change the node and replicate it, the 'Detecting component change. invalidating cache.' log line above does not always appear in the log file - it appears only sometimes with the other 2 long lines.  This part seems random.

 

In my testing, I've also created a Dispatcher Flush agent on the Author instance (after disabling the one on the Publish instance), and 100% of the time when I replicate the /apps/my-project/components/page/base/footer.jsp to the Publisher, the Author flush agent correctly updates the .stat file timestamp.  So I'm 100% confident that the file I'm editing is able to be cached, and that changing and replicating it does update the .stat file.

 

Just never from the Publish flush agent!

 

I've tried all combinations of trigger settings on the Publish agent to no avail.  I've also inspected the properties of the agent in CRXDE Lite, and I can't see anything that the Author agent has and the publish agent is missing!

 

I've also tried creating the Publish agent by copying the default one from the tools console and updating the URI, creating a Publish agent on the Author and replicating it to the Publisher, and also creating it directly on the Publisher via curl calls - all of these methods seem to create a valid dispatcher flush agent on the Publisher that successfully connects to the dispatcher (confirmed by a successful 'Test Connection' click after creating), but none of them ever update the .stat file on the dispatcher after content replication.

 

Any thoughts here on where else to look would be greatly appreciated!!

 

Cheers,

K

CQ5 Startup errors ESAPI directory or file not readable.

$
0
0

Here is the startup screen output with the errors bolded, any help is appreciated.

 

:/lopt/dev/instances/author1/crx-quickstart/bin $ 31.05.2013 08:08:32.365 *INFO * [main] Setting sling.home=crx-quickstart (command line)

31.05.2013 08:08:32.371 *INFO * [main] Starting Apache Sling in /lopt/dev/instances/author1/crx-quickstart

31.05.2013 08:08:32.380 *INFO * [main] Checking launcher JAR in folder /lopt/dev/instances/author1/crx-quickstart/launchpad

31.05.2013 08:08:32.380 *INFO * [Apache Sling Control Listener@/127.0.0.1:43654] Apache Sling Control Listener started

31.05.2013 08:08:32.399 *INFO * [main] Existing launcher is up to date, using it: 2.4.1.R1416835 (org.apache.sling.launchpad.base.jar)

31.05.2013 08:08:32.402 *INFO * [main] Loading launcher class org.apache.sling.launchpad.base.app.MainDelegate from org.apache.sling.launchpad.base.jar

31.05.2013 08:08:32.440 *INFO * [main] Setting sling.launchpad=/lopt/dev/instances/author1/crx-quickstart/launchpad

31.05.2013 08:08:32.441 *INFO * [main] Setting sling.home=crx-quickstart

31.05.2013 08:08:32.441 *INFO * [main] Setting org.osgi.service.http.port=4502

31.05.2013 08:08:32.441 *INFO * [main] Starting launcher ...

31.05.2013 08:08:32.442 *INFO * [main] HTTP server port: 4502

RAWProcessor succesfully installed

31.05.2013 08:09:06.608 *INFO * [main] Startup completed

Attempting to load ESAPI.properties via file I/O.

Attempting to load ESAPI.properties as resource file via file I/O.

Not found in 'org.owasp.esapi.resources' directory or file not readable: /lopt/dev/instances/author1/ESAPI.properties

Not found in SystemResource Directory/resourceDirectory: .esapi/ESAPI.properties

Not found in 'user.home' (/lopt/adobe) directory: /lopt/adobe/esapi/ESAPI.properties

Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException

Attempting to load ESAPI.properties via the classpath.

SUCCESSFULLY LOADED ESAPI.properties via the CLASSPATH from '/ (root)' using class loader for DefaultSecurityConfiguration class!

Attempting to load validation.properties via file I/O.

Attempting to load validation.properties as resource file via file I/O.

Not found in 'org.owasp.esapi.resources' directory or file not readable: /lopt/dev/instances/author1/validation.properties

Not found in SystemResource Directory/resourceDirectory: .esapi/validation.properties

Not found in 'user.home' (/lopt/adobe) directory: /lopt/adobe/esapi/validation.properties

Loading validation.properties via file I/O failed.

Attempting to load validation.properties via the classpath.

SUCCESSFULLY LOADED validation.properties via the CLASSPATH from '/ (root)' using class loader for DefaultSecurityConfiguration class!

Jackrabbit search jcr repository on multiple paths using single query

$
0
0

Hi,

 

I have been trying to work this out: using either xpath or SQL or SQL2, to perform a full text search on multiple paths.

 

i.e.

 

Search for 'promotion' under '/content/mysite/products/%' and '/content/dam/articles/pdfs/products' etc.

 

Tried using the following but none worked so far:

 

SQL2:

 

SELECT * FROM [nt:base] AS s

WHERE  ISDESCENDANTNODE([/content/mysite/products]) or                ISDESCENDANTNODE([/content/dam/articles/pdf/products]) 

and CONTAINS(s.*, 'promotion')

 

SQL:

select * from nt:base where (jcr:path like '/content/mysite/products/%' or jcr:path like '/content/dam/articles/pdf/products/%') and contains (., 'promotion')

 

xpath:

 

/jcr:root/content/[fn:name()='/mysite/products' or fn:name()='/dam/articles/pdf/products]//*[jcr:like(text, '%promotion%')]

 

The reason for making a query like this is because we can than sort the result by jcr:score. If separate queries were used on each path then we need to work out how to consolidate and sort everything according to the score.

 

Already tried predicateGroup but:

1. Very slow

2. 'lower' function isn't working on fulltext search

 

Appreciate any advice or suggestions.

Is it possible to export the page activity report to a pdf file?

$
0
0

Is it possible to export the page activity report to a pdf file?and is there any api or samples to be reference

CQ5.5 Workflow Model doesn't load in http://localhost:4502/lib/cq/workflow/content/console.html

$
0
0

Hi,

 

We noticed an unusual issue where in the models of the workflow doesn't gets loaded in (http://localhost:4502/lib/cq/workflow/content/console.html).

Although the models exists as expected in /etc/workflow/model but doesn't show up or doesnt get loaded.

 

I know most of people will immediately look into the users (permissions) but the concerned user is an admin and he has all the required permissions to view the workflow.

 

We get the below error in the logs:

*WARN* GET /libs/cq/workflow/content/console/instances.json HTTP/1.1] com.day.cq.workflow.impl.jcr.WorkflowManager Workflow cannot be loaded: Cannot create Workflow instance from node

*ERROR* GET /libs/cq/workflow/content/console/instances.json HTTP/1.1] com.day.cq.workflow.impl.model.CQWorkflowModelCache cannot load model. id: /etc/workflow/models/{suppressed workflowname}/jcr:content/model vid: 1.61

*ERROR* GET /libs/cq/workflow/content/console/instances.json HTTP/1.1] com.day.cq.workflow.impl.util.NodeReader Cannot create Workflow instance object from node javax.jcr.version.VersionException: Version 1.61 does not exist for /etc/workflow/models/{suppressed workflowname}/jcr:content/model

        at com.day.cq.workflow.impl.jcr.WorkflowModelManager.getWorkflowModel(WorkflowModelManager.j ava:90)

        at com.day.cq.workflow.impl.CQWorkflowSession.getModel(CQWorkflowSession.java:246)

        at com.day.cq.workflow.impl.util.NodeReader.createWorkflow(NodeReader.java:205)

        at com.day.cq.workflow.impl.jcr.WorkflowManager.getWorkflowInstances(WorkflowManager.java:74 9)

        at com.day.cq.workflow.impl.jcr.WorkflowManager.getAllWorkflowInstances(WorkflowManager.java :131)

        at com.day.cq.workflow.impl.CQWorkflowSession.getWorkflows(CQWorkflowSession.java:347)

        at org.apache.jsp.libs.cq.workflow.components.console.instances.json_jsp._jspService(json_js p.java:136)

        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:497)

        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:447)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java :235)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.j ava:85)

        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngin eFactory.java:432)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171)

        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:4 63)

        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:500)

        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:147)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )

        at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:257)

        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)

        at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:305)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.thehartford.thf.core.sessionmanagement.filter.ApplicationFilterServiceImpl.doFilter(A pplicationFilterServiceImpl.java:105)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:89)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)

        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)

        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:153)

        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)

        at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)

        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)

        at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:117)

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:238)

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )

        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)

        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)

        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)

        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)

        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)

        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)

        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)

        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)

        at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:351)

        at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:625)

        at java.lang.Thread.run(Thread.java:662)

*WARN* GET /libs/cq/workflow/content/console/instances.json HTTP/1.1] com.day.cq.workflow.impl.jcr.WorkflowManager Workflow cannot be loaded: Cannot create Workflow instance from node

Cannot Debug CQ 5.6 in MyEclipse

$
0
0

When I try to connect the debugger I get an error "Failed to connect to remote VM. Connection refused". I have tried in both eclipse and MyEclipse. It used to work but I cant figure out what has changed. I am stumped.

 

More details:

 

I have my Remote Java Application host & port set to localhost and 30303 respectively. The correct project is set.

 

I am initiating a debug from the windows command line using:

 

java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=512M -Xmx1280m -Dorg.apache.sling.commons.log.level=INFO -jar cq5-author-p4502.jar -p 4502 -verbose -nofork

 

I get the following back:

 

Listening for transport dt_socket at address: 30303

Loading quickstart properties: default

Loading quickstart properties: instance

Low-memory action set to fork

Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork argume

nts=[-Xmx1024m, -XX:MaxPermSize=256m]

The JVM reports a heap size of 1137 MB, meets our expectation of 1024 MB +/- 20

The JVM MBean:PS Perm Gen reports a maximum size of 512 MB, meets our expectatio

n of 256 MB +/- 20

Setting properties from filename 'C:/adobe/CQ5.6/author/cq5-author-p4502.jar'

Option '-quickstart.server.port' set to '4502' from filename cq5-author-p4502.ja

r

Verbose mode - stdout/err not redirected to files, and stdin not closedResourceP

rovider paths=[/gui, /gui/default]

quickstart.build=0.0.0.0_0_0_5_6_.20130129

quickstartdir:C:\adobe\CQ5.6\author\.\crx-quickstart

DiskSpaceUtil.getMaxOpenFiles() reports a maximum of 2147483647 open files, meet

s our requirement (8192)

PortSelector: Selecting server port from supplied list: 4502

PortSelector: Trying port 4502

PortSelector: Successfully bound to port 4502, will use it

PortSelector: Selected port 4502

Build number not changed, software update not needed

UpgradeUtil.handleInstallAndUpgrade has mode RESTART

Upgrade: no files to restore from pre-upgrade backup

Press CTRL-C to shutdown the Quickstart server...

Sling Home: C:\adobe\CQ5.6\author\.\crx-quickstart

Launchpad Home: launchpad

Sling Properties: conf/sling.properties

Application arguments: {sling.launchpad=launchpad, sling.home=C:\adobe\CQ5.6\aut

hor\.\crx-quickstart, sling.properties=conf/sling.properties, org.osgi.service.h

ttp.port=4502}

-------------------------------------------------------------------

Quickstart application directory: C:\adobe\CQ5.6\author\.\crx-quickstart/app

App classpath:

- file:/C:/adobe/CQ5.6/author/./crx-quickstart/app/cq-quickstart-5.6.0-standalo

ne.jar

Main class: org.apache.sling.launchpad.app.Main

-------------------------------------------------------------------

16.07.2013 18:00:46.079 *INFO * [main] Setting sling.home=C:\adobe\CQ5.6\author\

.\crx-quickstart (command line)

16.07.2013 18:00:46.081 *INFO * [main] Starting Apache Sling in C:\adobe\CQ5.6\a

uthor\.\crx-quickstart

16.07.2013 18:00:46.088 *INFO * [main] Checking launcher JAR in folder C:\adobe\

CQ5.6\author\.\crx-quickstart\launchpad

16.07.2013 18:00:46.098 *INFO * [main] Existing launcher is up to date, using it

: 2.4.1.R1416835 (org.apache.sling.launchpad.base.jar)

16.07.2013 18:00:46.102 *INFO * [main] Loading launcher class org.apache.sling.l

aunchpad.base.app.MainDelegate from org.apache.sling.launchpad.base.jar

16.07.2013 18:00:46.112 *INFO * [main] Setting sling.launchpad=C:\adobe\CQ5.6\au

thor\.\crx-quickstart\launchpad

16.07.2013 18:00:46.113 *INFO * [main] Setting sling.home=C:\adobe\CQ5.6\author\

.\crx-quickstart

16.07.2013 18:00:46.114 *INFO * [main] Setting sling.properties=conf/sling.prope

rties

16.07.2013 18:00:46.116 *INFO * [main] Setting org.osgi.service.http.port=4502

16.07.2013 18:00:46.117 *INFO * [main] Starting launcher ...

16.07.2013 18:00:46.118 *INFO * [main] HTTP server port: 4502

How to get the groups associated to a CQ5 user account ?

$
0
0

Hello,

I'm looking for a sling endpoints to get all groups a CQ5 user belongs to.

I first checked into crx but it seems that the groups are not stored in the users nodes. So I've no idea where I should looking at...

 

Regards,


Building my first Left Navigation which API should I use??

$
0
0

I am a newbie to CQ5 development, so I am just getting used to the CQ5 API's.

I have built many left navigation templates, using another CMS, where their were navigation api methods,that could tell me if a navigation link, was the current link, if it was an ancestor of the current page.

I have looked at the CQ5 Page and Node api's and cannot figure out which method or property will tell me if the page or node is the current page/node or an ancestor, I need to know this if I am going to build any type of Navigation that must indicate the current/ancestor link.

 

Does anyone have a sample left nav code they could share, tell me which API to use.

 

Thanks in advance..

 

 

Ty

Pass ClientSide Value to Sling:Include

$
0
0

Hello,

 

I have a business requirement to dynamically load content in a page based on the changes of a dropdown list. My client has 100+ pricing elements that would need to be loaded based on the visitor’s selection of a dropdown list. Instead of having my Authors create 100+ separate pages for each pricing element, it seems more efficient to simply create a generic page (with header, footer, content that applies to all pages) and dynamically load the pricing elements somewhere in the page body.

 

What I’m struggling to understand is how to pass the visitor’s selection of the dropdown list (JavaScript against the dropdown’s onchange event seems like the most appropriate) to CQ’s sling:include function to load the appropriate CQ page.

 

In the dropdown list, I can create the Text | Value pair something like this:

 

Content1 | /content/myproject/content1
Content2 | /content/myproject/content2
Content3 | /content/myproject/content3

 

From there, I’m thinking I would use JavaScript and the dropdown list’s onchange event to get the appropriate page URL value and pass it to “mypage.html” and use the sling:include function to load that content inside of the page body.  My questions are:

 

  1. How to I pass the client side value (e.g., /content/myproject/content1) to CQ’s sling:include function so that it’s dynamic?
  2. How do I ensure that when mypage.html is loaded, the CQ dispatcher’s caching mechanism doesn’t cache this dynamic content?

 

Thanks in advance for any assistance.

Ignore URL param in dispacther

$
0
0

Hi,

 

We have some page URLs that has some analytic params that needs to be capture from Omniture javascript. If we are having the param in URL the page is not cached as expected. So i  want to ignore the URL param in dispatcher and serve the content from cache and have the query params in the URL to be taken care by analytics code.

As I read in http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_config.html , i can use ignore url param in dispatcher.

 

I applied those changes but it is not working for me.

 

Some doc : http://helpx.adobe.com/adobe-cq/kb/troubleshooting-dispatcher-flushing-issues.html    

 

Please advice.

 

Thanks

Create a new xtype containing html5smartimage

$
0
0

Hi all

 

I'm trying to create an xtype that contains an html5smartimage element.

 

Apart from adding the html5smartimage to a Panel, is there anything else required?

 

The following is rendered to my dialog, but this doesn't contain the Crop / Resize / Map icons or the placeholder text.

image-xtype.png

When dropping images from ContentFinder to this area, I get the following error:

image-error.png

CODE

this.newPanel = new CQ.Ext.Panel({

 

    cls: "test",

 

    layout: "fit",

    border: true,

    autoHeight: true,

    items: {

        xtype: "panel",

        layout: "form",

        border: false,

        autoHeight: true,

        defaults: {

            labelWidth: 70,

            anchor: "100%"

        },

        items:[

            {

                 xtype: "panel",

                 border: false,

                 items: [{

                     height: 150,

                    title:"Image",

                    ddGroups: ["media"],

                    ddAccept: ["image/.*"],

                    border: true,

                    disableZoom: true,

                    allowUpload: false,

                    fileNameParameter:"./fileName",

                    fileReferenceParameter:"./fileReference",

                    cropParameter:"./imageCrop",

                    mapParameter:"./imageMap",

                    requestSuffix:".img.png",

                    rotateParameter:"./imageRotate",

                    name:"./file",

                    uploadUrl:"/tmp/upload/*",

                    xtype: "html5smartimage"

                 }]

            }

        ]

    }

});

Why is a workflow "stale"?

$
0
0

I'm writing a workflow to send an email each time an user is created and I'm calling this workflow from a POJO. Everything looks good, no errors, in debug mode in my POJO I see that the workflow starts, there are no messages in my inbox. This is what my log says:

day.cq.workflow.impl.CQWorkflowSession Workflow instance started with model: /etc/workflow/models/send-user-email/jcr:content/model and  ID: /etc/workflow/instances/2013-04-04/model_17333941154731 for payload: /home/users/group01/xx@yy.com

 

My model only includes a workflow process step to send the email. Here comes the problem... it's not sending the email, I'm debuging the workflow and is not passing through the step that I wrote. In the workflow console the workflow the instance says "STALE". What causes the workflow going to stale state?

 

Thanks!

Viewing all 12476 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>