This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Figured out why, sort of
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 04, 2013
11:10 AM
Output to STDERR is always in 3's
[LIST=1]
In the Log Settings area of the Project, I am redirecting STDERR and STDOUT to the log.
In JVM Settings, I goto the Installer Settings tab and add the following under Additional arguments, '-Dlax.debug.level=5 -Dlax.debug.all=true'
I am noticing my output is in triplicate. Ex:
When I am outputting this from my Java CustomCodeRule class, I am doing this:
where 'setIOE' is a function that sets some flags.
When I run this code in Netbeans, it is one of each. Only when I run it under InstallAnywhere do I get these triplicates. Is there something wrong with my extra arguments?
CfgWriter.write
I am noticing my output is in triplicate. Ex:
== INSTALLER ERRORS ============================================================================
Administrator privilege is required to run this software.
Please login as a user with administrator rights and then
run the installation.
Administrator privilege is required to run this software.
Please login as a user with administrator rights and then
run the installation.
Administrator privilege is required to run this software.
Please login as a user with administrator rights and then
run the installation.
== INSTALLER WARNINGS ============================================================================
Configuration Warnings not accessible because you don't have admin rights.
Configuration Warnings not accessible because you don't have admin rights.
Configuration Warnings not accessible because you don't have admin rights.
== INSTALLER INFORMATION =========================================================================
Configuration Information not accessible because you don't have admin rights.
Configuration Information not accessible because you don't have admin rights.
Configuration Information not accessible because you don't have admin rights.
When I am outputting this from my Java CustomCodeRule class, I am doing this:
PrintWriter CfgWriter;
try {
CfgWriter = new PrintWriter( Log, "UTF-8" );
CfgWriter.write( "== INSTALLER ERRORS ===========================================" );
CfgWriter.write( Errors );
CfgWriter.write( "== INSTALLER WARNINGS ==========================================" );
CfgWriter.write( Warnings );
CfgWriter.write( "== INSTALLER INFORMATION ========================================" );
CfgWriter.write( Info );
}
catch ( IOException ioe ) {
setIOE( ioe.getMessage );
}
where 'setIOE' is a function that sets some flags.
When I run this code in Netbeans, it is one of each. Only when I run it under InstallAnywhere do I get these triplicates. Is there something wrong with my extra arguments?
CfgWriter.write
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 04, 2013
05:41 PM
I was calling methods in my class to update the cumulative string, Errors. As soon as I perform those operations inside of evaluateRule, then the triplicate output goes away. What is it about calling a method to do the work that causes this?
--
Sandy
--
Sandy