Code Analyzer
I am currently using CF 4.5 on a Windows 2000 server and am
trying to migrate to MX7 on Windows 2003. The code analyzer does
not seem to want to analyze code on a remote server, so after I
installed developer version and copied all the files over to the
new server, not only could I not analyze the code, I couldn't use
the CF Administrator because I had overwritten new files with old
files which had tags that MX7 could not interpret.
Is there a better way to copy all of my files over and anlyze
the code without going through myself, directory by directory? I
fear that if I do this then I won't copy over old code that I need,
but that might not run with MX7 and just needs to be rewritten.
I've already uninstalled and reinstalled MX7 to get the
correct base files, and I only want to copy the old code once more,
I'd like to get it right. Please let me know if you have any ideas
or suggestions.
Thanks!
We did a similar upgrade and I think you should run every
page. We had a lot of issues with dates. I have read on these
forums that others have had issues with cfinsert/cfupdate.
Similar Messages
-
Real code analyze bar in code editor
Hello all,
I talked with one of developer download the JDev, he told me that he saw a real code analyzing bar in code editor, somehow, it went away, he could not find that anymore, and he think that is great feature.
Any one have seen it? Do you know how to set that up?
Thanks.
Yanlong SunYanlong Sun,
Please explain what a "real code analyzing bar in the code editor" is.
andy
JDev team -
Any source code analyzing documents about ifolder?
Hi,guys
these days we want to do some work on ifolder.So,the first step is to analyze the source code,but I just found : simias: Class List
do you have any related documents? prefer the overall architecture of ifolder.
if you have,please share me one copy,thank you very much!Try the free Metalogix Content Matrix tool. It is good for up to 25GB.
http://www.metalogix.com/Products/Content-Matrix/Compare.aspx
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
On our build system, we use the global setting to code analyze all projects. One of our projects is a C# WIX custom action. This projects causes the build to fail with:
EACustomInstallActions.CA.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format.
The ...CA.Dll target seems to be created by a WIX custom action. Does anybody have already encountered this issue and found a workaround?
Full build output:
<target name="ContractDeclarativeAssemblyCS" success="false">
<message level="normal"><![CDATA[Build Declarative Contract Assembly for C# D:\EA_MAIN_DB\AMI\bin\Debug\GEHealthcare.Isip.EACustomInstallActions.dll]]></message>
<message level="high"><![CDATA[C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /pdb:obj\x86\Debug\Decl\GEHealthcare.Isip.EACustomInstallActions.pdb /errorreport:prompt /warn:0 /define:DEBUG;TRACE;CONTRACTS_FULL;CODE_ANALYSIS /reference:"C:\Program Files\Windows Installer XML v3\SDK\Microsoft.Deployment.WindowsInstaller.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.ConnectionInfo.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Management.Sdk.Sfc.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Smo.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.SqlWmiManagement.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /addmodule:D:\EA_MAIN_DB\AMI\src\radstore\Installer\EACustomInstallActions\obj\x86\Debug\GEHealthcare.Isip.EACustomInstallActions.CA.dll /debug+ /debug:full /filealign:512 /keyfile:..\..\Common\EAKeyPair.snk /optimize+ /out:obj\x86\Debug\Decl\GEHealthcare.Isip.EACustomInstallActions.dll /target:library /warnaserror- ..\..\Common\GlobalAssemblyInfo.cs CustomAction.cs Properties\AssemblyInfo.cs Resource1.Designer.cs SqlServersSelector.cs SqlServersSelector.designer.cs "C:\Program Files\Microsoft\Contracts\Languages\CSharp\ContractDeclarativeAssemblyAttribute.cs"]]></message>
<error code="CS0009" file="CSC"><![CDATA[Metadata file 'd:\EA_Main_DB\AMI\src\radstore\Installer\EACustomInstallActions\obj\x86\Debug\GEHealthcare.Isip.EACustomInstallActions.CA.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. ']]></error>
</target>This problem appears to be ongoing 5 years after this thread was started. I have just run into it.
When WiX builds a custom action, the build proceeds as normal and produces a managed code output, say MyCustomActions.dll. Windows Installer doesn't support managed code in custom actions, so the managed code has to be wrapped in an unmanaged native code
wrapper, so in a post-build step, it injects the managed output into the unmanaged wrapper and _that_ then becomes the project's build output and will be named MyCustomActions.CA.dll. I believe that Code Contracts may be trying to open the unmanaged wrapper
file and discovering that it is not managed code ("invalid format").
In order for CCRewrite to work here, it would need to run on the managed code _before_ it gets wrapped in the unmanaged wrapper. I am not sure how we can hook into the build process to get that to happen.
It might be possible to somehow make a WiX Custom Action project by creating a standard C# class library, which would work correctly with CCRewrite, then somehow performing the WiX packaging as a post-build step. I'm not sure what is required though, exactly.
Any ideas?
--Tim Long
Tim Long -
[OO Concept] Make a parent class perform code after constructor calls?
Hello,
I want to do something like this:
class Parent {
Parent(){
// do some parent stuff
private void postConstruction(){
// parent and all subclasses have completed construction, now do some post-construction code
// analyze some of the child construction stuff
class Child extends Parent{
Child(){
// do some child stuff
public static void main(String[] args){
Child child = new Child();
}I assume I am having this problem because of bad OO design. What would be the problem way to design this so that the parent can check the values of its members after all of its subclasses have been constructed?
Thanks..You can certainly call the postConstruction() method from your Parent constructor. But then (as you can see) it will be called before anything in your Child constructor. Bad design? Yes, bad design of the Java language in my opinion. It should have allowed the user to control the order of initialization more. But it doesn't. So you can't do that. Which basically means you can't use the constructor to construct your objects. You'll have to call some other method where you aren't required to call super.postConstruction() at the beginning.
-
Upgrade from ColdFusion6 to Cold Fusion8 -- Required Code Changes
Hi ,
We recently upgraded to CF8 from CF6. SOem of the functionalities are not working as expected.
For Eg: if we click on the button it shoudl tak eus to other page ,but after upgrade its staying in the same page.
I suspect <cfform> tag method attribute. we are using method attribute with "Get" method. Not sure how to fix the issue.
Can any body help on that how can we find what are the required chanegs we need to make in the code so that it will compatiable with CF8?
Is there any way to run the whole code and see required changes? I know the code analyzer it is just fid the syntax errors. i feel that it didn't help me much.
Regards
sudha.As a thumb rule, if a HTML form is meant to make any "changes" to any data, backend, etc., you should always use the POST method. Only in cases where the form post simply fetches a page without altering anything anywhere, GET can be justified.
When using GET, form values may get transported into the URL scope.
Debug the URL and FORM scope for the variables which dictate the action that happens.
Another thing to check, if you still have problems when using POST instead of GET:
What is the exact target page you're posting to, _with_ url parameters? Does it have url parameters?
In addition, does the form have hidden fields which could have the same parameters?
It's a typical mistake to accidentally have a page "page.cfm?area=3&action=get", having also a hidden input "get" with some other value, and posting the page to itself with all current url parameters. The url value of "action" may override the one coming from the form.
I faintly remember the behaviour of ColdFusion changing at some point, when this happens.
-Fernis - fernis.net - ColdFusion Developer For Hire -
I need to analysis code [code review] for a single page in a project.
In VS I get option to analyse entire solution [My project solution no has 10 project] or by project wise. There I did't find any option to analyse a single page.
Every time its not possible to run code analysis for whole project as some project have 1000+ files.
Please guide me how to run analyse a single page.
Thanks for your replay in advance...
RHi SCRana,
The code analyze tool is used for projects and the whole solution, not for a specific page, if you just want to analyze one project in your solution, please select it with your mouse in solution explorer window, and then you could get the option under
"ANALYZE" menu like "Run code analysis or Code Metrics for the Console app".
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Visual Studio 2013 Code Analysis Exception CA0055: Could not load assembly
I am trying to run the Code analysis on Web Project in VS2013 but i am getting the exception CA0055.
I took a look at the log file. Here is the exception information which is getting logged.
<Exception Keyword="CA0055" Kind="AssemblyLoad">
<Type>Microsoft.FxCop.Common.AssemblyLoadException</Type>
<ExceptionMessage>Could not load MyProject.dll.</ExceptionMessage>
<InnerType>System.NullReferenceException</InnerType>
<InnerExceptionMessage>Object reference not set to an instance of an object.</InnerExceptionMessage>
<InnerStackTrace> at Phx.Metadata.ReaderImplementation.CreateTokenMap()
at Phx.Metadata.MetadataLoader.GetModule(String fileName, FileInfo fileInfo, AssemblyUnit unit)
at Phx.Metadata.MetadataLoader.GetAssembly(String fileName, AssemblyUnit unit)
at Phx.Metadata.MetadataLoader.LoadAssemblyDefinition(AssemblyUnit unit)
at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.ProcessWorklist(MetadataLoader metadataLoader, Boolean ignoreErrors)
at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAttributeType(AggregateType type, MetadataLoader metadataLoader)
at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAttributes(List`1 attributes, MetadataLoader metadataLoader)
at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAttributes(ProgramUnit programUnit, MetadataLoader metadataLoader)
at Microsoft.FxCop.Engines.Phoenix.AssemblyLoader.LoadAssembly(String filePath)
at Microsoft.FxCop.Engines.Phoenix.PhoenixAnalysisEngine.AnalyzeInternal()
</InnerStackTrace>
</Exception>
Nayan KHi Nayan K,
>>ExceptionMessage>Could not load MyProject.dll.</ExceptionMessage>
<InnerType>System.NullReferenceException</InnerType>
If you disable the code analyze tool, and then build your web project, could you get this error message?
Generally this occurs if the file is not found or access to the file was denied.
Reference:
https://msdn.microsoft.com/en-us/library/ms244741(v=vs.90).aspx
Please check your project folder, whether you could get this dll file? Or make sure that you add the correct references in your project.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Can I upgrade directly from ColdFusion 9 Enterprise to ColdFusion 11 Enterprise without going to 10 first?
For those who have done this,
1. What quirks did you find that you had to overcome in your installation (I know that everyone's environment is different and produces differest results)?
2. What part of your code broke for which you had to find fixes?
Tips and suggestions for a smooth installation, besides following the installation document.
Thanks!Create a car (archive file) in CF 9 enterprise which will capture all CF 9 settings like Data sources, Web services etc. Make sure when you are doing this, pop up blocker is disabled.
NOTE : While creating the archive file, give the full name with the absolute path in the package name. For example C:\Test\mypackage.car
Then move this car file into the server where you want to install CF 11. Install CF 11 and then deploy this archive (car) file. All CF 9 settings will be migrated to CF 11 enterprise.
Else, if you want to install CF 11 on the same server where CF 11 is installed, then remove the connector for all the websites which are configured with CF 9, make sure the CF 9 services are running and then run the CF 11 installer and at the end of CF 11 installation, you will get a dialogue box which will ask you to migrate CF 9 settings in CF 11.
Run the Code Analyzer in CF 11 Administrator to check whether any the CF 9 code used in your application is breaking in CF 11 or not
HTH
VJ -
HELP - ABAP Program Cancelled After Running for 2.5 Hours in Background
I have an ABAP report program that was being tested in our QA system and it died after running for 2.5 hours with the status of "Cancelled" (which, I assume, means it was terminated by SAP for exceeding some type of governor).
I ran Code Analyzer and no performance issues were recognized.
I am running several SELECT statements during program execution. These are a list of all the SELECT statements used in my program. Also, I'm using PNPCE to get a list of pernrs for which to pull data at the beginning of the program.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE gt_p0167
FROM pa0167
WHERE pernr EQ gt_selected_pernrs
AND bplan IN s_bplan
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE fgbdt fasex
INTO (lv_dob, lv_gender)
FROM pa0021
WHERE pernr EQ gt_selected_pernrs
AND subty EQ <fs_dtyxx>
AND objps EQ <fs_didxx>
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE agency ansvh
INTO (p_agency_out, lv_ansvh)
FROM pa0001
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE vorna nachn gbdat perid gesch
INTO (gt_control_table-fname, gt_control_table-lname, gt_control_table-dob, gt_control_table-mskssn, gt_control_table-gender)
FROM pa0002
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE perid
INTO (lv_ssn)
FROM pa0106
WHERE pernr EQ p_pernr_in
AND subty EQ p_subty_in
AND objps EQ p_objps_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE smoke
INTO (p_smoker_out)
FROM pa0376
WHERE pernr = p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE state pstlz zcounty
INTO (p_state_out, lv_zip, p_county_out)
FROM pa0006
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE werks btrtl
INTO (lv_werks, lv_btrtl)
FROM pa0001
WHERE pernr EQ p_pernr_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE region
INTO (p_region_out)
FROM zpat_county_code
WHERE county EQ p_county_in.
SELECT SINGLE pernr
INTO lv_pernr
FROM pa0002
WHERE perid EQ gt_cobra_table-l_essn.
SELECT SINGLE eecst ercst
INTO (lv_eecst, lv_ercst)
FROM t5ubi
WHERE barea EQ '01'
AND bplan EQ lv_bplan
AND bcost EQ p_bcost_in
AND cstv1 EQ '0001'
AND smoke EQ p_smoker_in
AND begda LE pn-endda
AND endda GE pn-begda.
SELECT SINGLE kwert
INTO lv_kwert
FROM t511k
WHERE molga EQ '10'
AND konst EQ 'ZCOB1'
AND begda LE pn-endda
AND endda GE pn-begda.The screen shot the tester sent me only says that it was canceled. However, the log shows the following:
09/17/2008 16:54:32 Job Started
09/17/2008 16:54:32 Step 001 started (program ZBNI001...
09/17/2008 19:22:09 ABAP/4 processor: DATASET_NOT_OPEN
09/17/2008 19:22:09 Job cancelled
I'm not sure it was an error, per se, but maybe SAP canceled it because it had been running too long? The "DATASET_NOT_OPEN" is curious although I've no idea what it means.
Thanks for your help. -
Cfhttp: Migration of Webservice from CF 6.1 to CF 8.0.1 fails
Hello,
our application is consumer of a webservice. It works well on CF 6.1 (Sun Solaris) for longer time.
Now we have to migrate to a new platform with CF 8.0.1 on Linux. The service returns "Connection Failure".
Because of security reasons username and password must be in the SOAP header. So we implemented the service invocation via CFHTTP.
Can please anybody help?
We assume that the error has something to do with a wrong or wrong interpreted content length of the returned code.
Thank you very much in advance and greetings from Germany.
Rainer
Facts:
- The physical connection to the webservice server is ok. Requests of us can be found in the logfiles there. It seems they are processed there normally.
- If we send wrong XML data intentionally (invalid XML-syntax, wrong user name...) the returned data contains sensible error messages which comes definitly from the target server.
- If we send correct XML data the only file content which is return is "Connection Failure"
- There are no hints in the logfiles.
- The sended data does not contain any special character.
- The returned data can contain special characters (e.g. German umlauts).
The code:
<cfprocessingdirective pageencoding="iso-8859-1">
<!--- ... --->
<cfsavecontent variable="soap"><?xml version="1.0" encoding="utf-8" ?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:opal="#request.opal_webservice_ns#">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext" soapenv:mustUnderstand="1">
<wsse:UsernameToken>
<wsse:Username>#request.opal_username#</wsse:Username>
<wsse:Password Type="wsse:PasswordText">#request.opal_password#</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<opal:OPAL_spc-_spcGet_spcAREMIS_spcOpportunity_spcData_GetAREMISData_Input>
<opal:Process_spcInstance_spcId></opal:Process_spcInstance_spcId>
<opal:Object_spcId>#ucase(opalid)#</opal:Object_spcId>
<opal:Siebel_spcOperation_spcObject_spcId>?</opal:Siebel_spcOperation_spcObject_spcId>
<opal:Error_spcCode></opal:Error_spcCode>
<opal:Error_spcMessage></opal:Error_spcMessage>
</opal:OPAL_spc-_spcGet_spcAREMIS_spcOpportunity_spcData_GetAREMISData_Input>
</soapenv:Body>
</soapenv:Envelope>
</cfsavecontent>
<cfhttp method="post" url="#request.opal_webservice_url#" throwonerror="no" timeout="20" charset="utf-8">
<cfhttpparam type="Header" name="charset" value="UTF-8" />
<cfhttpparam type="header" name="SOAPAction" value="#request.opal_webservice_soapaction#">
<cfhttpparam type="header" name="Host" value="#request.opal_webservice_host#">
<cfhttpparam type="header" name="Content-Length" value="#len(soap)#">
<cfhttpparam type="XML" name="XML" value="#soap#">
</cfhttp>
<cfdump var="#cfhttp#" label="cfhttp">
Technical data of the new server (which fails):
Operating system (uname -a):
Linux mhpa3y4c 2.6.18-028stab060.8 #1 SMP Mon Feb 9 20:25:36 MSK 2009 i686 i686 i386 GNU/Linux
Server Details
Server Product ColdFusion
Version 8,0,1,195765
Edition Enterprise
Serial Number 1185-5039-8342-3354-3033-xxxx
Operating System UNIX
OS Version 2.6.18-028stab060.8
Update Level /opt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-1878 .jar
JVM Details
Java Version 1.6.0_14
Java Vendor Sun Microsystems Inc.
Java Vendor URL http://java.sun.com/
Java Home /usr/java/jdk1.6.0_14/jre
Java File Encoding ASCII
Java Default Locale en_US
File Separator /
Path Separator :
Line Separator Chr(10)
User Name webrun
User Home /home/webrun
User Dir /opt/jrun4/bin
Java VM Specification Version 1.0
Java VM Specification Vendor Sun Microsystems Inc.
Java VM Specification Name Java Virtual Machine Specification
Java VM Version 14.0-b16
Java VM Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Server VM
Java Specification Version 1.6
Java Specification Vendor Sun Microsystems Inc.
Java Specification Name Java Platform API Specification
Java Class Version 50.0
Java Class Path CF Classpath
pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/hf801-1878.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/updates/chf8010002.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mlibwrapper_jai.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-api.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-net-1.4.0.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jpedal.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xml-apis.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/verity.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jai_core.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/asn1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xercesImpl.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/certj.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/smpp.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jnbcore.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/vparametric.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/wsdl2java.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/wsdl4j-1.5.1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbytools.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/axis.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-beanutils-1.6 .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/bcel.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jstack.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/java2wsdl.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jintegra.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf-assembler.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/im.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/poi-2.5.1-final-20040 804.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/saaj.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xsdlib.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ldap.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/clibwrapper_jiio.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jutf7-0.9.0.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mysql-connector-java- commercial-5.0.5-bin.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/iTextAsian.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbyclient.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-discovery-0.2 .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/smack.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mm-mysql-jdbc.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/vsearch.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cfusion.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/postgresql-8.1-407.jd bc3.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6core.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/tools.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6swing.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cfusion-req.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flashgateway.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-digester-1.7. jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ldapbp.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/mail.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/log4j-1.2.12.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/STComm.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-libs.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jsch-0.1.28m.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/vadmin.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf4was.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf-logging.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/crystal.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jai_imageio.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/xalan.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/pdfencryption.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbyrun.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf-acrobat.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jax-qname.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derby.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ri_generic.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/httpclient.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/izmado.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ant.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/derbynet.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/namespace.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/backport-util-concurr ent.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/iText.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-httpclient-3. 0.1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-collections-2 .1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/macromedia_drivers.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-xjc.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jakarta-oro-2.0.6.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cdo.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6addonpatch.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-logging-api.1 .0.4.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxrpc.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ant-launcher.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cf4was_ae.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6util.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/webchartsJava2D.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/cdohost.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jai_codec.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/metadata-extractor-2. 2.2.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jakarta-slide-webdavl ib-2.1.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/FCSj.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/relaxngDatatype.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jdom-1.0.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jaxb-impl.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging-opt.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/poi-contrib-2.5.1-fin al-20040804.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging-common .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/wc50.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/flex-messaging-req.ja r: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/jeb.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-logging.1.0.4 .jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/rome-cf.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/commons-codec-1.3.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/ib6http.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/tt-bytecode.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/gateway/lib/examples.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/gateway/lib/: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/flex.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jcert.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-css.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-util.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/commons-logging.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-transcoder.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/oscache.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jsse.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jakarta-oro-2.0.7.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/commons-discovery.jar : pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-awt-util.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/concurrent.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/jnet.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/batik-ext.jar: pt/jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfform/jars/: :
Server Classpath
/opt/jrun4/servers/lib:
/opt/jrun4/servers/lib/jrun-patch.jar:
/opt/jrun4/servers/lib/pbclient42RE.jar:
/opt/jrun4/servers/lib/pbserver42RE.jar:
/opt/jrun4/servers/lib/pointbase-service.jar:
/opt/jrun4/servers/lib:
/opt/jrun4/servers/lib/jrun-patch.jar:
/opt/jrun4/servers/lib/pbclient42RE.jar:
/opt/jrun4/servers/lib/pbserver42RE.jar:
/opt/jrun4/servers/lib/pointbase-service.jar:
/opt/jrun4/lib:
/opt/jrun4/lib/instutil.jar:
/opt/jrun4/lib/java2wsdl.jar:
/opt/jrun4/lib/jrun-ant-tasks.jar:
/opt/jrun4/lib/jrun-xdoclet.jar:
/opt/jrun4/lib/jrun.jar:
/opt/jrun4/lib/jrunwizard-installer.jar:
/opt/jrun4/lib/jrunwizard.jar:
/opt/jrun4/lib/jspc.jar:
/opt/jrun4/lib/macromedia_drivers.jar:
/opt/jrun4/lib/migrate.jar:
/opt/jrun4/lib/mysql-connector-java-commercial-5.0.5-bin.jar:
/opt/jrun4/lib/oem-xdoclet.jar:
/opt/jrun4/lib/sniffer.jar:
/opt/jrun4/lib/webservices.jar:
/opt/jrun4/lib/wsconfig.jar:
/opt/jrun4/lib/wsdl2java.jar:
/opt/jrun4/lib/xmlscript.jar:
/opt/jrun4/lib/jrun.jar
Java Ext Dirs /usr/java/jdk1.6.0_14/jre/lib/ext:/usr/java/packages/lib/ext
Technical data former server (which runs well):
Operating System (uname -a):
SunOS MHPA24ZC 5.8 Generic_117350-45 sun4us sparc FJSV,GPUZC-M
Server Details
Server Product
ColdFusion MX
Version
6,1,0,hf52806_61
Edition
Enterprise
Serial Number
CED600-55949-37264-xxxxxx
Operating System
UNIX
OS Version
5.8
JVM Details
Java Version
1.4.2
Java Vendor
Sun Microsystems Inc.
Java Vendor URL
http://java.sun.com/
Java Home
/export/home/coldf/coldfusionmx/runtime/jre
File Separator
Path Separator
Line Separator
Chr(10)
User Name
coldf
User Home
/export/home/coldf
User Dir
/export/home/coldf/coldfusionmx/runtime/bin
Java VM Specification Version
1.0
Java VM Specification Vendor
Sun Microsystems Inc.
Java VM Specification Name
Java Virtual Machine Specification
Java VM Version
1.4.2-b28
Java VM Vendor
Sun Microsystems Inc.
Java VM Name
Java HotSpot(TM) Server VM
Java Specification Version
1.4
Java Specification Vendor
Sun Microsystems Inc.
Java Specification Name
Java Platform API Specification
Java Class Version
48.0
Java Class Path
/export/home/coldf/coldfusionmx/runtime/servers/lib: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf52806_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53398_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53419_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53486_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53685_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53797_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53813_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf53852_61.jar: /export/home/coldf/coldfusionmx/runtime/servers/lib/hf54464_61.jar: /export/home/coldf/coldfusionmx/servers/lib: /export/home/coldf/coldfusionmx/lib/cfusion.jar: /export/home/coldf/coldfusionmx/lib: /export/home/coldf/coldfusionmx/lib/NetComponents.jar: /export/home/coldf/coldfusionmx/lib/bcel.jar: /export/home/coldf/coldfusionmx/lib/cf4was.jar: /export/home/coldf/coldfusionmx/lib/cf4was_ae.jar: /export/home/coldf/coldfusionmx/lib/cfmx-ssl.jar: /export/home/coldf/coldfusionmx/lib/cfmx_bootstrap.jar: /export/home/coldf/coldfusionmx/lib/cfusion.jar: /export/home/coldf/coldfusionmx/lib/cfx.jar: /export/home/coldf/coldfusionmx/lib/collections.jar: /export/home/coldf/coldfusionmx/lib/crimson.jar: /export/home/coldf/coldfusionmx/lib/flashgateway.jar: /export/home/coldf/coldfusionmx/lib/httpclient.jar: /export/home/coldf/coldfusionmx/lib/izmado.jar: /export/home/coldf/coldfusionmx/lib/jakarta-oro-2.0.6.jar: /export/home/coldf/coldfusionmx/lib/java2wsdl.jar: /export/home/coldf/coldfusionmx/lib/jaxp-api.jar: /export/home/coldf/coldfusionmx/lib/jdom.jar: /export/home/coldf/coldfusionmx/lib/ldap.jar: /export/home/coldf/coldfusionmx/lib/ldapbp.jar: /export/home/coldf/coldfusionmx/lib/log4j.jar: /export/home/coldf/coldfusionmx/lib/macromedia_drivers.jar: /export/home/coldf/coldfusionmx/lib/mail.jar: /export/home/coldf/coldfusionmx/lib/pbclient42RE.jar: /export/home/coldf/coldfusionmx/lib/pbembedded42RE.jar: /export/home/coldf/coldfusionmx/lib/pbserver42RE.jar: /export/home/coldf/coldfusionmx/lib/pbtools42RE.jar: /export/home/coldf/coldfusionmx/lib/tools.jar: /export/home/coldf/coldfusionmx/lib/tt-bytecode.jar: /export/home/coldf/coldfusionmx/lib/webcharts.jar: /export/home/coldf/coldfusionmx/lib/webchartsJava2D.jar: /export/home/coldf/coldfusionmx/lib/webservices.jar: /export/home/coldf/coldfusionmx/lib/wsdl2java.jar: /export/home/coldf/coldfusionmx/lib/xalan.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun.jar: /export/home/coldf/coldfusionmx/runtime/lib: /export/home/coldf/coldfusionmx/runtime/lib/instutil.jar: /export/home/coldf/coldfusionmx/runtime/lib/java2wsdl.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun-ant-tasks.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun-xdoclet.jar: /export/home/coldf/coldfusionmx/runtime/lib/jrun.jar: /export/home/coldf/coldfusionmx/runtime/lib/jspc.jar: /export/home/coldf/coldfusionmx/runtime/lib/migrate.jar: /export/home/coldf/coldfusionmx/runtime/lib/oem-xdoclet.jar: /export/home/coldf/coldfusionmx/runtime/lib/sniffer.jar: /export/home/coldf/coldfusionmx/runtime/lib/webservices.jar: /export/home/coldf/coldfusionmx/runtime/lib/wsconfig.jar: /export/home/coldf/coldfusionmx/runtime/lib/wsdl2java.jar: /export/home/coldf/coldfusionmx/runtime/lib/xmlscript.jar: /oracle/orav920/jdbc/lib/classes12.jar: /home5/coldf/java: /home5/coldf/java/csvjdbc.jar: /home5/coldf/java/verona: /home5/coldf/java/verona/jCO.jar: /home5/coldf/java/csvjdbc.jar: /export/home/coldf/coldfusionmx/lib/cfusion.jar
Java Ext Dirs
/export/home/coldf/coldfusionmx/runtime/jre/lib/extAnd you can use the ColdFusion Code Analyzer
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0d04c -7fee.html
But yeah, as Dan said, definitely set up a test server and plan a series of tests that must pass.
-Fernis -
Java plug-in not working in multi-server instance
I am having problems getting the Sun Java plug-in to work
when attempting to use the Browse Server button within the CF
Administrator for directory browsing features such as the Code
Analyzer, Verity Collections,etc., in a multi-server instance
setup. The plug-in works fine within the first instance. For all
the other instances (2 through n), the Java plug-in doesn't do
anything except show an image of a sun with the words Java Sun
Microsystems with the rays of the sun going around and round.
We are using CFMX 7.0.1 with the Sun Java plug-in 1.5.0_06.
Anyone else experience this problem before?First, you need to get off of Java 1.5 and back to 1.4.2. 1.5
isn't supported yet and breaks stuff.
Secondly, you need to make sure RDS is enabled on all of your
instances. -
CF10 Some pages render blank, No configured web servers
I'm moving from CF8 to CF10 and having some issues. My CF10 install is a clean install on brand new server running Windows Server 2008 R2 64bit IIS 7.5. I've upgraded to CF version 10,0,11,285437. Out of the 50 or so Apps on the server almost everything works, but there are a few pages that just don't render at all. No error, nothing. Viewing the source for the page just shows an empty HTML page. Coldfusion logs are empty and there's 500 null error in the IIS logs.
While researching that issue I found many people recommending I rerun wsconfig after patching CF, so I tried that and it looks like my sites aren't configured correctly. During install I configured the sites individually (2 of them run in 32 bit while the cfadmin site runs in 64.) Now when I run the Web Server Configuration Tool as administrator I just get a Configured Web Servers box that is empty. When I click add the next window shows IIS, but the drop down for IIS Web Sites is disabled. Checking the Configure 32 bit web server option doesn't change anything. 99 out of a 100 pages work just fine, so it seems odd that the tool is telling me the server isn't configured. I'm not even sure where to start at this point.
EDIT: I've read most of the posts related to the wsconfig and none of the solutions presented yet make any difference. ASP.NET, .NET Extensibility, CGI, ISAPI Extensions, ISAPI Filters are all already installed. I've tried reinstalling CF, IIS, even going back to a clean snapshot of he OS several times and the result is always the same. I've even tried it with and without IIS Compatability.
Edit2: I've figured out the problem with wsconfig (McAfee IPS was preventing it from working.) Unfortunately, even after reconfiguring the servers I'm still getting the blank page problem. Nothing in any of the CF logs and a 500 null error in the IIS logs.Hi
Out of 20, if there are 10 coldfusion (.cfm) pages which are working fine and rest of the 10 are not working fine then you must run the code analyzer to check the error on those pages as you mentioned that you have moved to CF 10 from CF 8.
Run wsconfig as Run as Admin and then see how many connector showing up there? Like if you have configure webserver with All option, then it will display on 1.
Thanks
VJ -
Bug report: adding -fast to thecompilation
Hi all.
Compiling the following piece of code on a Sun v60x, I ran across a bug with -fast:
PROGRAM SMOOTH
IMPLICIT NONE
INTEGER, PARAMETER :: i0=100, j0=100, m0=19
INTEGER :: i, j
REAL, DIMENSION(i0,j0) :: rho
INTEGER, DIMENSION(i0,j0) :: imask
LOGICAL, DIMENSION(i0,j0) :: lmask
c sumi1, sumi2, sumi3, sumi4, sumi5 use an integer mask to compute sums
c suml1, suml2, suml2 use a logical mast to compute sums.
REAL, DIMENSION(i0) :: sumi1, sumi2, sumi3, suml1, suml2, suml3,
$ sumi4, sumi5
c set up a checkboard pattern of 1 and 0, or T and F.
imask(1:i0:2,1:j0:2)=1
imask(2:i0:2,1:j0:2)=0
imask(1:i0:2,2:j0:2)=0
imask(2:i0:2,2:j0:2)=1
lmask(1:i0:2,1:j0:2)=.true.
lmask(2:i0:2,1:j0:2)=.false.
lmask(1:i0:2,2:j0:2)=.false.
lmask(2:i0:2,2:j0:2)=.true.
rho = 10.0
print *,'m0=', m0
suml1(: )= SUM(rho(1:m0+1,: ),DIM=1, MASK=lmask(1:m0+1,: ))
sumi1(: )= SUM(rho(1:m0+1,: ),DIM=1, MASK=imask(1:m0+1,: ).eq.1)
sumi5(: )=SUM(rho(1:m0+1,: )*imask(1:m0+1,: ), DIM=1)
DO j=1,j0
sumi2(j)= SUM(rho(1:m0+1,j), MASK=imask(1:m0+1,j).EQ.1)
ENDDO
do j=1,j0
suml2(j)= SUM(rho(1:m0+1,j), MASK=lmask(1:m0+1,j))
enddo
do j=1,j0
sumi4(j)= SUM(rho(1:m0+1,j)*imask(1:m0+1,j))
enddo
suml3=0.0
do j = 1, j0
DO i=1,m0+1
if (lmask(i,j)) THEN
suml3(j)=suml3(j)+rho(i,j)
ENDIF
ENDDO
ENDDO
sumi3=0.0
DO j=1,j0
do i = 1, m0+1
sumi3(j)=sumi3(j)+rho(i,j)*imask(i,j)
ENDDO
ENDDO
DO j = 1, j0
print *,'j=', j,sumi1(j), sumi2(j), sumi3(j), sumi4(j),sumi5(j)
$ , suml1(j),suml2(j)
$ , suml3(j)
enddo
print *,lmask(:,j0)
print *,imask(:,j0)
END PROGRAM SMOOTH
The above program calculates the sum of part of array, not including elements of the array excluded by either an integer mask (imask), or a logical mask (lmask). Each sum calculation (e.g. sumi1) should give identical results - each element of a particular line in the print statement of the final DO loop should report the same result. The purpose of this code is to test various techniques against one another for speed comparisons in a code analyzer. Without the -fast compiler switch the results are as expected:
f90 -V -g subavsun.F -o subavf90: Sun Fortran 95 8.0 2004/07/15
fpp: Sun Fortran Utils 5.4 2004/07/15
f90comp: Sun Fortran 95 8.0 2004/07/15
f90comp: 88 SOURCE LINES
f90comp: 0 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.382
uname -aSunOS 5.9 Generic_117172-07 i86pc i386 i86pc
partial sample of results:
m0= 19
j= 1 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
j= 2 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
j= 3 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
j= 4 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
now add the -fast option:
f90 -V -fast -g subavsun.F -o subavf90: Sun Fortran 95 8.0 2004/07/15
fpp: Sun Fortran Utils 5.4 2004/07/15
f90comp: Sun Fortran 95 8.0 2004/07/15
f90comp: 88 SOURCE LINES
f90comp: 0 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
ir2hf: Sun Compiler Common 9.0 2004/07/15
ube_ipa: Sun Compiler Common 9.0 2004/07/15
ube: Sun Compiler Common 9.0 2004/07/15
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.382
and I get:
m0= 19
j= 1 100.0 100.0 0.0E+0 1.4012985E-43 0.0E+0 100.0 100.0 100.0
j= 2 100.0 100.0 0.0E+0 1.4012985E-43 0.0E+0 100.0 100.0 100.0
j= 3 100.0 100.0 0.0E+0 1.4012985E-43 0.0E+0 100.0 100.0 100.0
j= 4 100.0 100.0 0.0E+0 1.4012985E-43 0.0E+0 100.0 100.0 100.0
j= 5 100.0 100.0 0.0E+0 1.4012985E-43 0.0E+0 100.0 100.0 100.0
Interestingly enough, recompile with m0 < 19 the results are fine (with or without -fast):
m0= 18
j= 1 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
j= 2 90.0 90.0 90.0 90.0 90.0 90.0 90.0 90.0
j= 3 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
j= 4 90.0 90.0 90.0 90.0 90.0 90.0 90.0 90.0
j= 5 100.0 100.0 100.0 100.0 100.0 100.0 100.0 100.0
The problem seems to be with the calculations of sum3i, sum4i, sum5i, all of which involve multiplying a real number (stored in rho) by the appropriate element of the integer mask (imask). Note that this result is peculiar to our Sun v60x; one of our other Suns:
uname -a SunOS 5.8 Generic_108528-22 sun4u sparc SUNW,Sun-Fire
f90 -V -fast subavsun.F -o subavf90: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=v8plusb which generates code that does not run on pre UltraSPARC III processors
f90: Sun WorkShop 6 update 2 Fortran 95 6.2 2001/05/15
fpp: Sun WorkShop 6 update 2 Fortran Utils 5.3 2001/05/15
f90comp: Sun WorkShop 6 update 2 Fortran 95 6.2 2001/05/15
f90: Cray CF90 Version 3.x.x.x (f41pXXgXXXa48) Tue Apr 19, 2005 11:32:53
f90: COMPILE TIME 0.250000 SECONDS
f90: MAXIMUM FIELD LENGTH 5018158 DECIMAL WORDS
f90: 88 SOURCE LINES
f90: 0 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
iropt: Sun WorkShop 6 update 2 Compiler Common 6.2 Patch 111678-06 2001/12/10
cg: Sun WorkShop 6 update 2 Compiler Common 6.2 Patch 111678-06 2001/12/10
ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.290
gives good results. I'm not sure which element of -fast is causing the problem - with a bit of work I could probably narrow it down, but I thought people should be aware of the bug. Clearly the compiler is doing something strange.
Thanks.
Cheers,
Mike
Mike Casey
Research Assistant
Department of Oceanography
Dalhousie University
Halifax, Nova Scotia, Canada
email: [email protected]
work: phone: (902)494-2976
FAX: (902)494-2885
_____________________________________________________________I was able to reproduce your problem with the current studio 9 patch:
f90: Sun Fortran 95 8.0 Patch 115985-02 2004/10/12
f90comp: Sun Fortran 95 8.0 Patch 115985-02 2004/10/12
f90comp: 86 SOURCE LINES
f90comp: 0 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
ir2hf: Sun Compiler Common 9.0 Patch 115982-04 2005/03/22
ube_ipa: Sun Compiler Common 9.0 Patch 115982-04 2005/03/22
ube: Sun Compiler Common 9.0 Patch 115982-04 2005/03/22
ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.380
$ a.out
m0= 19
j= 1 100.0 100.0 0.0E+0 1.4012985E-43 0.0E+0 100.0 100.0 100.0
j= 2 100.0 100.0 0.0E+0 1.4012985E-43 0.0E+0 100.0 100.0 100.0
However, the test appears to run correctly with the studio 10 compiler.
Peter Miller -
List All Tables in a Microsoft Access Database
Hello,
I am writing in a Java code. This code analyze a Microsft Access Database file and then print a report about it.
The connectivity between Java and the Database is fine, but My problem is that I want to display ALL Table names of the Database:
For example: if the database is save in a file Data.mdb and if the database contain tables: Customer, Employee, Sales. I want a way to get those names!. I tried to excute a query "Desc Data" but it gave me SQL error sayas that you are allowed to use Select, Insert, Delete and Update keyword only.
Any HELP?you can do it the following way...
using your Connection obj (say connection)
DatabaseMetaData dm = connection.getMetaData();
ResultSet rs = dm.getCatalogs();
String cat = null;
if(rs.next())
cat = rs.getString("TABLE_CAT");
String[] str = new String{}["TABLE"]
rs = dm.getTables(cat,null,null,str);
while(rst.next())
System.out.println("Tables"+rs.getString("TABLE_NAME"));
kind regards
Oliver
Maybe you are looking for
-
ICal Search doesn't find events in the "distant" future !!!
I posted this in LEOPARD and at the end, no resolution and "Fred II" recommended I post this is this Snow Leopard discussion - he sent me this link -- appreciate any comments! Here's a bit of a disturbing one: I use iCal (Leopard, so iCal 3.0.8 1287)
-
Bluetooth headphones in windows xp
i have recently bought a nokia 5200 that came with a set of bluetooth headphones, i was wondering if they could be connected somehow to my computer, to listen through them i supose its possible because windows comes with a bluetooth file transfer uti
-
Linking and then sending linked PDFs to other people
I have a PDF with 50 references at the end, I want to link the references to separate reference files, zip the files and be able to send everything to people. At the moment, if I send the files to people the linking doesn't work as the actual referen
-
IPhone (SDK) Developer Forum
Is there a developer forum area specific to the iPhone?
-
Does Mac Mail need the SSL box checked?
I'm receiving my yahoo, gmail, and mac mail from Mail/desktop. The other two mail programs require the SSL box checked, but not Mail. Why is this? Thanks!