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.

22 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11 votes
0 answers
178 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</...
Nicholas Wetmore's user avatar
4 votes
0 answers
76 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 ...
Nicholas Wetmore's user avatar
4 votes
0 answers
151 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 ...
Yash's user avatar
  • 916
4 votes
0 answers
240 views

How to deserialize component data to model instance on DD4T Java version 2

I'm implementing DD4T Java version 2. I saw following article. http://blog.trivident.com/2014/12/introducing-dd4t-version-2-0-for-java/ According to this article, it's possible to deserialize ...
Hirokazu Shikata's user avatar
3 votes
0 answers
170 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 = ...
Jonathan Primmer's user avatar
3 votes
0 answers
59 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 ...
Jaime Santos Alcón's user avatar
3 votes
0 answers
90 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 ...
Arier's user avatar
  • 328
3 votes
0 answers
58 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(...
Guskermitt's user avatar
  • 1,297
3 votes
0 answers
84 views

Unable to setup DD4T 1.31 project

I have followed the steps from https://code.google.com/p/dynamic-delivery-4-tridion/wiki/31_Quickstart at step number 6 Add projects to Eclipse In your Eclipse, add the folders under \java as Eclipse ...
Harish Sharma's user avatar
3 votes
0 answers
98 views

How to use XML as content on DD4T 2 Java version

I'm implementing DD4T 2 java version. This version of DD4T uses JSON as published content by default, but I want to use XML instead of JSON, because of weird behaviour of component's keyword field. I ...
Hirokazu Shikata's user avatar
3 votes
0 answers
144 views

Nonstandard options in jvm.xml

In the jvm.xml file there are already some settings given as an example. <Option Name="-Xmx" Value="50m"/> <Option Name="-Xms" Value="20m"/> <Option Name="-Dfile.encoding" Value="UTF-8"...
Katarina Stojanovski's user avatar
2 votes
0 answers
65 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 ...
Nicholas Wetmore's user avatar
2 votes
0 answers
43 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(); ...
Prashanthi Pothuru's user avatar
2 votes
0 answers
62 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 ...
Kris Trygg's user avatar
1 vote
0 answers
40 views

Tridion Sites10 presentation server error

We use Tridion Sites9 with DD4T java and are going to upgrade to Sites10. We move Sites9's web application modules to the sites10 presentation server and replace sites9's jar files with sites10's jar ...
Yayoi's user avatar
  • 11
1 vote
0 answers
72 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 ...
GVK's user avatar
  • 505
1 vote
0 answers
83 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 ...
Todd Perlmutter's user avatar
1 vote
0 answers
230 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 ...
tfinez's user avatar
  • 1,234
1 vote
0 answers
51 views

Content Delivery Java API 2013SP1 objectcache Tomcat does not shutdown

We use the Java content delivery API on Tridion 2013SP1 with ObjectCache enabled. When running as a Java web application on Tomcat 7, we notice the Tomcat server will hang on shutdown when we have the ...
Kees van den Hoek's user avatar
1 vote
0 answers
43 views

XSLT error after setting up dd4t with java

We have setup DD4T with java as per URL https://code.google.com/p/dynamic-delivery-4-tridion/wiki/31_Quickstart We have ported the content porter package from https://github.com/dd4t/dynamic-delivery-...
Harish Sharma's user avatar
1 vote
0 answers
96 views

When unpublishing component using DCP, how to get component's custom meta data using java based deployer extension?

I have a deployer extension written in java in which I have customised logic for generating some PDF files based on condition check during publishing of component using DCP. We have named the PDF ...
user2198112's user avatar
1 vote
0 answers
161 views

Not able to get the metadata of the component through java Broker API code

I am trying to get the metadata of the component published to broker. Here is the code snippet - Note :- in docIds[i] i have the component Ids. ComponentPresentationFactory compfac = new ...
user584's user avatar
  • 1,140