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

DAM not generating thumbnails

$
0
0

Hi,

 

When I try to upload images to digital assests interface in CQ5.5, it is uploading the file, but doesn't generate thumbnail image. I tried to check crx-quickstart/logs, but there is nothing logged in there. Could someone please help me what are other configurations/logs I need to check to find the cause of this thumbnail generation problem?


SQL2 | How to add condition on multi-value field?

$
0
0

Hello,

 

I am trying to perform a JCR query using SQL2 in CQ5.6. For one of the conditions, I wish to compare a multi-value field (E.g. cq:tags).

 

How would that be possible? Currenlt, I only managed to compare my query item's cq:tags to a single value (e.g. WHERE page.[cq:tags]='mynspace:mytag').

 

Also, is there a syntax reference for SQL2 queries? Currently I have only managed to find something tanglible here : http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/test/resources/or g/apache/jackrabbit/spi/commons/query/sql2/test.sql2.txt?view=markup

 

Best regards, thanks in advance,

K.

LDAP set up with CQ 5.5

Multiple smartimage widgets in a component dialog

$
0
0

Is there a way to have multiple smartimage widgets in a single dialog? Specifically I'm struggling with the requestSuffix parameter. Most of the other ones I can adapt to get the second widget to save its info to a different location from the first, but I can't see how to do that with requestSuffix. If the values are the same for both widgets, then once an image is selected, I see the same image in both tabs of the dialog. If I change it to something like /image2.img.png, it's no longer hitting the component as the resource. If I change it to .image2.img.png, the script handling this selector appears to break. I might be able to change that script, but that doesn't seem like it'll be a very flexible approach.

 

Any other options? I'm in CQ 5.4 if that matters.

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

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.

Windows Service failing to start

$
0
0

Hello Everyone,

 

I'm trying to run CQ 5.6.1 as a service on Windows Server 2008 R2 SP1 64-bit.

 

I've replaced prunsrv in instsrv.bat with prunsrv_amd64.

 

Installing the service seems fine, as does uninstalling.

 

This is the kind of entry I see in my c:\CQ\5.6.1\publish\crx-quickstart\logs\commons-daemon.2013-07-11.log file after I try start the service:

 

[2013-07-11 15:45:10] [info]  Commons Daemon procrun (1.0.8.0 64-bit) started

[2013-07-11 15:45:10] [info]  Running 'cq5' Service...

[2013-07-11 15:45:10] [info]  Starting service...

[2013-07-11 15:45:10] [error] Failed creating java

[2013-07-11 15:45:10] [error] Cannot create a file when that file already exists.

[2013-07-11 15:45:10] [error] ServiceStart returned 1

[2013-07-11 15:45:10] [error] Cannot create a file when that file already exists.

[2013-07-11 15:45:10] [info]  Run service finished.

[2013-07-11 15:45:10] [info]  Commons Daemon procrun finished

 

The corresponding entry in the Event Log shows the following:

 

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

  <System>

    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />

    <EventID Qualifiers="49152">7024</EventID>

    <Version>0</Version>

    <Level>2</Level>

    <Task>0</Task>

    <Opcode>0</Opcode>

    <Keywords>0x8080000000000000</Keywords>

    <TimeCreated SystemTime="2013-07-11T19:45:10.423634500Z" />

    <EventRecordID>7164</EventRecordID>

    <Correlation />

    <Execution ProcessID="516" ThreadID="1356" />

    <Channel>System</Channel>

    <Computer>cqpub-02</Computer>

    <Security />

  </System>

  <EventData>

    <Data Name="param1">cq5</Data>

    <Data Name="param2">%%0</Data>

  </EventData>

</Event>

 

This same behavior is exhibited across three separate servers each with their own installation of CQ (one as an author and two as publish).

 

Any ideas what could be going wrong or where I can find more detailed information about where and what is trying to create a "java" file?  Is the start-service.bat used at all?

 

Thanks!

Garth

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


RepositoryException during serialization

$
0
0

Hi,

we are using CQ5.4 and in one of our environments I see that both replications queues are active but have over 2k of pending items (for activation and deactivation)

 

One the replication logs shows a lot of the following error:

 

ERROR - agent2 : Error while building replication content com.day.cq.replication.ReplicationException: RepositoryException during serialization

 

The other queue log does not any errors.

 

 

Any idea what could have caused this,

 

Thanks,

Lior


CQ5: User Accounts & Persistent Managers: LARGE NUMBERS (50M)

$
0
0

Hi,

I am designing a user registration application. I need to architect this so that it could store support upto 50 million (i.e. 50,000,000) user records or registrations.

 

I read some documentation that JackRabbit (the underlying CRX repository) does not appear to support flat content hierarchies i.e. you'll start seeing problems when you put more 10k child nodes under a single parent. Is this true?

 

I can see in CQ5, that there is a ‘home’ folder that contains a ‘user’ folder. Here there are folders in alphabetical order ‘a’, ’b’,‘c’….’z’. These folders store the user email id’s based on the first alphabet of the email. So there seems to be an attempt to possibly create a deeper hierarchy. However, even with this approach, we are looking at about (averages) 2M child nodes - is this supportable?

 

Is the default TarPM (Tar Persistence Manager) the best options for such large amounts of data? Or should we be considering RDBMS based persistence managers?

 

Any inputs / thoughts / suggestions would be greatly appreciated.

 

Thanks
karan

How to set aspect ratio options for Image Dialog

$
0
0

I have a requiment to create a new Aspect Ratio for image crop, besides the only default option of Free Crop

cropdialog.png

 

I understand that there was some path where you could set this up in CRX, prior to 5.5, but that path doesn't exist in 5.5. The path was /libs/cq/packaging/components/pack/definition/dialog/items/tabs/item s/tab3/cropConfig

 

I found this out from this forum question:http://forums.adobe.com/message/4575600#4575600

 

Where in CQ5.5 Can I set these aspect ratios? I've queried the entire CRX for nodes of similar names as in this path, but cannot find it anywhere.

 

Thanks guys!

CSS Issues: Center Align for image component, 2 column component, form fields

$
0
0

I have 3 issues which I think are CSS issues but I may be wrong

 

  1. How can I bring label and input type side by side in a form. Right now when I add a text field the label is always above the field
  2. I need to show images in the center. I have tried to create a component with a div and text-align set to cetner but nothing seems to be working the image is ALWAYS left aligned on the content area.
  3. I have 3 templates. And in one of the templates when I all a 2 column component it shows vertical blocks occupying the entire width (and yes I have included the css code) for the others it works fine

 

Any help will be great.

 

Thanks

No cache invalidation when statsfilelevel > 0 and JCR Resource Resolver URL Mapping being used

$
0
0

IF  :

  • JCR Resource Resolver [1] is used to allow requests missing the initial /content

       AND

  • Dispatcher has a /statsfilelevel greater than 0

 

THEN

 

     It is impossible for dispatcher to invalidate the cache.

 

 

EXAMPLE:

 

  1. Content in CRX has /content/mysite/mylanguage/mypage
  2. Request comes in to dispatcher for /mylanguage/mypage.html
  3. CQ serves /mylanguage/mypage.html successfully
  4. Dispatcher saves the cache at /mylanguage/mypage.html
  5. Author server sends activation request for /content/mysite/mylanguage/mypage
  6. Dispatcher recieves the activation request and touches stat file at :
    1. /content
    2. /content/mysite
    3. /content/mysite/mylanguage
  7. Request comes in to dispatcher for /mylanguage/mypage.html
  8. The stat file at /mylanguage has never been touched, and statsfilelevel > 0, so /mylanguage/mypage.html is considered valid
  9. Dispatcher returns the cached file at /mylanguage/mypage.html

 

I have seen this suggestion from DAYCARE [2], but it says to rewrite the URL so that the cache is still stored in full context. We can't do this for multiple technical reasons, and so I'm wondering if, instead, there is a way to make the {path} variable in the extended replication agent options [3] intelligent enough to strip activation path URI based on URL Mappings, the same way the Link Rewriter rewrites links based on these exact settings. We really need the activation path to change rather than the request path in the web server.

 

 

[1]: Go to http://localhost:4502/system/console/configMgr and click Apache Sling JCR Resource Resolver. Then add a URL Mapping such as /content/mysite/-/

 

[2]: http://dev.day.com/content/kb/home/cq5/CQ5SystemAdministration/HowToFlushMappedContent.htm l

 

[3]: Go to http://localhost:4502/etc/replication/agents.author/flush.html , click edit, and go to Extended tab

how to add values to multi valued properties using JSP

$
0
0

Hi,

 

I am able to use a multi valued property in JSP which is populated manually using CRXDE. I am able to set the multi valued property only by completely replacing it, but not by appending values to it.

 

Can you please help me to append values to the multi valued property?

 

Thanks in advance,

Rajesh.

Issue with unbinding of configurations from old jars

$
0
0

Hi,

 

We have a setup where we deploy some of the business services and configurations (Java code) into CQ5 so that they can be managed through Apache console.

We are facing a problem where if we deploy a new version of the jar, the configurations still continue to get binded with the old version of the jar and we need manually unbind and bind the configurations.

 

We have tried the following but in vain:

Deleting the old jars from /apps/<application name>/install folder.

Deleting the bundles from the Apache console and deploying the new jars

 

Please note that we do not have any custom activators for the bundles, but rather rely on OSGi dependency management to start up the services and configurations.

 

What I wanted to check with the group is if someone has faced a similar issue and if you are aware of the resolution for the same.

 

Ashish


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"

                 }]

            }

        ]

    }

});

BadRequestException: header exceeds 8192

$
0
0

We use IIS with enabled Kerberos authentication.

 

This issue occur when the user is a member of many Active Directory user groups. When a user is a member of a large number of active directory groups the Kerberos authentication token for the user increases in size. The HTTP request that the user sends to the CQ server contains the Kerberos token in the WWW-Authenticate header, and the header size increases as the number of groups goes up.  If the HTTP header or packet size increases past the limits configured in CQ, CQ reject the request and send this "Bad Request" as the response.

 

*WARN* [10.6.18.198 [1362405622189] <parse>] servletengine Bad request. com.day.j2ee.servletengine.BadRequestException: header exceeds 8192 bytes

        at com.day.j2ee.servletengine.ServletHandlerImpl.checkSpace(ServletHandlerImpl.java:644)

        at com.day.j2ee.servletengine.ServletHandlerImpl.parseRequest(ServletHandlerImpl.java:613)

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

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

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

 

 

http://forums.adobe.com/message/4632810

In CQ 5.4 it was possible to change header size in server.xml, but in CQ 5.5 CQSE is a bundle.

How to increase header size in CQ 5.5 ?


/libs/cq 404 error

$
0
0

I am getting a 404 for my pages when trying to download the userinfo.json and dict.en.json from /libs/cq folder.  What causes those two files to be included?

Package Manager "no space left on device" when trying to build a package

$
0
0

I get an error when trying to build new packages in the package manager: "no space left on device".  I have deleted the old packages, but I still get this error.  How do I fix this problem?

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

Viewing all 12476 articles
Browse latest View live


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