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

Retrieving size of DAM Asset

$
0
0

I'm trying to get the size (in this case it's 30 KB but it could be whatever) of an asset from the CQ5 DAM. I've written code like this below that gives me the title

 

 

Resource rsc = resourceResolver.getResource(damLink +"/jcr:content/metadata");

            if (rsc != null)

            {

                ValueMap damVmap = ResourceUtil.getValueMap(rsc);

                String title = damVmap.get("dc:title", "");

 

            }

 

But I can't seem to find the size stored in either the asset itself, its jcr:content, metadata, or rendition. Am I missing something or does CQ5 not support this? Thanks in advance for your help!


SlingScriptHelper object in OSGi Service

$
0
0

Hi,

I am writing OSGi Service and I would like to get all services with given class ContentBuilder.class like in the Replication dialog:

Object[] builders = sling.getServices(ContentBuilder.class, null);

 

It requires to create "sling" object of type SlingScriptHelper first.

 

Unfortunately I cannot find the solution how to create such object. Does anybody know how to do this?

 

 

BR

Pawos

Event listener when a particular field value changes in dialog

$
0
0

Hi there,  Issue is that I need to change a jcr property when a specific field value is changed in dialog. Since all the fileds are modified / rewriten in jcr when the dialog is saved, i can not identify the modification on a particular field.

Encounter with "requested URL /dispatcher/invalidate.cache was not found on this server."

$
0
0

The dispatcher was working fine all along when suddenly none of my pages are being pushed to the dispatched when activated.

The dispatche agent reports that it's queue is block.

 

When i checked the logs, the following is repeated:

 

 

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

20.03.2013 12:34:08 - ERROR - flush : Replication (ACTIVATE) of /content/xxxxxxxxxx not successful. Conversation follows

20.03.2013 12:34:08 - ERROR - flush : ------------------------------------------------

20.03.2013 12:34:08 - ERROR - flush : Sending message to <ip-address>:80

20.03.2013 12:34:08 - ERROR - flush : >> GET /dispatcher/invalidate.cache HTTP/1.0

20.03.2013 12:34:08 - ERROR - flush : >> CQ-Action: Activate

20.03.2013 12:34:08 - ERROR - flush : >> CQ-Handle: /content/xxxxxxxxxx

20.03.2013 12:34:08 - ERROR - flush : >> CQ-Path: /content/xxxxxxxxxxx

20.03.2013 12:34:08 - ERROR - flush : >> Content-Length: 0

20.03.2013 12:34:08 - ERROR - flush : >> Content-Type: application/octet-stream

20.03.2013 12:34:08 - ERROR - flush : --

20.03.2013 12:34:08 - ERROR - flush : << HTTP/1.1 404 Not Found

20.03.2013 12:34:08 - ERROR - flush : << Date: Wed, 20 Mar 2013 04:34:08 GMT

20.03.2013 12:34:08 - ERROR - flush : << Server: Apache

20.03.2013 12:34:08 - ERROR - flush : << Vary: Accept-Encoding

20.03.2013 12:34:08 - ERROR - flush : << Content-Length: 344

20.03.2013 12:34:08 - ERROR - flush : << Connection: close

20.03.2013 12:34:08 - ERROR - flush : << Content-Type: text/html; charset=iso-8859-1

20.03.2013 12:34:08 - ERROR - flush : <<

20.03.2013 12:34:08 - ERROR - flush : << <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

20.03.2013 12:34:08 - ERROR - flush : << <html><head>

20.03.2013 12:34:08 - ERROR - flush : << <title>404 Not Found</title>

20.03.2013 12:34:08 - ERROR - flush : << </head><body>

20.03.2013 12:34:08 - ERROR - flush : << <h1>Not Found</h1>

20.03.2013 12:34:08 - ERROR - flush : << <p>The requested URL /dispatcher/invalidate.cache was not found on this server.</p>

20.03.2013 12:34:08 - ERROR - flush : << <p>Additionally, a 404 Not Found

20.03.2013 12:34:08 - ERROR - flush : << error was encountered while trying to use an ErrorDocument to handle the request.</p>

20.03.2013 12:34:08 - ERROR - flush : << </body></html>

20.03.2013 12:34:08 - ERROR - flush : Message sent.

 

My other dispatchers has the same problem and does not have the file "invalidate.cache".

I tried to create an empty invalidate.cache but it does not solve the issue either.

 

Must i really create a invalidate.cache or must i configure some document ?

Multiselect widget in CQ

sling:ResourceSuperType foundation/components/page

$
0
0

Hi Everybody,

 

I'm new to CQ and really enjoying it.  I have a question if someone can please help?

 

Can anyone help me understand how sling resolves a page component that has a resourceSuperType of  foundation/components/page ?  I created a page structure similar to the geometrixx pages, and have the following page component.

 

components/page/contentpage

body.jsp

content.jsp

footer.jsp

header.jsp

 

Therefore I discovered that I can override the body.jsp as this is the page selected by sling (I originally had contentpage.jsp).  Also using this structure I understand that if I have another template and page component I just extend the above "contentpage" component and override "content.jsp" keeping my web site structure (Nice!).

 

But what I don't understand is how how sling resolves to the body.jsp as the preferred script in the first place? Can anyone help me understand?

 

Thanks

Darren

creating custom tag library- AEM, CQ 5.6

$
0
0

Hi ,

 

I am creating a custom tag library and want to use it in one of the components I have created. I have made a bundle inside src/com.mycompany.test.TestBundle/com.mycompany.test.TestBundle.bnd and created my java tag class inside com.mycompany.test.TestBundle/src/main/java/com/mycompany/test/DateTagClass.java and the tld in com.mycompany.test.TestBundle/src/main/resources/META_INF/dateTaglib.tld. Here is the code for both the java tag class and the tld

 

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

tag class

 

 

package com.mycompany.test;

 

import java.io.IOException;

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

import javax.servlet.jsp.JspException;

import javax.servlet.jsp.JspWriter;

import javax.servlet.jsp.tagext.SimpleTagSupport;

/**

*

* @author ankit-chandrawat

*/

public class DateTagClass extends SimpleTagSupport {

   

    public void doTag() throws JspException, IOException {

    JspWriter out = getJspContext().getOut();

    out.println(getTodayDate());

    }

   

   private String getTodayDate() {

        DateFormat df = new SimpleDateFormat("dd MMMM yyyy");

        String formattedDate = df.format(new Date());

        return formattedDate;

    }

}

 

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

tld file

 

<?xml version="1.0" encoding="UTF-8"?>

<taglib version="2.1" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd">

 

  <tlib-version>1.0</tlib-version>

  <jsp-version>2.0</jsp-version>

  <short-name>date</short-name>

    <uri>src/main/resources/META_INF/dateTaglib.tld</uri>

  <tag>

    <name>todaysDate</name>

    <tag-class>com.mycompany.test.DateTagClass</tag-class>

    <body-content>empty</body-content>

  </tag>

</taglib>

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

I am trying to use it inside a component jsp that I have created as :

 

<%@taglib prefix="date" uri="src/main/resources/META_INF/dateTaglib.tld"%>

 

But with the above taglib include in place, all I see is a blank page. I am trying this on author and have not pushed it to publisher yet. I believe it is not able to recognize the tld. Could you please help me on this.

 

Thanks

Ankit

need to redirect to another page under content from inside a form.

$
0
0

Hi all,

 

I need to redirect to another page which is already present under the websites folder, from inside a form in a jsp...

 

 

my jsp s this :

 

 

<form action="/content/mypage">

                                            <input type = "button" value= "click here" class = "MyPage"/>

 

</form>

 

the class s for the css...

I had tried using "/content/mypage.html"

 

 

I am open to any ideas which would give me redirection other than using "a href"....here i am using a button...and the requirement s a button...:(

 

 

please help me out...

 

 

Regards and Thanks,

Heidi


servletengine Unable to send back last chunk: Software caused connection abort: socket write error

$
0
0

I have created a bundle for the class com.xxx.cq.wcm.foundation.profile.impl.TnailImages from the foundation file com.day.cq.wcm.foundation.profile.impl.ProfileImages.

Here are the changes I made ot this class

1. width and height for the default foundation class ProfileImages to have our own default width and height in TnailImages.

2. selectors changed to our own like

* @scr.property name="sling.servlet.selectors" values.0="adjust"

*                                              values.1="adjust.small"

 

3.   Variable changed to  private static final String THUMBNAIL = "small";

4. Metatype annotation won't compile for CQ5.5  I changed this  * @scr.component metatype="false"

       to

     * @Component(immediate = true)

 

This bundle compiled successfully and I see it in OSGi felix console, it is in start mode. Even then I did a restart of this bundle as well as whole CQ5.

When I call an image using the following tag

<img  alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg">

there are no spases anywhere

the servlet ThumbNailImages is not being call, I see the following error in error.log

servletengine Unable to send back last chunk: Software caused connection abort: socket write error

this image is not being displayed in the page, firebug displays failed to load URL

Default img works fine

<img  alt="" src="/content/dam/geometrixx/portraits/scott_reynolds.jpg.prof.thumbnail.jpg">

Class com.day.cq.wcm.foundation.profile.impl.ProfileImages is available in

/libs/foundation/src/impl/src/main/java/com/day/cq/wcm/foundation/profile/impl/ProfileImag es.java

Here are my annotations * @Component(immediate = true) * @scr.service * @scr.property name="sling.servlet.resourceTypes" value="nt:file" * @scr.property name="sling.servlet.extensions" values.0="res" *                          values.1="jpg" *                          values.2="png" *                          values.3="gif" * @scr.property name="sling.servlet.selectors" values.0="adjust" *                                              values.1="adjust.small" */ It seems that this servlet is not being called, when I invoke http://xyz.com:4502/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg I am getting 404 Cannot serve request to /content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg in org.apache.sling.servlets.get.DefaultGetServlet

3 (2013-05-20 11:02:40) TIMER_END{2,resolveServlet(JcrNodeResource, type=dam:Asset, superType=null, path=/content/dam/geometrixx/portraits/scott_reynolds.jpg)} Using servlet com.day.cq.dam.core.impl.servlet.BinaryProviderServlet 3 (2013-05-20 11:02:40) TIMER_END{2,ServletResolution} URI=/content/dam/geometrixx/portraits/scott_reynolds.jpg.adjust.small.jpg handled by Servlet=com.day.cq.dam.core.impl.servlet.BinaryProviderServlet

It seems that my Servlet TnailImages is not being called, it is always going to default servlet.

accessing/stroing file from/to DAm programatically

$
0
0

how do I write java code to upload a file in DAM ?

 

How Do I retrieve a file from DAM to save/export on local system. ?

Vaultclipse plugin

$
0
0

Has anyone got vaultclipse plugin working for Eclipse in windows machine.  I have it working just fine in Mac.

In windows, same configuration gives me filenotfound error when "import".  It looks like it exports in different folder and tries to import from different folder.

 

Any thoughts?

Provide alternative JSON renderer? Without losing default JSON renderer?

$
0
0

REQUIREMENT

Construct some custom JSON rendition of a page. For example: /content/site/page.my.json

 

And we want to accomplish this without losing the out-of-the-box functionality:

 

  • /content/site/page.html - WORKS OUT OF THE BOX
  • /content/site/page.json - WORKS OUT OF THE BOX

 

WHAT WE'VE TRIED

 

We've added a jsp to our global page template and named it my.json.jsp. This has given us this behavior:

 

  • /content/site/page.my.json - INVALID RECURSION SELECTOR (the request gets handled by default json renderer and "my" is not a valid recursion selector)
  • /content/site/page/_jcr_content.my.json - WORKS (we can see our custom json renderer working), but we have other reasons we cannot use this URI.

 

So we're nearly there. Next, we add "json" to the list of extensions that are treated with default resolution behavior, by going to felix config and editing the "Apache Sling Servlet/Script Resolver And Error Handler:
resolverconfig.png

 

By doing this, now our custom json WORKS, but we get the following results:

  • /content/site/page.my.json  - WORKS (our custom JSON renders)
  • /content/site/page.json - DOESN'T WORK (html is rendered rather than the default JSON renderer)

 

How can we provide this custom renderer at *.my.json without losing the functionality of the default  *.json renderer, necessary for dialogs in the page properties, etc.

 

Thanks!

cannot render resource resourceWrapper

$
0
0

running 5.4. we patched our publishing instance to the latest crx 2.2.73 and security updates and now we're getting this error:

 

23.10.2012 13:49:24.974 *ERROR* [127.0.0.1 [1351000164957] POST /content/usergenerated/content/sample-site/2012/submissions-test.form.html/content/sample -site/submissions/view HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource ResourceWrapper, type=foundation/components/form/actions/edit, path=/content/sample-site/submissions/view/jcr:content/body/start_0, resource=[JcrNodeResource, type=foundation/components/form/start, superType=null, path=/content/sample-site/submissions/view/jcr:content/body/start_0]

 

this is caused by a form used only to redirect to another page...

i have it as a edit resource(s) action type with a text field that the element name is :redirect and value is './edit'

which is the way it's done in the geometrixx site

 

still works on our authoring instance (which is up-to date with patching) but our publishing is getting this...

if someone could shed some light on this it would be much appreciated

CQ Version / Release

$
0
0

How do I tell what CQ version / release level a given instance is running?

QueryBuilder builder getting null

$
0
0

Hi

 

I was tried

 

......................................................

 

/**

* This class is an example ,Create selected users under a group

***/

@Component

@Service

@Properties({

        @Property(name = Constants.SERVICE_DESCRIPTION, value = "A sample workflow to sync image b/w servers."),

        @Property(name = Constants.SERVICE_VENDOR, value = "Adobe"),

        @Property(name = "process.label", value = "DAM Image SYNC with Image Server")})

 

public class ImageSync implements WorkflowProcess {

 

     @Reference

           private QueryBuilder builder;

 

           private static final Logger log = LoggerFactory.getLogger(ImageSync.class);

 

          public void execute(WorkItem item, WorkflowSession wsession, MetaDataMap metaData)

                              throws WorkflowException {

                    try{

                    // TODO Auto-generated method stub

 

                              //QueryBuilder builder = resource.getResourceResolver().adaptTo(QueryBuilder.class);

                              Session session = wsession.getSession();

                              Map<String, String> map = new HashMap<String,String>();

 

            map.put("path", "/content/dam/geometrixx");

                  map.put("type", "dam:Asset");

 

                  Query query = builder.createQuery(PredicateGroup.create(map), session);

 

                  //query.setStart(0);

                  //query.setHitsPerPage(20);

 

 

                  SearchResult result = query.getResult();

 

                  Iterator<Node> itr = result.getNodes();

 

                  while(itr.hasNext()){

                            Node node = itr.next();

                            log.info("Node Name : "+node.getName() +"- Path :"+node.getPath());

                  }

                  wsession.complete(item, wsession.getRoutes(item).get(0));

 

                    }catch (Exception e) {

                              // TODO: handle exception

                              log.error("Exceptions @@@ "+e.getMessage());

                    }

          }

 

 

}

 

 

Issue 1 :

 

If i use 

 

    @Reference

     private QueryBuilder builder;

Exceptions :

 

com.day.cq.workflow.impl.job.JobHandler Process implementation not found: com.test.ImageSync

 

Issue 2 :

 

If i use

 

     /**@scr.reference*/

     private QueryBuilder builder;

 

Exception :

[JobHandler: /etc/workflow/instances/2012-11-16/model_12901374305856:/content/fr] com.test.ImageSync Exceptions @@@ null

 

 

Can any one help , How can i use annotations for the Query Builder


After changing the context path, felix console, I can not checkout content via vlt.

$
0
0

Hi everyone,

 

I have the following issue. After changing the context path, via felix console, I can not checkout the content via vlt. Before that, I could checkout without any problems.

 

I am using CQ5.5, CRX2.3, context path: /Test

 

That is what I am trying:

 

vlt -v --credentials admin:admin co http://localhost:23310/Test/server/crx.default

 

Connecting via JCR remoting to http://localhost:23310/Test/server

[WARN ] Authentication required to access repository descriptors

[ERROR] checkout: com.day.jcr.vault.vlt.VltException: Unable to mount filesystem

caused by: javax.jcr.ItemNotFoundException: Not Found

caused by: org.apache.jackrabbit.webdav.DavException: Not Found

 

Other versions I tried:

 

vlt -v --credentials admin:admin co http://localhost:23310/crx

vlt --credentials admin:admin co http://localhost:23310/Test/server

vlt --credentials admin:admin co http://localhost:23310/Test

vlt --credentials admin:admin co http://localhost:23310/Test/crx

 

To verify if I could connect to the instance properly I started CRXDE

and try to connect to "http://localhost:23310/Test"

 

After click the ok button I got that error:

No file system is defined for scheme: jcr

 

Part of the .log file (.crxde):

eclipse.buildId=unknown

java.version=1.6.0_37

java.vendor=Apple Inc.

BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE

Framework arguments:  -keyring /Users/peterwimsey/.eclipse_keyring -showlocation

Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/peterwimsey/.eclipse_keyr

ing -showlocation

 

!ENTRY org.eclipse.core.resources 2 10035 2012-11-25 19:01:19.268

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to

recover changes.

 

!ENTRY org.eclipse.osgi 4 0 2012-11-25 19:04:14.363

!MESSAGE Application error

!STACK 1

java.lang.reflect.InvocationTargetException

        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)

        at com.day.cq.ide.CQDEApplication.start(CQDEApplication.java:62)

        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau

ncher.java:110)

        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav

a:79)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)

        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)

        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)

        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Caused by: org.eclipse.core.runtime.CoreException: No file system is defined for scheme: jcr

        at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:55)

        at org.eclipse.core.internal.filesystem.Policy.error(Policy.java:50)

        at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getFileSystem(InternalFileSys temCore.java:65)

        at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCo re.java:107)

        at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350)

        at com.day.cq.ide.fs.JCRFileSystemPlugin.registerExtensions(JCRFileSystemPlugin.java:100)

        at com.day.cq.ide.init.SetupWorkspaceOperation.initWorkspace(SetupWorkspaceOperation.java:16 6)

 

Any tips or hints are welcome.

 

In the case you need more information, just leave a note.

 

Thanks in advance for your help.

 

 

Best regards,

Peter

Send Email Using CQ API and custom template

$
0
0

Is is possible to send email using CQ API and custom template.

 

If yes how can i pass template as Subject

 

http://blogs.adobe.com/learningwem/2011/11/27/cq5-4-workflow-process-to-send-an-email-usin g-messagegateway/

 

I was followed this and able send email to the recipients .

 

But is it possible to send email CQ APi and custome email template ?

 

I was tried this using workflow process

................................................................................

public class SendEmailWorkflowProcess implements WorkflowProcess {

 

    @Reference

           private MessageGatewayService messageGatewayService;

   

    public void execute(WorkItem item, WorkflowSession wfsession,MetaDataMap metaData) throws WorkflowException {

 

 

              HtmlEmail email = new HtmlEmail();

 

         try{

               .......................

               ...................

               email.setTo( emailRecipients );

              email.setSubject( "This is subject");

              email.setHtmlMsg( "Email testing is on");

 

              String template = "/apps/cq/workflow/email/test/en.txt";

              Session session = wfsession.getSession();

 

              Resource templateRsrc = jcrResolverFactory.getResourceResolver(session).getResource(template);

 

              if (templateRsrc.getChild("file") != null) {

                 templateRsrc = templateRsrc.getChild("file");

              }

              if (templateRsrc == null) {

                 throw new IllegalArgumentException("Missing template:---------- " + template);

              }

             

              final MailTemplate mailTemplate = MailTemplate.create(templateRsrc.getPath(),

                      templateRsrc.getResourceResolver().adaptTo(Session.class));

           

                        email = mailTemplate.getEmail(StrLookup.lookup(properties,HtmlEmail.class));

      

              //Check the logs to see that messageGatewayService is not null

              log.info("messageGatewayService : " + messageGatewayService);

 

 

              messageGateway = messageGatewayService.getGateway(HtmlEmail.class);

 

 

              //Check the logs to see that messageGateway is not null

              log.info("messageGateway : " + messageGateway);

 

 

              messageGateway.send( email );

             }

          catch ( Exception e ) {

              e.printStackTrace();

              log.error( "Fatal error while sending email in workflow", e );

          }

 

 

     } 

 

 

    }

 

..............................................

 

If this is correct procedure ,

 

email = mailTemplate.getEmail(StrLookup.lookup(properties,HtmlEmail.class));

 

what value required for " properties "(properties can't be resolved)

 

All sugestions are accepted

Activation of page failing due replication

$
0
0

I am trying to activate camapign or articles but failed to do so. Earlier i used to do but facing below error:

Please help me to resolve.

ReplicationOptions{synchronous=false, revision='null', suppressStatusUpdate=false, suppressVersions=false, filter=null, aggregateHandler=null}

04.12.2012 04:04:26.989 *ERROR* [172.16.119.96 [1354611866971] POST /bin/replicate.json HTTP/1.1] com.day.cq.replication.impl.servlets.CommandServlet Error during replication: Unable to create version for /content/Intranet/News/2012/11/12112__lookbacktest (v2). com.day.cq.replication.ReplicationException: Unable to create version for /content/Intranet/News/2012/11/12112__lookbacktest (v2).

        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:293)

        at com.day.cq.replication.impl.ReplicatorImpl.replicate(ReplicatorImpl.java:317)

        at com.day.cq.replication.impl.servlets.CommandServlet.doPost(CommandServlet.java:109)

        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.ja va:148)

        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)

        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)

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

        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:334 )

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

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

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

        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.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:287)

        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.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)

        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 org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)

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

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

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

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

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

        at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)

        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:171)

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

        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.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:249)

        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:802)

        at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)

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

        at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)

        at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:150)

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

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

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)

        at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)

        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)

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

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

        at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)

        at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )

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

Caused by: com.day.cq.wcm.api.WCMException: Unable to create version.

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1145)

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1027)

        at com.day.cq.wcm.core.impl.VersionManagerImpl.preprocess(VersionManagerImpl.java:290)

        ... 64 more

Caused by: javax.jcr.version.VersionException: Node 0868d5ce-7c75-4db8-824d-40e392405820 has no version history

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.calculateCheckinVersionName (InternalVersionManagerBase.java:701)

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.internalCheckin(InternalVer sionManagerBase.java:637)

        at org.apache.jackrabbit.core.version.InternalVersionManagerBase.checkin(InternalVersionMana gerBase.java:610)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$4.run(InternalVersionManage rImpl.java:411)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl$DynamicESCFactory.doSourced (InternalVersionManagerImpl.java:713)

        at org.apache.jackrabbit.core.version.InternalVersionManagerImpl.checkin(InternalVersionMana gerImpl.java:407)

        at org.apache.jackrabbit.core.version.InternalXAVersionManager.checkin(InternalXAVersionMana ger.java:236)

        at org.apache.jackrabbit.core.version.VersionManagerImplBase.checkoutCheckin(VersionManagerI mplBase.java:188)

        at org.apache.jackrabbit.core.VersionManagerImpl.access$100(VersionManagerImpl.java:73)

        at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:122)

        at org.apache.jackrabbit.core.VersionManagerImpl$1.perform(VersionManagerImpl.java:115)

        at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)

        at org.apache.jackrabbit.core.VersionManagerImpl.perform(VersionManagerImpl.java:96)

        at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:115)

        at org.apache.jackrabbit.core.VersionManagerImpl.checkin(VersionManagerImpl.java:101)

        at org.apache.jackrabbit.core.NodeImpl.checkin(NodeImpl.java:2856)

        at com.day.cq.wcm.core.impl.PageManagerImpl.createRevision(PageManagerImpl.java:1093)

 

Message was edited by: Yogesh

Live Copy Properties not updating on Modify

$
0
0

Hi,

 

I'm creating a Mobile Site using the Live Copy feature.

 

I created a Live Copy, with a new MSM (triggered on Rollout), with "Edit Properties" that transforms the content resource type to my Mobile Components.  Works Great!

 

I wanted the Mobile content (Live Copy) to be updated when the author updates the content.  I tried creating a MSM which is triggered on "Modify" with the same Edit Properties.

What happens is that the updated content is copied but the Properties are not updated.  i.e. the Live Copy site content reverts to the resourceType of the Blueprint Site ... Not Good!

 

We are using CQ5.5 without any Service Pack applied.  It looks like this might be fixed with Service Pack 2.

http://dev.day.com/docs/en/cq/current/release_notes_service_pack_2.html

 

Is that correct?

 

Thanks

Received 409 (Conflict) for saving changes in workspace crx.default

$
0
0

When i creat a new jsp file and save the file  , i get the following error on CRXDE lite  :

 

Could not save changes. Received 409 (Conflict) for saving changes in workspace crx.default. This node already exists: /content/TrainingSite/contentpage.jsp

 

Can anybody please suggest the cause of the problem and the meaning of the code.

 

 

Thanks

Viewing all 12476 articles
Browse latest View live


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