Frequently Asked Questions Frequenty Asked Questions

FAQs

Here you will find commonly asked questions of the ResCarta support team...

Latest JAVA supported version is  1.8.0_131-b11

 

The most asked question concerns the use of 32bit JAVA on a 64bit machine.  It you are using a 64bit operating system, download the 64bit JAVA from Oracle.  The current url for JAVA 8 is.

http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html    Take care not to update to unsupported versions

During the installation of the ResCarta Toolkit you will see that the installer selects 32bit or 64bit options based on your installed JAVA. If you run 32bit JAVA on a 64bit machine you will get poor performance and have access to only one gigabyte of memory.

Most ResCarta problems over the years involve early untested releases of JAVA by Oracle. See the history of releases at wikipedia.  If you see a release date within a day or two of another release date, chances are you will be experiecing some malfunction.  We advise updating JAVA only if you need to do so for some known reason.

https://en.wikipedia.org/wiki/Java_version_history#Java_SE_8

 

 

 

Images gone when doing a search (2012-10)

When I browse items I can then open the imageviewer and see them.  But when I do a simple search and open a resulting object the image does NOT display.  I get a red line where the image should be. What's up with that?

This is due to an update to your JAVA jre.

 

Looks like a problem with the newest JAVA 1.7.0_07 (b11) in the 32bit version only. We have downloaded the 32bit, the 64bit and the Java Development kit (jdk) The 32bit version of (build 1.7.0_07-b11) is missing the JPEG decoder/encoder so when you go to overlay the color highlights on the page the program will fail

 

 

You can look in your log file to see if there is something like the

following ++++++++++++++++++++++++++++++++++++++++++++

Can't load standard profile: PYCC.pf

ResCarta-Web: Sorting metadata...(Done)

java.lang.IllegalArgumentException: Can't load standard profile: PYCC.pf

at java.awt.color.ICC_Profile.getInstance(Unknown Source)

at java.awt.color.ColorSpace.getInstance(Unknown Source)

+++++++++++++++++++++++++++++++++++++++

This code is not missing in  Oracle 64bit JAVA, or Linux or MAC versions. It also is not missing in the Oracle 32bit Windows Java Development Kit version.

 

The fix would be to  uninstall your Oracle JAVA  1.7.0_07 (b11)  32bit JRE  and replace it with the Oracle  32bit JDK

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

OR if you are running the Windows 7 64bit operating system.

 

The Cure would be to first uninstall your ResCarta tools 3.1.0, Uninstall your 32bit java. Use the 64bit IE browser and go to JAVA.COM and let the installer install a new 64bit version of Java then reinstall your ResCarta Tools 3.1.0.

(2012-10-03)

The Handle is Invalid

Windows7 with i7 processor gives error "The handle is invalid." while converting data.

When running systems with multiple core processors and lots of memory, you may have to tune your system for best performance by controlling the memory allocated to the Data Conversion tool in the "C:\Program Files\RcTools-3.0.#\bin\RcDct.l4j.ini" file  and the number of cores allowed by .RcTools\config\RcSystem.properties file in the users home directory.

If you encounter a "The handle is invalid" "error during processing, open the RcSystem.properties file and edit the number of cores from "0" to 2. See the line "org.rescarta.dct.maxThreads=0" and change this to "org.rescarta.dct.maxThreads=2".  Remove the directory that the Data conversion tool created in your RCDATA01 directory with any number of files that may have completed.  Restart the Data Conversion tool.

You should notice a reduction in speed of conversion but the conversion should complete.

To regain use of multiple cores, increase your system ram allowed in the "C:\Program Files\RcTools-3.0.#\bin\RcDct.l4j.ini" file.  Change the default "-Xmx1G" to  80% of your available memory.  So if you have 8gigs of ram change this to "-Xmx6G"  or six gigabytes.  Then increase the number of cores from "2" above until you can consistently process your data.

There is a dance that takes place during conversion between the processors and the number of files in a directory and the limit of usable memory.  In the  image below you can see two resulting RCDATA01 directories.  The one on the left used Six cores and Six gigs of ram while the one on the right used two cores and one gig of ram.  See the difference in the times of creation of the directories?  Six cores took 16 minutes while the two cores took 26 minutes to process the same raw data.

 

core error screen shot

ResCarta tools version 3.0.1 and above ship with a one gigabyte memory setting and the system core setting at "0" .  This works best for lower powered machines but can cause problems with more powerful systems.

Write us if you find this faq doesn't clear up your "handle" problem. This email address is being protected from spambots. You need JavaScript enabled to view it.

 

Ghostscript Hangs

When converting some pdf files my data conversion tool hangs and gives no error in the error logs.

This is a change in Ghostsrcipt in the 64bit windows version. The output warning that the file being converted is not created according to the PDF standards in now being directed to an error level. This causes the data conversion to wait for Ghostscript while Ghostscript waits for the data conversion tool.  We have released a corrrection in version 3.0.3 of the ResCarta Toolkit.

 

Changing the browse sort

The default sort for the RcWebBrowse.jsp page is by TITLE only, how can I change that?

The line of jsp code that controls the sort is listed below.

Collections.sort(l, ArmadilloSearcher.ARMADILLO_DOCUMENT_COMPARATOR);

The standard TITLE search is written into ArmadilloSearcher.ARMADILLO_DOCUMENT_COMPARATOR

To change the sort we need to create a new Comparator and include the java.util.Compator in our imports.

Add the following bolded line to your imports area by opening your RcWebBrowse.jsp file in an editor.  Looking at the start of the file you should find the following lines,  Add the bold line below (remember to add the , at the end of the line).

 

<jsp:directive.page language=\"java\"
contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\"
import=\"
java.util.Arrays,
java.util.Collections,


java.util.Comparator,

java.util.Enumeration,
java.util.Hashtable,
java.util.Iterator, ...

 

then replace the default Comparator with a new one.  Find the following line of code in the RcWebBrowse.jsp file and comment it out or delete it.

Collections.sort(l, ArmadilloSearcher.ARMADILLO_DOCUMENT_COMPARATOR);

 

At the same spot in the file add the following lines of code...

Comparator c = new Comparator()

{

public int compare( Object o1, Object o2 )

{
final String comp1 = ((ArmadilloDocument)o1).getTitle().trim().toLowerCase()+((ArmadilloDocument)o1).getPubDate().trim().toLowerCase()+((ArmadilloDocument)o1).getVolume().trim().toLowerCase();
final String comp2 = ((ArmadilloDocument)o2).getTitle().trim().toLowerCase()+((ArmadilloDocument)o2).getPubDate().trim().toLowerCase()+((ArmadilloDocument)o2).getVolume().trim().toLowerCase();
return comp1.compareTo( comp2 );
}
};

Collections.sort(l, c);

To reflect the same sort in the RcWebImageViewer.jsp page

add the java.util.Comparator, as above

<jsp:directive.page language=\"java\"
contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\"
import=\"
java.util.Arrays,
java.util.Collections,

java.util.Comparator,

java.util.Enumeration,
java.util.Hashtable,
java.util.Iterator, ..

 

Then find and replace the line

Collections.sort(rcAr2DocLst, ArmadilloSearcher.ARMADILLO_DOCUMENT_COMPARATOR);


with

//Collections.sort(rcAr2DocLst, ArmadilloSearcher.ARMADILLO_DOCUMENT_COMPARATOR);
//Default title sort
Comparator c = new Comparator()
{
public int compare( Object o1, Object o2 )
{
final String comp1 = ((ArmadilloDocument)o1).getTitle().trim().toLowerCase()+((ArmadilloDocument)o1).getPubDate().trim().toLowerCase()+((ArmadilloDocument)o1).getVolume().trim().toLowerCase();
final String comp2 = ((ArmadilloDocument)o2).getTitle().trim().toLowerCase()+((ArmadilloDocument)o2).getPubDate().trim().toLowerCase()+((ArmadilloDocument)o2).getVolume().trim().toLowerCase();
return comp1.compareTo( comp2 );
}
};
Collections.sort(rcAr2DocLst, c);
// End of new comparator sort on Pubdate and Volume

The code lines above takes the TITLE and adds the PublicationDate and Volume to the sort. This is useful for serial publications where the TITLE is the same but the items may have been added to the collection out of order.

 

We will incorporate this into the next version of ResCarta-Web as an option in the WEB-INF/web.xml file. Until then enjoy!!!