Questions tagged [java]

Java is an object-oriented language and runtime environment (JRE). Java programs are platform independent, because they are compiled to bytecode and their execution is handled by a Virtual Machine called the Java VM or JVM.

Filter by
Sorted by
Tagged with
3
votes
1answer
130 views

Efficient way of getting list of EntityModel (Java, DXA 2.0)

We have a page that queries entities with certain criteria. The way we implement it is by getting list of entity IDs, loop the IDs retrieve the entity model per ID and add it into the list. Pseudo ...
3
votes
4answers
9k views

Debugging in IntelliJ gives "Address localhost:1099 is already in use" error

I am running a Tridion based (DXA) JAVA web application in IntelliJ. The Run/Debug configuration is based on the standard Local Tomcat server settings. When I stop the debugging session and start ...
1
vote
1answer
61 views

Read timed out at executing executeEntityQuery()

I am working on a query that excludes items based on the value of one of its metadata. The problem is that sometimes I get the result, but sometimes not. Error stack trace shows the following: com.sdl....
4
votes
1answer
84 views

Which CIL contains which classes?

Is there any list which references which CIL contains which classes? Official CD API documentation states which class is in which package, but not which class is in which .jar file. This is really ...
3
votes
0answers
144 views

DXA Java 2.0: How do I access a field value in a component linked in DXA page metadata?

In order to avoid translating pages we've added a linked component in our page metadata. I've created a custom page model: @Data @SemanticEntity(entityName = "MyPageModel", vocabulary = ...
2
votes
1answer
36 views

Registering view for MediaItem (DXA 2.0.3, Java)

We have a Download entity which extends MediaItem. The download link is used inside RichText component. This is how the class looks like: @Data public class Download extends MediaItem { @Override ...
5
votes
1answer
86 views

Retrieving KeywordModel metadata inside component model of a nested category/keyword (DXA 2.0.3, Java)

I've been trying to retrieve the metadata value of extended entity of KeywordModel on DXA 2.0.3 with no luck. My component is called kennisitem with the following schema: Kennisitem has a metadata ...
3
votes
1answer
97 views

Cache configuration for Java CIL Web 8.5

In the official documentation for CIL caching for Java, it is stated how to turn on caching and how to point it to a custom config file, but there isn't any additional information on what the actual ...
1
vote
1answer
54 views

Prevent this error from appearing due to invalid page requests

In Tridion 2013 we are getting generic exception for the pages that do not exist in the website. Is there a way to prevent generic errors due to invalid page requests? Thanks.
2
votes
3answers
91 views

Tridion Java/Node/Python API to create and publish a new taxonomy programmatically

I need to create and publish a new taxonomy that has more than around 1000 entries. This a laborious task if I have to do it manually. I'm new to the technology and community. So, wonder if I can get ...
3
votes
1answer
61 views

Ambient Data Filter Performance Issue

We are experiencing page load times between 5-15 seconds (sometimes more) when applying a small load of approximately 40 users to our web application. This is for a simple page with just one static ...
5
votes
1answer
123 views

Publishing fails in the deployer with `Timeout waiting for parallel processing`

We have a Tridion 9 deployer (receiver and worker) with some custom code that is having occasional failures in the Deploying phase. The failures are random and after some persistent republishing, the ...
4
votes
0answers
63 views

SmartTarget Promotion Query Randomly Throws Exception

We have SmartTarget implemented on a page which has multiple regions. To facilitate this we have multiple SmartTarget query tags sitting on the .jsp page to perform the queries and fill in the page ...
2
votes
0answers
37 views

Why Does the DXA Webapp Fill the WebSphere Class Cache to 100%?

We have a DXA 2.0 Java webapp built and deployed on a WebSphere environment. It runs perfectly fine the majority of the time, however, every 23-25 hours (seemingly regardless of load) our JVM would ...
2
votes
0answers
36 views

Not able to start workflow of bundle using CoreService in Java

I am able to start workflow of bundle using CoreService in .Net with the below code: StartWorkflowInstructionData startWorkflowInstruction = new StartWorkflowInstructionData(); ...
11
votes
0answers
153 views

How to populate servletPath for CID Filter on WebSphere? (java.lang.StringIndexOutOfBoundsException)

We have the CID Filter setup on a Java webapp that was recently upgraded to CIL 8.5. To do so, we setup the following filter in our Web.xml: <filter> <filter-name>CID filter</...
4
votes
1answer
69 views

Using PageContentFilter and BinaryContentFilter in 8.5

We have implemented PageContentFilter and BinaryContentFilterin Tridion 2013 SP1 because we serve pages from custom filesystem location with following code: public class BinaryContentFilterWrapper ...
2
votes
1answer
103 views

Web 8.5 Tridion API special characters error with dynamic page links

When there are special characters in linkText attribute, Java application using 2013 Tridion renders the link text and link without issues. When the same pageLink is being rendered in 8.5 Tridion, the ...
1
vote
0answers
67 views

Adding SDL Web 8.5 CIL maven dependency in JAVA REST Web service is throwing exception

I am trying to create a RESTful Web Service using Jersey (I am new to Java). When I add the jersey dependencies in pom.xml, it worked fine. But when I am trying to add SDL Web 8.5 CIL maven ...
0
votes
1answer
102 views

Demo project for SDL Web 8.5 Core Service

I need a full Java project setup for Core Services to get Component details by using Java program
2
votes
1answer
56 views

Enable remote JMX monitoring for DD4T webapp

With your help I was able to increase the Java Heap Space of our .NET DD4T webapplication (Tridion 2013 SP1). Now we want to monitor it because the Java Heap Space is a black box for us. Now we know ...
2
votes
1answer
127 views

DXA 1.8 "BinaryData" files is not creating under \dxaWeb\BinaryData\publication-id\system\config\ when I build dxaWeb app

I have upgraded DXA 1.5 to DXA 1.8, Java 1.7 to 1.8. Deploying in Tomcat 9 server. The BinaryData files is not creating under \dxaWeb\BinaryData\publication-id\system\config\ when I build DXA web app. ...
1
vote
2answers
101 views

DXA(Java) upgrade 1.5 to 1.8, Java 1.7 to 1.8 & spring 3.1.4 to 4.3.0 - Failed to start

I have upgraded DXA(Java) 1.5 to 1.8, Java 1.7 to 1.8 & spring 3.1.4 to 4.3.0 - I can able to compile successfully but when I start to execute my app in tomcat 9 am getting runtime exception: ...
3
votes
0answers
57 views

Can I access the "Item" custom meta (metadata fields) in a Storage Extension?

I am trying to determine whether I need to process anything in my Storage Extension depending on certain fields in the item metadata. (I am extending all 3, Page, ComponentPrensentation and Binary ...
1
vote
0answers
74 views

Java : Unable to use multiple discovery / content svcs when using content-client-api JAR

First a little background… In our current Java Services, we have one called “Query”. This service starts up, connects to a Discovery Svc using discovery-client-lightweight at which point we are able ...
1
vote
0answers
217 views

Missing KeywordModelData from a Dynamic Component using Session Content Model

We use SDL Web 8.5 + DXA 2.O for Java. Is it available somewhere the API for the CIS? We want to retrieve the keywords from a component that it's linked to a dynamic component presentation, but ...
0
votes
1answer
39 views

Render Component Presentation cd_dynamic 7.1.0 error: cannot access Page

I've got a compilation error with the following lines: JSPPage dcdPage = new JSPPage(pageContext, pageId); ComponentPresentationAssembler cpAssembler = new ComponentPresentationAssembler(dcdPage); ...
3
votes
0answers
88 views

Constructor in one of the classes in deployer-web-extension-8.5.0 throws ClassCastException. Is there a patch available?

I was recompiling some of our custom deployer extensions (originally built for SDL 2013) with the SDL Content Delivery 8.5 jars, and one of the constructors of the class ItemDeploySchemaManager in ...
4
votes
0answers
146 views

How to get all Component Presentations with all Custom Meta in single ODATA query?

I am trying to get all the Component Presentations and corresponding Custom Metas by applying a filter on a specific meta. I have formed the query and I am getting the required information I need by ...
4
votes
3answers
555 views

DXA versus pure DD4T based approach

Although I have not downloaded DXA reference implementation yet, I have worked with DD4T/MVC before. From the documentation, it seems that DXA is just a wrapper on top of DD4T, with Experience Manager ...
3
votes
0answers
54 views

TaxonomyKeywordKeyCriteria ignores publication Id

I'm using TaxonomyKeywordKeyCriteria to find Components that have a related Keyword. I only have the Keyword key and not the TCM URI. My code: Criteria criteria = new TaxonomyKeywordKeyCriteria(...
2
votes
1answer
40 views

Linux and JBoss: Clustering software recomendation

We have to build a new architecture and we calculated that we will need four presentation servers. We are using Java to develop our website and we will deploy it to Jboss under a linux platform. We ...
6
votes
2answers
136 views

DD4T 2 Ehcache settings: DD4T-Objects vs DD4T-Dependencies

The ehcache.xml file expects settings defined for "DD4T-Objects" and "DD4T-Dependencies". In a typical implementation what percentage volume of items might we expect to be in the DD4T-Objects cache ...
0
votes
2answers
68 views

OData WebService (java) giving Error Result - Tridion 2013 SP1

OData Webservice base url http://myserver:11090/cd_webservice/ws/odata.svc hit on browser working fine; results below: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <service xml:...
5
votes
1answer
94 views

Page Metadata Component Link

I have a Component Link in the Metadata Section of a Page. I cannot see the content of this Component in the Page JSON which is published to the Broker DB. Is it possible to get the content of the ...
4
votes
2answers
154 views

How to put Multiple values with Multiple Schemas into DD4T-2-Java

Inside Tridion 2013-SP1 with DD4T template 2.0.8 I have a Schema with one Field: Foobar of Type Component Link Allow Multiple Values Allowed Schemas {Foo, Bar} Within Java DD4T 2.0.4 created a ...
0
votes
2answers
112 views

DD4T 2 Java java.lang.ClassCastException

I have a page class defined as below (I've removed all custom fields). public class TwoColPage extends PageImpl { //TODO: metadata fields } In my JSP I have <jsp:useBean id="pageModel" type="...
2
votes
0answers
56 views

Accessing an embedded schema in a components meta data with the Java API

I've encountered an issue with the Java API that has me scratching my head. I have created a component with a metadata of which one field is a multi value embedded schema. I'm trying to access it to ...
3
votes
1answer
134 views

DD4T-2 Strongly-typed Page Metadata Component Links

I'm working on an implementation that has "configuration" components attached in page metadata (as component links) for things like navigation visibility, SEO fields - etc. This is so the ...
2
votes
0answers
85 views

How to convert ResolveInstructionData object in to JAXBElement object in Java? [duplicate]

I am trying to set the JAXBElement in to the PublishInstructionData using the below function but getting the error on runtime as Exception in thread "main" com.sdltridion.contentmanager.coreservice....
3
votes
1answer
102 views

When is JuggerNET bridge initialized?

I have a Tridion 2013SP1 Content Delivery .net web-application. In its global.asax, I am attempting to make a call that requires the JuggerNET bridge to be initialized (e.g. new PageFactoryMeta()). I ...
2
votes
1answer
67 views

Getting error while fetching Category and keywords as xml using core-service in java

I have tried the following code to get xml. void getListXml(ICoreService endpoint, String myUri) throws Exception { TaxonomiesFilterData filter = new TaxonomiesFilterData(); Element ...
3
votes
1answer
218 views

Problems about migrating Java(Broker API) from Tridion 2011 SP1 to SDL Web 8

One of our customers is using Tridion 2011 SP1, and they will upgrade it to SDL Web 8. Now there are custom Java modules which are made by using Broker API(Tridion 2011 SP1), and it's necessary to ...
3
votes
2answers
221 views

Error occurs on DXA 1.4 Java, probably related to Context Service

I'm using following versions. SDL Web 8 DXA 1.4 I set up following services. PageContentFilter and BinaryContentFilter are disabled in web.xml, so Preview service is not used. Discovery Content ...
1
vote
2answers
125 views

DXA Java render embedded image in RTF

When creating content in a RTF field you have the option to insert tables and images. An Image is added to the RTF field with a fixed with of 100%. How can we manipulate that ? <p> <img ...
1
vote
1answer
789 views

Need help on display as jsp extension in web page using tridion web 8 and dd4t (version2)

I am trying to display the page as .jsp instead of .html in the url but I run into issues. Any ideas or help would be great appreciate. Everything is working fine with .html In the tridion, i save ...
2
votes
1answer
83 views

Where to add page meta entries

In DXA Java 1.4 in the page a list of <c:forEach var="meta" items="${pageModel.meta.entrySet()}"> <meta name="${meta.key}" content="${meta.value}"> </c:forEach> Is there in the ...
3
votes
1answer
266 views

Error in upload Image to SDL Tridion using SOAP API 2013 and CXF (Java)

We are trying to upload an image using SDL Tridions SOAP API using Apache's Java CXF. And we are stuck during the creation of a component data component with binary content with this error message: ...
2
votes
1answer
41 views

DXA throws warning: Entity of type webapp.model.entity.RichContent does not contain a field named Content

In DXA 1.4 (Java) in my logs I see the following warning: 12:04:35.304 [http-apr-8080-exec-6] WARN c.s.w.common.impl.markup.MarkupImpl - Entity of type webapp.model.entity.RichContent does not ...
1
vote
1answer
64 views

SDL DXA Java 1.4 - Missing dd4t dependencies

I'm trying to run the branch develop for the project web-application-java in github using the 2013sp1 profile. However, when installing the app with maven all the dxa dependencies can not be found ...