Posts in Category "LiveCycle"

The WebSphere server hangs while shutting down the WebSphere Cluster

When a user attempts to shut down WebSphere Cluster on which LiveCycle is deployed, the WebSphere server hangs occasionally and the following error message appears in the log:

000002f5 SystemOut     O cache has closed down , no further access allowed !,  exception caught in inserting  data in cache : CLUSTER_INVALIDATION_CACHE key: GLOBAL_PREFERENCES_UPDATE_TIMESTAMP_KEY value : null exception :com.adobe.livecycle.cache.CacheActionException: Cache container closed; normal during shutdown, error during runtime – Error on GET action for cache Replicated:CLUSTER_INVALIDATION_CACHE
 
000002f5 SystemOut     O  exception caught in inserting  data in cache : CLUSTER_INVALIDATION_CACHE key: GLOBAL_PREFERENCES_UPDATE_TIMESTAMP_KEY value : null exception :com.adobe.livecycle.cache.CacheActionException: Cache container closed; normal during shutdown, error during runtime – Error on GET action for cache Replicated:CLUSTER_INVALIDATION_CACHE

Reason

This error occurs because a child thread of the cache disconnect routine is hanging and therefore the servers do not respond to the shutdown command from the WebSphere Administration Console.


Solution

To stop the LiveCycle ES servers from the WebSphere Administration Console successfully:

  1. Log in to the WebSphere Administrative Console and, in the navigation tree, click Servers > Application servers and then, in the right pane, click the server name.
  2. Under Server Infrastructure, click Java and Process Management > Process Definition.
  3. Under Additional Properties, click Java Virtual Machine and add or configure following JVM argument:-Dadobe.cache.controlled-shutdown-disabled=true
  4. Click Apply.
  5. Click OK and then click save directly to the master configuration.
  6. Repeat steps 1-6 on each node of the cluster.
  7. Restart the cluster.

Now, the WebSphere server shuts down successfully.

Unknown Format Error on Submitting a PDF from the Adobe Acrobat

I am working on a project that requires submitting the content of the PDF document as a stream to a Servlet. For the most part, the project works fine – the form is posted by the Acrobat/Reader, the server receives the file, creates a local copy and processes it correctly. After the post is successfully received, the last step on the server is to send a reply to the Acrobat/Reader. On not receiving a reply, the Adobe Acrobat/Reader throws an unknown format error.

unknownerror.jpg

Reason of the problem is that the Adobe Acrobat/ Reader expect a return from the servlet and the application server was not generating a response that Acrobat/Reader understands. To remove the error message, the servlet should return a properly constructed FDF and the URL of the submit button should end with #FDF.

Note: I am using Adobe LiveCycle Designer; I believe you can use Adobe Acrobat to achieve the same result.

Here are the exact steps to remove the error:

  1. Open your XDP form in LiveCycle Designer.
  2. Select the Submit button.
  3. Either in the Design View or in the Source view, edit submit to URL to add #FDF at the end of the URL.
  4. Save the XDP.
  5. In your Java project, create a plain-text file and add the following content:
    %FDF-1.2 1 0 obj << /FDF << /Status (Your message goes here.) >> >> endobj trailer << /Root 1 0 R >> %%EOF
  1. Replace “Your message goes here.” with the text you want to display.
  2. Save the file. For this example, let us save the file as returnresponse.txt
  3. Import returnresponse.txt to your Java project.
  4. Add the following code to your servlet:
    servletresponse.setContentType("application/vnd.fdf");
    response.setHeader("returnresponse.txt", "The file has been submitted sucessfully");

    The Java code sets the MIME type of the response in the “Content-type” HTTP header to “application/vnd.fdf“.

  5. Run the program and you should not experience the error again.