ca scm Questions

When I navigate to http://inwpiccm02:8080/harweb I get the following error:
Can't get hDB from pool. Check your 'harweb.cfg' and restart your servlet server.<br>java.lang.NullPointerException

SCM Version: r12.1.3
JDBC for SQL Server version: 4.0
$JAVA_HOME:C:\Program Files\Java\jre7

harweb.cfg:

JDBCDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
JDBCConnectionURL=jdbc:sqlserver://INWPITSQL01;databaseName=cascm_test;integratedSecurity=false;selectMethod=cursor
Database=SQLServer
ConnectionPoolSize=5
ConnectionPoolMax=100
ConnectionUseCount=5
ConnectionTimeout = 2
Broker=inwpiccm02
AuthMode=Internal
WorkingDirectory=C:\\Program Files\\apache-tomcat-6.0.32\\webapps\\harweb\\temp
SessionTimeout=600
BusinessObjectsURL=http:// hostname:portnumber/InfoViewApp/logon.jsp
ContextsMaxCount=30
AllowedSwitchInBetween=true

Error log:
Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.

I am sure I am using the correct db credentials.

Any ideas? THanks

By robert_lee - September 11, 20122 Answers

Can somebody tell me who uses Harvest? What corporations? I know AT&T, K-Mart use it.

Thanks!

I am running a query that returns multiple rows using HSQL. I only want the most current row so I added a group by statement and a MAX statement for the date/time. In problem resolution I have found that the group by is working but the MAX statement is giving me an error. Any ideas?

Query below

select harenvironment.environmentname,
harstate.statename,
harpackage.packagename,
harallusers.username,
harallusers.realname,
haritems.itemobjid,
haritems.itemname,
harpathfullname.pathfullname,
max(harversions.creationtime)

from harpackage

Inner Join harenvironment
on harenvironment.envobjid = harpackage.envobjid

Inner Join harstate
on harstate.stateobjid = harpackage.stateobjid

Inner Join harallusers
on harallusers.usrobjid = harpackage.creatorid

Inner Join harversions
on harversions.packageobjid = harpackage.packageobjid

Inner Join haritems
on haritems.itemobjid = harversions.itemobjid

Inner Join harpathfullname
on harpathfullname.itemobjid = haritems.parentobjid

WHERE HARENVIRONMENT.ENVISACTIVE = 'Y'

AND ( HARENVIRONMENT.ENVIRONMENTNAME LIKE 'EDW%'
OR HARENVIRONMENT.ENVIRONMENTNAME LIKE 'EMD%'
OR HARENVIRONMENT.ENVIRONMENTNAME LIKE 'HFDR%'
OR HARENVIRONMENT.ENVIRONMENTNAME LIKE 'MCWET%'
OR HARENVIRONMENT.ENVIRONMENTNAME LIKE 'FRED%' )

AND ( SUBSTR(HARPACKAGE.PACKAGENAME,4,10) = '_20120914_'
OR SUBSTR(HARPACKAGE.PACKAGENAME,5,10) = '_20120914_'
OR SUBSTR(HARPACKAGE.PACKAGENAME,6,10) = '_20120914_'
OR SUBSTR(HARPACKAGE.PACKAGENAME,7,10) = '_20120914_' )

GROUP BY harenvironment.environmentname,
harstate.statename,
harpackage.packagename,
harallusers.username,
harallusers.realname,
haritems.itemobjid,
haritems.itemname,
harpathfullname.pathfullname

ORDER BY haritems.itemobjid,
harversions.creationtime desc,
haritems.itemname,
harpackage.packagename;

Can a state process be created by command line script?

Does anyone have any experiance or heard of anyone integrating BMC Remedy Service Desk with CA-SCM?

The below ant script is running successfully until yesterday using Harvest 7:

C:\Program Files\CA\SCM\hco.exe" -pn 'Check Out - Read Only' -b '${application.harvest.broker}' -ced -usr '${application.harvest.userId}' -pw '${application.harvest.password}' -en '${application.harvest.environment}' -st '${application.harvest.state}' -vp '${application.harvest.projectdir}' -r -op '${application.harvest.pc}' -sy -cp '${application.checkedout.src}' -s '${application.harvest.filepattern}

But the above ant script is throwing error as below after upgrading to Harvest 12:

E0306003e: Could not connect to Broker: rs2i/haprd5 (Error Code = -306 ).
Error: Could not attach to broker.

I am able to log in with the same broker and credentials to Harvest 12 using CA SCM workbench.

Please help me in this because all our nightly builds stopped due to this.

Anyone tried to run SQL to remove the -b [broker] parm from a hexecp?

hexecp -b [broker]

We have over a thousand of these in Harvest 12.0 and they are not allowed in 12.1. (Oracle DB)

Just trying to find out if anyone else is having as much fun as I am.

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.