XML-23006: (Error) value does not match required type
Many of the XSL templates that were working for a long time started failing after upgrading to XSL 2.0.
Almost of all of the failing XPath expressions were identified to be not absolute expressions(starting with //).
The problem was eventually identified to be what certain XPath expressions returned - node or node set -
difference between XSL 1.0 and 2.0 behavior. Wherever an XPath expression, such as "string(//ns1:elemX)", returned a node set in XSL 2.0 led to a run time error. The same expression returned the first matching node when XSL 1.0 was used and did not trigger an error.
This is how the above expression was rewritten to fix it with XSL 2.0
string((//ns1:elemX)[1]) - Note that this expression is entirely different from string(//ns1:elemX[1]) which would return a node set as opposed to the first node.
Tuesday, December 14, 2010
Monday, November 15, 2010
Windows batch script as CVS commit trigger
Windows batch script, as a commit trigger, to prevent check ins for a CVS branch.
@@echo off
if exist CVS\tag (set /p TAG=<CVS\tag) else (set TAG=THEAD)
if ["%TAG%"] equ ["T%1"] (echo Cannot commit to %1 branch. && exit 1)
exit 0
@@echo off
if exist CVS\tag (set /p TAG=<CVS\tag) else (set TAG=THEAD)
if ["%TAG%"] equ ["T%1"] (echo Cannot commit to %1 branch. && exit 1)
exit 0
Friday, November 12, 2010
Apache Rewrite Rule for outage notification.
Apache rewrite rule to redirect all application specific URLs to an outage page during maintenance. Make sure that modules/mod_rewrite.so module is loaded and turned on.
...
RewriteEngine On
...
Also make sure that this rule is ahead of any other rules in the conf file.
...
RewriteRule (^/context.*$|^/cxt2.*$) /outage/reason.html [R,L]
....
R - to send HTTP redirection.
L - this is the last rule to be evaluated.
...
RewriteEngine On
...
Also make sure that this rule is ahead of any other rules in the conf file.
...
RewriteRule (^/context.*$|^/cxt2.*$) /outage/reason.html [R,L]
....
R - to send HTTP redirection.
L - this is the last rule to be evaluated.
Tuesday, August 3, 2010
Creating PDF995 printer again
We noticed that PDF995 Printer set up on a server may go missing some times after a RDP (remote desktop) session despite of having unchecked "Printers" under "Local Resources" (RDP properties).
You may be able to create it manually as follows.
You may be able to create it manually as follows.
- Make sure c:/windows/pdf995.ini has the settings as needed. If this file is empty, see whether you can get a copy from c:/program files/pdf995/res/pdf995.ini that you can modify appropriately.
- Launch "Add Printer" wizard.
- Select "Local printer attached to this computer", uncheck "Automatically detect and install ..."
- Select "PDF995PORT (local port)" for "Use the following port:"
- Ignore listed Manufacturer and Printers, but click on "Have Disk ...".
- Navigate to c:/Program Files/pdf995/res/convert to select "ghostpdf.ini".
- Change printer name to PDF995.
- Complete printer set up.
- Make the new printer as the default printer, if necessary.
- Find the printer in "Printer and Faxes", click on properties to go to "Advanced tab" as shown.
- Select "PDF995 Printer Driver" under "Driver" as opposed to any reference to Ghostscript.
- Click OK to complete printer configuration.
- Print a text file, from Word Pad, to PDF995 printer to make sure it shows up as a PDF file under "My Documents". If the file does not show up, then the printer set up likely not working.
Thursday, May 20, 2010
ORABPEL-04003 error in OC4J 10.1.3.4
If you are running into this error when you click on the "Activities"
tab in the standalone(olite based) instance of Oracle BPEL
Console(10.1.3.4), then it is due to a missing column, namely
process_guid, in "admin_list_wi" view.
You can create the view again by running the following.
create or replace view admin_list_wi
as select wi.cikey, wi.node_id, wi.scope_id, wi.count_id,
wi.creation_date wi_creation_date, wi.creator wi_creator,
wi.modify_date wi_modify_date, wi.modifier wi_modifier,
wi.state wi_state, wi.transition,
wi.exp_date, exp_flag, wi.priority wi_priority,
wi.label, wi.custom_id, wi.comments, wi.reference_id,
wi.execution_type,
ci.domain_ref as ci_domain_ref,
ci.process_id process_id, ci.revision_tag revision_tag,
ci.process_guid process_guid,
ci.title title, ci.root_id, ci.parent_id, fault_name,
index_1, index_2, index_3, index_4, index_5, index_6
from cube_instance ci, work_item wi, wi_fault fault, ci_indexes indexes
where ci.cikey = wi.cikey (+)
and fault.cikey (+) = wi.cikey
and fault.node_id (+) = wi.node_id
and fault.scope_id (+) = wi.scope_id
and fault.count_id (+) = wi.count_id
and indexes.cikey (+) = ci.cikey ;
tab in the standalone(olite based) instance of Oracle BPEL
Console(10.1.3.4), then it is due to a missing column, namely
process_guid, in "admin_list_wi" view.
You can create the view again by running the following.
create or replace view admin_list_wi
as select wi.cikey, wi.node_id, wi.scope_id, wi.count_id,
wi.creation_date wi_creation_date, wi.creator wi_creator,
wi.modify_date wi_modify_date, wi.modifier wi_modifier,
wi.state wi_state, wi.transition,
wi.exp_date, exp_flag, wi.priority wi_priority,
wi.label, wi.custom_id, wi.comments, wi.reference_id,
wi.execution_type,
ci.domain_ref as ci_domain_ref,
ci.process_id process_id, ci.revision_tag revision_tag,
ci.process_guid process_guid,
ci.title title, ci.root_id, ci.parent_id, fault_name,
index_1, index_2, index_3, index_4, index_5, index_6
from cube_instance ci, work_item wi, wi_fault fault, ci_indexes indexes
where ci.cikey = wi.cikey (+)
and fault.cikey (+) = wi.cikey
and fault.node_id (+) = wi.node_id
and fault.scope_id (+) = wi.scope_id
and fault.count_id (+) = wi.count_id
and indexes.cikey (+) = ci.cikey ;
Monday, March 8, 2010
Altiris as Search provider in IE
Here is the URL for Altiris (6.0.xxxx) Web Interface to find an item.
(Refer to the following post to install a new search provider in IE.)
https://<altiris.server>/Altiris/NS/default.aspx?cmd=viewItem&id=TEST
(Refer to the following post to install a new search provider in IE.)
https://<altiris.server>/Altiris/NS/default.aspx?cmd=viewItem&id=TEST
Thursday, January 21, 2010
JIRA as a search provider in IE
If you are using JIRA, issue tracking and project management software, here is what you can do to install it as a search provider in IE.
Instead of going to JIRA every time to do a quick search, all you have to do is type in a key word and select "JIRA" as the search provider to trigger a search within JIRA.
Click on the drop down box next to search box, in IE, to select "Find More Providers ...".
IE presents a list of Web and Topic search providers along with "Create Your Own".
In the URL box under "Create Your Own", type in the following with the hostname of your JIRA server.
http://_JIRAHOST_/secure/QuickSearch.jspa?searchString=TEST
Type in "JIRA" as the search provider name.
Click "Install".
You do not have to go to JIRA to start a search anymore.
Instead of going to JIRA every time to do a quick search, all you have to do is type in a key word and select "JIRA" as the search provider to trigger a search within JIRA.
Click on the drop down box next to search box, in IE, to select "Find More Providers ...".
IE presents a list of Web and Topic search providers along with "Create Your Own".
In the URL box under "Create Your Own", type in the following with the hostname of your JIRA server.
http://_JIRAHOST_/secure/QuickSearch.jspa?searchString=TEST
Type in "JIRA" as the search provider name.
Click "Install".
You do not have to go to JIRA to start a search anymore.
Subscribe to:
Posts (Atom)