Quantcast
Viewing all 12476 articles
Browse latest View live

ItemNotFoundException on server startup

There was some issues with repository so i copied a crx-quickstart dir and replaced with my existing repository and when i started up my server i see these errors

 

05.03.2012 11:27:33 *WARN * NodeIteratorImpl: Failed to retrieve query result node 2385f142-79e7-482a-a30c-e818a3dde35b (NodeIteratorImpl.java, line 200)

javax.jcr.ItemNotFoundException: 2385f142-79e7-482a-a30c-e818a3dde35b

        at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:372)

        at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:316)

        at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:610)

        at org.apache.jackrabbit.core.query.lucene.NodeIteratorImpl$FetchNext.perform(NodeIteratorIm pl.java:197)

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

        at org.apache.jackrabbit.core.query.lucene.NodeIteratorImpl.fetchNext(NodeIteratorImpl.java: 182)

        at org.apache.jackrabbit.core.query.lucene.NodeIteratorImpl.nextNode(NodeIteratorImpl.java:9 1)

        at com.cq.bundle.helpers.ProductPathResolver.reloadMaps(ProductPathResolver.java:127)

        at com.cq.bundle.helpers.internal.ProductPathCacheFlusherEventListener$Flusher.run(ProductPa thCacheFlusherEventListener.java:58)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

        at java.util.concurrent.FutureTask.run(FutureTask.java:138)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

 

Any infor as to why this would happen, and ny inputs/ thoughts of replacing crx-quickstart from a working env?

 

Thanks

Raj


Akamai integration

We have our public website that runs on CQ5.5. We want to do Akamai integration for the published content.

 

1. How is Akamai integration done in CQ5.5?

 

2. We want to akamai both the content and dam assets. Is the akamai integration different with content versus assets?

 

3. With content, the content on site is frequently updated and activated. That would invalidate the dispatcher cache everytime the change happen. How does Akamai rebuild its cache everytime the dispatcher cache is invalidated?

Insensitive search using query builder

Hi,

 

I want to convert below sql query so as to use for querybuilder .

 

select * from nt:unstructured where jcr:path like '/content/dam/company/project/data/%' and UPPER(ctn_no) LIKE 'HD%' or UPPER(family_name) LIKE 'HD%' order by jcr:score desc

 

I tried with below values from querybuilder component.

 

type=nt:unstructured

path=/content/dam/company/project/data

group.1_property=ctn_no

group.1_property.value=HD%

group.1_property.operation=like

group.p.or = true

group.2_property=family_name

group.2_property.value=HD%

group.2_property.operation=like

orderby=jcr:score

orderby.sort=desc

 

To do a case insensitive search, I am always converting input parameter to upper case so I can match that parameter with the value from CRX.

 

Please guide me if I am in right direction and how can I do case insensitive search using querybuilder with above approach.

 

 

Thanks,

Nishant Varandani

@Reference annotation causing customised servlet stop getting called

Hi guys,

 

I noticed that as soon as I add the @Reference annotation in my servlet, the sevlet will not be called when the form is submitted. As soon as I remove @Reference the servlet will be called. But the email will not function because @Reference is required to make the email to work.

 

I have the servlet registered and briefly it looks like below:

 

@Service(value = Servlet.class)

@SlingServlet(

                    resourceTypes = {"myapp/components/content/faqNewQuestions"},

                    methods = {"POST"},

                    selectors = {"email"},

                    extensions = {"html"}

                    )

 

@SuppressWarnings("serial")

public class FAQNewQuestionServlet extends SlingAllMethodsServlet {

 

@Reference

          private MessageGatewayService messageGatewayService;

 

@Override

    protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException

    {

              response.setContentType("text/plain");

              response.getOutputStream().print("FAQNewQuestionServlet is called");

    }

}

 

MessageGatewayService is imported through:

import com.day.cq.mailer.MessageGatewayService;

 

This package is added to the .bnd file under:

Import-Package: ..., com.day.cq.mailer, org.apache.felix.scr,org.apache.felix.scr.annotations,...

 

the faqNewQuestions.jsp (which lives under apps/myapp/components/content/faqNewQuestions) has a form looks like this:

 

<form method="POST" action="<c:out value="${resource.path}" />.email.html">

          <input type="text" id="email" name="email"/>

          <textarea name="question" id="question"></textarea>

          <input class="button" id="questionSubmit" type="submit" value="submit" />

</form>

 

I just keep getting 'Content modified' page rather seeing the "FAQNewQuestionServlet is called" I was expecting.

 

Content modified /content/my-trick/jcr:content/par/faqnewquestions

Status

200

Message

OK

Location/my-trick/_jcr_content/par/faqnewquestions
Parent Location/my-trick/_jcr_content/par

 

Really appreciate any inputs..

Listener beforeshow on textfield

Good afternoun,

 

I have a question about dialog listeners.

 

I have this widget definition inside of my dialog:

 

     <vanity

            jcr:primaryType="cq:Widget"

            collapsed="{Boolean}true"

            collapsible="{Boolean}true"

            title="Vanity URL"

            xtype="dialogfieldset">

            <items jcr:primaryType="cq:WidgetCollection">

                <vanityPath

                    jcr:primaryType="cq:Widget"

                    cls="cq-propsdialog-vanityurl"

                    fieldLabel="Vanity URL"

                    xtype="textfield">

                    <listeners

                              jcr:primaryType="nt:unstructured"

                              loadcontent="function(field, record, path){VanityPath.loadPath(field);}"

                   beforeshow="function(field){VanityPath.loadPath(field)}"

                              beforestatesave="function(field, state){VanityPath.copyResult(field);}"/>

                </vanityPath>

                <vanityPathFinal

                    jcr:primaryType="cq:Widget"

                    name="./sling:vanityPath"

                    xtype="textfield"/>

                <vanityPathRedirect

                    jcr:primaryType="cq:Widget"

                    fieldLabel="Redirect Vanity URL"

                    name="./sling:redirect"

                    type="checkbox"

                    xtype="selection"/>

            </items>

        </vanity>

 

The beforeshow is not working and I cannot find what is the right definition.

 

Thank you for the help.

ADOBE AEM-Ford -http://hostname:9692/content/geometrixx/en/company.html

Hi,

 

I am from Ford.We are using ADOBE AEM.

 

Have installed the adobe aem and changed the  jar as  cq5-author-p9692.jar.

 

This is in the Linux environment.

 

Started the adobe aem using the quickstart.sh and it started.

I am able to access the below url

 

http://hostname:9692/system/console/vmstat?

 

But the below url is not accessible .Should any configuration change be made for this

 

http://hostname:9692/content/geometrixx/en/company.html

 

 

========================================================================================== =====

in the error.log :

 

03.07.2013 04:22:57.430 *ERROR* [19.237.168.106 [1372839777429] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: AuthenticationSupport service missing. Cannot authenticate request.

03.07.2013 04:22:57.431 *ERROR* [19.237.168.106 [1372839777429] GET /favicon.ico HTTP/1.1] org.apache.sling.engine.impl.SlingHttpContext handleSecurity: Possible reason is missing Repository service. Check AuthenticationSupport dependencies.

========================================================================================== ======

 

Please let me know where I hane made the mistake  or modifications required in the any of the configurations file.

 

Regards,

Sakthi

Auto complete a dropdown menu in a cq5 dialog based on input from a previous dialog field

My custom CQ5 component has a dialog which consists of 2 drop down menus. I would like to automatically set a default value to second menu depending on whatever is the value selected from the previous drop down.

How can I achieve this?

Remove .html

Hi,

 

Is there any simple way to remove .html of only one content page? Thanks,


how to determine Dispatcher is working with CQ5 Publish instance.?

Hi all create author and publish instance for CQ5 site, when author modify any content over the site these are replicated on publish instance successfully, now i want to use dispatcher so for this i have configured that with publish instance in IIS as described in the article  CQ Dispatcher IIS Set Up - CQ Tutorials. now i want to check Dispatcher is working or not for publish instance. and what it is doing for CQ5 publish instance

How to create pagination in CQ5

Hello,

 

Sub- Component for CQ5 pagination

 

I have a static webpage and having static pagination and I want to create pagination in CQ5.

Ex. page having 5-5 product on each page and each product is authorable by author and same component I want to develop in CQ5.

Please let me know is there any component available in CQ5 or how we can do this in CQ5

 

Image may be NSFW.
Clik here to view.
pag.JPG

 

 

Regards,

CQ5.5 Session Timeout

Hello,

 

We would like to change the session timeout value for the Author server so that if an Author doesn't do anything for 30 minutes the CQ session expires.  Seems the default is several hours.

How do I make simplesearch look for the same tag in multiple locations

Currently i'm trying to write a simplesearch implementation that will only return the result it if contains a specific tag. I would also like to include DAM assets in the search, wherein lies the problem:

 

I need to look in both jcr:content and jcr:content/metadata for the tag, and if the tag is found in either location, return that page. Here is the code I am trying to use, but it currently only looks for the tag(s) in one location. Any tips on how to get it to look in multiple locations?

Code:

 

 

 

                    tagPredicate = new Predicate("tags2", "tagid");

                    tagPredicate.set("property", "jcr:content/cq:tags");

                    for (Cookie cookie : tagsFromCookie) {

                                   if (cookie.getName().contains(CREDENTIALS)) {

                                                  tagPredicate.set("tagid",

                                                                      (cookie.getValue().replaceAll("---", ":")));

                                                  search.addPredicate(tagPredicate);

                                   }

                    }

 

Thanks for any help you can give!

How to return .xml file with requested and formatted data as Replication process result?

Hi,

As described in the title I'd like to send formatted xml to given url after replication process. I see that there are 3 types of serialization by default (Default, Dispatcher Flush and Static Content Builder). How can I provide my own Serialization Type to build xml file in the requested format with requested data?

 

BR,

Pawos

Strange thing happening when trying to override login page

Hi all,

 

I'm probably approaching this in the wrong way.

 

I'm trying to override and customize the login page, and eventually override and customize the welcome page.

 

I have tried to copy/paste /libs/cq/core/content/login to /apps/cq/core/content/login

 

Every time I get an error "Could not copy node. Received 404 not found"

 

If I try to save a newly created login node, I get a conflict error. "Could not save changes. Received 409 (Conflict) for saving changes in workspace crx.default./apps/cq/core/content

 

My thoughts behind taking this approach is that generally you can override the libs folder using the apps folder.

 

Any hints for how I can go about what I want to do?

I have requirement of opening an PDF file iframe where user can view pdf file.

I have requirement of opening an PDF file iframe where user can view pdf file. Does CQ provide any utility for that?

User should be able to click on any randon page that should be directed to PDF viewer page . Here if acrobat reader is not installed on user's machine , a link should come to download the acrobat reader


How to inject TokenAuthenticationHandler object in custom AuthenticationHandler?

Hi all,

 

I have requirement to get the user logged-in in CQ from encrypted password. In order to achieve this, I have created a custom authentication handler is to decrypt user's encrypted password and then generate AuthenticationInfo Map for authentication. So I have overrided extractCredentials method to solve this problem.

I need to inject TokenAuthenticationHandler object in my custom CustomAuthenticationHandler which implements AuthenticationHandler.

I require this to call the authenticationSucceeded method of TokenAuthenticationHandler in my custom AuthenticationFeedbackHandler to generate login-token cookie for CQ authentication.

I tried to inject TokenAuthenticationHandler as service by reference but dint work. I also tried to inject by interface AuthenticationHandler which always injects Day CQ LoginSelectorHandler.

I also tried to extend my CustomAuthenticationHandler to TokenAuthenticationHandler in order to call its authenticationSucceeded method. The call does takes place, but it refers to attributes of my CustomAuthenticationHandler instead of TokenAuthenticationHandler.

 

So I am not able to successfully call the authenticationSucceeded method of TokenAuthenticationHandler to generate login-token.

 

Any way to inject TokenAuthenticationHandler in my custom Authentication Handler will be really helpful.

Any other solution/approach to decrypt password and get the user login in CQ will also be helpful.

 

Thanks,

Vatsal

Why I can't see the ClientContext button in sidekick?

I can see that in sidekick on geometrixx demo page. But in the pages created with my template, I can't see the ClientContext button. What did I miss?

 

Thanks,

Jackrabbit search jcr repository on multiple paths using single query

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.

CQ5 Trial

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

CQ search and Apache Tika

I have a requirement to be able to allow the website users to search within the content of pdf and word docs. The site is planned to be built on CQ5.5. I belive CQ integrates with Apache Tika (look for full text extraction at http://dev.day.com/docs/en/crx/current/developing/searching_in_crx.html ) to achieve this.

 

I polling this group to check if we have used this feature in any other project. How good or bad it is ? Any lessons learnt from it.

 

Also have we successfully used any of the other features that the native lucene search in CQ provides . I am specially interested in spell check, stemming, synonym matching, similarity matching.

 

Thanks in advance for all your responses.

Viewing all 12476 articles
Browse latest View live


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