Quantcast
Channel: A Portal to a Portal
Viewing all 1851 articles
Browse latest View live

IBM Installation Manager - 32 vs. 64 bits

$
0
0
So I'm seeing: -

ERROR: The 32-bit IBM▒ Installation Manager package cannot be installed in a 64-bit package group.

 when trying to install IBM Installation Manager 1.6.2, WAS 8.5.5.2 and IBM BPM 8.5.0.1 on a 64-bit AIX LPAR.

I've seen similar issues before: -


This time around, the solution was to change my response file ( I have one file for all the products, including IIM ) from: -

...
<profile id='IBM Installation Manager' installLocation='/opt/IBM/InstallationManager/eclipse' kind='self'>
<data key='eclipseLocation' value='/opt/IBM/InstallationManager/eclipse'/>
<data key='user.import.profile' value='false'/>
<data key='cic.selector.os' value='aix'/>
<data key='cic.selector.arch' value='ppc64'/>
<data key='cic.selector.ws' value='gtk'/>
<data key='cic.selector.nl' value='de,no,fi,ru,hr,fr,hu,sk,sl,sv,ko,el,en,pt_BR,it,iw,zh,es,cs,ar,zh_HK,zh_TW,th,ja,pl,da,tr,nl'/>
</profile>

...
<profile id='IBM WebSphere Application Server V8.5' installLocation='/opt/IBM/WebSphere/AppServer'>
<data key='eclipseLocation' value='/opt/IBM/WebSphere/AppServer'/>
<data key='user.import.profile' value='false'/>
<data key='cic.selector.os' value='aix'/>
<data key='cic.selector.arch' value='ppc'/>
<data key='cic.selector.ws' value='motif'/>
<data key='cic.selector.nl' value='en'/>
</profile>
...

to: -

...
<profile id='IBM Installation Manager' installLocation='/opt/IBM/InstallationManager/eclipse' kind='self'>
<data key='eclipseLocation' value='/opt/IBM/InstallationManager/eclipse'/>
<data key='user.import.profile' value='false'/>
<data key='cic.selector.os' value='aix'/>
<data key='cic.selector.arch' value='ppc'/>
<data key='cic.selector.ws' value='gtk'/>
<data key='cic.selector.nl' value='de,no,fi,ru,hr,fr,hu,sk,sl,sv,ko,el,en,pt_BR,it,iw,zh,es,cs,ar,zh_HK,zh_TW,th,ja,pl,da,tr,nl'/>
</profile>

...
<profile id='IBM WebSphere Application Server V8.5' installLocation='/opt/IBM/WebSphere/AppServer'>
<data key='eclipseLocation' value='/opt/IBM/WebSphere/AppServer'/>
<data key='user.import.profile' value='false'/>
<data key='cic.selector.os' value='aix'/>
<data key='cic.selector.arch' value='ppc'/>
<data key='cic.selector.ws' value='motif'/>
<data key='cic.selector.nl' value='en'/>
</profile>
...

In other words, ensure that the cic.selector.arch is consistently set to ppc rather than  a mixture of ppc and ppc64.

Sorted :-)

IBM Operational Decision Manager - Issue when creating WAS Profile

$
0
0
I'm installing IBM ODM 8.5.1.0 onto an AIX platform, and found that the WAS profile creation phase failed with exceptions such as: -

...
    <message>/opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/ds/actions/copyBinsAndFixPermissions.ant:31: Failed to copy /opt/ibm/WebSphere/AppServer/profileTemplates/rules/lib/rulesTemplateResource.jar to /opt/ibm/lib/rulesTemplateResource.jar due to /opt/ibm/lib/rulesTemplateResource.jar (A file or directory in the path name does not exist.)
...

<record>
    <date>2014-08-13T11:09:53</date>
    <millis>1407924593527</millis>
    <sequence>4274</sequence>
    <logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>
    <level>WARNING</level>
    <class>com.ibm.ws.install.configmanager.logging.LogUtils</class>
    <method>logException</method>
    <thread>0</thread>
    <message>The exception message is: Failed to copy /opt/ibm/WebSphere/AppServer/profileTemplates/rules/lib/rulesTemplateResource.jar to /opt/ibm/lib/rulesTemplateResource.jar due to /opt/ibm/lib/rulesTemplateResource.jar (A file or directory in the path name does not exist.)</message>
</record>
...

Thanks to a spot of Googling, I found this: -


The problem is due to the fact that I'm over-riding the default location for a WAS profile: -

profilePath=/opt/ibm/WebSphereProfiles/Dmgr01

rather than the default of: - 

profilePath=/opt/ibm/WebSphere/AppServer/profiles/Dmgr01

The circumvention is to change: -

/opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/ds/actions/copyBinsAndFixPermissions.ant

and: -

/opt/ibm/WebSphere/AppServer/profileTemplates/rules/management/dc/actions/copyBinsAndFixPermissions.ant
 
from

<copy todir="${profilePath}/../../lib">

to: -

<copy todir="${WAS_HOME}/lib">

In other words, the Ant scripts were trying to copy JAR files from: -

/opt/ibm/WebSphere/AppServer/profileTemplates/rules/lib/

to: -

/opt/ibm//lib/

because the change of profile path had confused things :-)

Alternatively, I could apply the iFix ( Interim Fix 21 ) or the 8.5.1.1 Fix Pack.

A Forking Nightmare - 0403-030 The fork function failed. Too many processes already exist

$
0
0
So this one baffled me for several days, until I focused 100% on the problem.

This is what I saw when I ran a script to start a WAS 8.5.5.2 Deployment Manager: -

0403-030 The fork function failed. Too many processes already exist 

on two of AIX LPARs.

I've checked the "obvious", including

lsattr -El sys0 | grep maxuproc

maxuproc 4096 Maximum number of PROCESSES allowed per user True

ulimit -a

time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        unlimited
memory(kbytes)       unlimited
coredump(blocks)     2097151
nofiles(descriptors) unlimited
threads(per process) unlimited
processes(per user)  unlimited


When I monitored the number of processes for my user - wasadmin : -

$ ps -ef  | grep -i wasadmin

I noticed that the number quickly ramped up to the ~4,000 mark, before the exception popped up.

Guess what the problem was ?

I'd created a script - startManager.sh - in the wasadmin home directory, as I usually do.

However, for some strange reason (!), I'd created a symbolic link from: -

/opt/ibm/WebSphereProfiles/Dmgr01/bin/startManager.sh

to: -

/home/wasasdmin/startManager.sh

but, in doing so, I'd somehow overwritten the original script.

In other words, I had a "shortcut" script that called itself :-)

Therefore, I run startManager.sh which then spawns 4,096 shells, each to run a copy of the script, before I hit the maxuproc limit, at which point the forking error appears.

Simples :-)

Do I feel embarrassed ? Yes, I do, but one learns through failure :-)

Here we go again - ERROR: Installation of IBM Cognos Business Intelligence has failed.

$
0
0
So, hopefully, this is the last post I'll ever write about this issue, following: -


Foiled Again - Installation of IBM Cognos Business Intelligence has failed. Return code : 1 

I had the same problem as before e.g. during the installation of IBM Business Monitor 8.0.1.2 on AIX 7.1: -

imcl -input installBAM8012.rsp -acceptLicense

I saw: -

ERROR: Error during "install" phase:

  ERROR:   Installation of IBM Cognos Business Intelligence has failed.

Return code : 1


Initially, I thought the problem was with the out-of-the-box AIX tar command, so I updated my .profile to ensure that the AIX Toolbox version of tar was picked up in the path ( /home/wasadmin/bin ) ahead of the system-wide path ( /usr/bin ).

However, this made no difference :-(

I then checked disk space utilisation.

For a previous PoC environment ( also AIX 7.1 ), the directory in which Cognos is installed: -

/opt/IBM/WebSphere/AppServer/cognos

is 3.27 GB in size.

When I checked this environment, I found that /opt/IBM/WebSphere was only 5 GB in size.

Therefore, I assumed that WAS + Cognos was almost certainly exceeding 5 GB.

Before

Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on

...
/dev/fslv01        5.00     4.91   2%        4     1% /opt/ibm/WebSphere
...
 

After installation fails
 
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
 
...
/dev/fslv01        5.00     3.13  38%    20879     3% /opt/ibm/WebSphere
...
 

After increase from 5 to 15 GB *AND* successful installation of BAM
 
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on

...
/dev/fslv01       15.00     9.76  35%   144857     6% /opt/ibm/WebSphere
...

In conclusion, ensure that you've got > 10 GB allocated to the file-system into which the WAS, BAM and Cognos binaries are going to be installed .....

IBM BPM 8.5.0.1 - Booting the Bootstrap

$
0
0
I've seen similar problems before, but wasn't sure whether I'd fully documented one particular issue, related to DB permissions.

So I'm boot-strapping my BPM database, post installation: -

/opt/ibm/WebSphereProfiles/Dmgr01/bin/bootstrapProcessServerData.sh -clusterName AppCluster

which returns: - 

Bootstraping data into cluster AppCluster

WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.

java.lang.Exception: java.lang.reflect.InvocationTargetException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlersMap': Cannot create inner bean 'com.lombardisoftware.server.ejb.persistence.PSDefaultHandler#35a5e1c7' of type [com.lombardisoftware.server.ejb.persistence.PSDefaultHandler] while setting bean property 'sourceMap' with key [TypedStringValue: value [Task], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.lombardisoftware.server.ejb.persistence.PSDefaultHandler#35a5e1c7' defined in class path resource [registry.persistence.xml]: Cannot resolve reference to bean 'dao.task' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.task' defined in class path resource [registry.persistence.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'message.routingCache' defined in class path resource [registry.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.lombardisoftware.bpd.runtime.engine.message.DefaultMessageRoutingCache]: Constructor threw exception; nested exception is org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select propvalue from lsw_system where propkey=?]; nested exception is com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-551, SQLSTATE=42501, SQLERRMC=DB2USER1;SELECT;DB2USER1.LSW_SYSTEM, DRIVER=4.11.69


 The DB messages lead one straight to root cause.

I'm using a different user - DB2USER1 - to connect from WAS to DB2, rather than the DB2 instance - DB2INST1 - which I'd normally use in lazybones fashion.

Whilst the DB2 instance has ALL rights to the database, this user does NOT.

Solution, give DB2USER1 the appropriate permissions - I chose DBADM - to the BPMDB database: -

db2 connect to BPMDB
db2 grant dbadm on database to user db2user1
db2 terminate


Sorted :-)

Now my bootstrapping works as one would hope .... 

IBM HTTP Server and WebSphere Application Server - Plugging in to one another

$
0
0
Note to self - if you see exceptions such as this: - 

[14/08/14 13:20:48:671 BST] 00000169 SystemOut     O PLGC0005I: Plug-in configuration file = /opt/ibm/WebSphereProfiles/Dmgr01/config/cells/PCCell1/nodes/AppSrv01Node/servers/webserver1/plugin-cfg.xml
[14/08/14 13:20:48:672 BST] 00000169 SystemOut     O PLGC0052I: Plug-in configuration file generation is complete for the Web server. PCCell1.AppSrv01Node.webserver1.
[14/08/14 13:20:56:029 BST] 0000014c SystemOut     O PLGC0062I: The plug-in configuration file is propagated from /opt/ibm/WebSphereProfiles/Dmgr01/config/cells/PCCell1/nodes/AppSrv01Node/servers/webserver1/plugin-cfg.xml to /opt/ibm/WebSphere/Plugins/config/webserver1/plugin-cfg.xml on the Web server computer.
[14/08/14 13:20:56:030 BST] 0000014c SystemOut     O PLGC0048I: The propagation of the plug-in configuration file is complete for the Web server. PCCell1.AppSrv01Node.webserver1.
[14/08/14 13:20:56:030 BST] 0000014c SystemOut     O PLGC0063E: The propagation of the plug-in configuration file from /opt/ibm/WebSphereProfiles/Dmgr01/config/cells/PCCell1/nodes/AppSrv01Node/servers/webserver1/plugin-cfg.xml to /opt/ibm/WebSphere/Plugins/config/webserver1/plugin-cfg.xml on the Web server computer failed.
[14/08/14 13:20:56:030 BST] 0000014c SystemOut     O PLGC0049E: The propagation of the plug-in configuration file failed for the Web server. PCCell1.AppSrv01Node.webserver1.

 [14/08/14 13:27:49:141 BST] 0000014d SystemOut     O PLGC0064I: The plug-in keyring file is propagated from /opt/ibm/WebSphereProfiles/Dmgr01/config/cells/PCCell1/nodes/AppSrv01Node/servers/webserver1/plugin-key.kdb to /opt/ibm/WebSphere/Plugins/config/webserver1/plugin-key.kdb on the Web server computer.
[14/08/14 13:27:49:141 BST] 0000014d SystemOut     O PLGC0069I: The propagation of the plug-in keyring is complete for the Web server. PCCell1.AppSrv01Node.webserver1.
[14/08/14 13:27:49:142 BST] 0000014d SystemOut     O PLGC0065E: The propagation of plug-in keyring file from /opt/ibm/WebSphereProfiles/Dmgr01/config/cells/PCCell1/nodes/AppSrv01Node/servers/webserver1/plugin-key.kdb to /opt/ibm/WebSphere/Plugins/config/webserver1/plugin-key.kdb on the Web server computer failed.
[14/08/14 13:27:49:142 BST] 0000014d SystemOut     O PLGC0070E: The propagation of the plug-in keyring has failed for the Web server. PCCell1.AppSrv01Node.webserver1.
[14/08/14 13:27:49:158 BST] 0000014d MBeanHelper   E   Could not invoke an operation on object: WebSphere:name=PluginCfgGenerator,process=dmgr,platform=common,node=dmgr,version=8.5.5.2,type=PluginCfgGenerator,mbeanIdentifier=PluginCfgGenerator,cell=PCCell1,spec=1.0 because of an mbean exception: com.ibm.websphere.plugincfg.exception.PluginConfigException: PLGC0070E: The propagation of the plug-in keyring has failed for the Web server. PCCell1.AppSrv01Node.webserver1.


check that the Node Agent is running.

In the WAS 8.5 world, the remote management of IHS is undertaken by the Node Agent, rather than the IHS Admin Server Instance ( adminctl etc. ).

This, of course, assumes that WAS and IHS are tightly coupled, which may go against the suggested WAS security hardening routines such as: -



Bottom line, check your non-functional requirements, including security, when deciding whether IHS/Plugin should be tightly wired to the WAS cell / Deployment Manager.

What is this Orac of which I speak ?

$
0
0
I've blogged in the past about one of my home PCs, known as Orac, for reasons which will, I hope become, apparent.
Orac doesn't get enough use, partly because my life as a software rodeo star means that I'm on the road more than off, and partly because I normally end up doing most of what I want on my MacBook.

However, my New Year's Resolution ( dated 14 August 2014 ) is that I am going to do MUCH MUCH MORE with my various pieces of home PC equipment, including: -

  • Raspberry Pi
  • Apple Mac Mini
  • ~8 year old Thinkpad R50e
  • Humax PVR
  • Synology DS440 NAS
So, as I type, I'm upgrading Orac to the latest Ubuntu Trusty Tahr, and also backing up my MacBook to the Synology, via Ethernet of course.

Now what's the reason for this sudden (re)interest in my home technology ?

Well, partly, it's the fault of Stephen Tiberius Gibson Esq, who is the expert witness on the excellent SecurityNow podcast ( on iTunes ).

More to come .....

"Sixty ways to leave your lover" - or, in this case, sixty ways to remove CR from a file using vi

$
0
0
So I had a need to remove the ^M character from a text file, created using Notepad, in vi.

Last time around, I simply paged through the file ( it was ~20 lines long ) and removed the character by hand.

This time, for a longer file, I thought "Surely there's a better way?" and turned to Google.

Guess what, there are MANY ways to do this.

Here's a few: -

Sometimes DOS files end up on unix systems without being converted. Files will then have those nasty ^M character at the line ending, which prevents some applications to work properly.

The reason for is is DOS to use CRLF (carriage return + line feed) for line endings while unix uses LF (line feed) only.

If only few files need to be changed, vi/vim is the tool of choice.

After opening up the file, enter command mode to run this macro:

:%s/^M$//g

To get the ^M do not actually enter it as is. Insert it by typing the CTRL-V CTRL-M sequence instead.

...

You could also do the following from the command line:

strings oldfile>>newfile

Not as eloquent, but does the job.


For me, I used the strings method for one file and, for the other, I used a third approach: -

vi filename.txt
:1,$ s/^M//g

The trick, as pointed out above, is that you need to actually press CTRL-V CTRL-M to get the ^M sequence; you can't simply type ^ and then M :-)

Nice.

How to Increase the VMWare Boot Screen Delay

$
0
0
Something for which I had a requirement today: -

If you've wanted to try out a bootable CD or USB flash drive in a virtual machine environment, you've probably noticed that VMWare's offerings make it difficult to change the boot device. We'll show you how to change these options.


In essence, the author talks one through adding a setting to the .VMX configuration file, which adds a delay to the boot of a VM, providing access to the BIOS screen and function keys.

Which is nice .....

Running SpinRite inside DOS wrapped inside VirtualBox wrapped inside Ubuntu

$
0
0
So I'm using Steve Gibson's SpinRite hard-drive maintenance utility to check the health of the Maxtor 6YI60M0 drive that I use to boot Orac up - running Ubuntu 14.04, of course.

The quirk is that SpinRite is a good ole fashioned DOS application, that I downloaded from http://grc.com as an ISO image. I then built a VirtualBox VM, booting from the ISO, with an attached virtual disk that points at the Maxtor disk ( /dev/sdb ) upon which Ubuntu is installed.

So I have a DOS application running inside VirtualBox running inside Ubuntu .... checking the health of the disk upon which Ubuntu is installed.

Confused ?

I am but this blog post certainly helped guide me down this twisty, turny path, all alike



Weirdness with DNS

$
0
0
So I've not yet got the bottom of this one, but I do have a work-around.

I'm trying to register my Linux box with our internal Red Hat Network server, using the rhn_register command.

Whilst trying to validate that I could connect to the server, I tried this command: -

--2014-08-20 13:34:18--  https://rhn.linux.ibm.com/pub/bootstrap/bootstrap.sh
Resolving rhn.linux.ibm.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address "rhn.linux.ibm.com"


or: -


--2014-08-20 13:37:41--  https://rhn.linux.ibm.com/pub/bootstrap/bootstrap.sh
Resolving rhn.linux.ibm.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address "rhn.linux.ibm.com"


However, I was able to ping the box: -


PING rhn.linux.ibm.com (9.37.253.136) 56(84) bytes of data.
64 bytes from 9.37.253.136: icmp_seq=1 ttl=128 time=589 ms
64 bytes from 9.37.253.136: icmp_seq=2 ttl=128 time=544 ms
^C
--- rhn.linux.ibm.com ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2175ms
rtt min/avg/max/mdev = 544.718/567.256/589.795/22.551 ms


from both the Linux guest and the Mac host: -


PING ftp3.linux.ibm.com (9.37.253.130): 56 data bytes
64 bytes from 9.37.253.130: icmp_seq=0 ttl=48 time=562.601 ms
64 bytes from 9.37.253.130: icmp_seq=1 ttl=48 time=789.634 ms
^C
--- ftp3.linux.ibm.com ping statistics ---
3 packets transmitted, 2 packets received, 33.3% packet loss
round-trip min/avg/max/stddev = 562.601/676.118/789.634/113.516 ms


Interestingly, whilst the Mac host is using my home broadband router as a DNS server: -

cat /etc/resolv.conf

#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
domain home
nameserver 192.168.1.254


the Linux guest is using the Mac host: -

cat /etc/resolv.conf

# Generated by NetworkManager
domain localdomain
search localdomain uk.ibm.com
nameserver 192.168.8.2


The solution ?

I added the host to my /etc/hosts file: -

...
9.37.253.136    rhn.linux.ibm.com
...

Now it works .....

Why ?

I do not know.

I'm assuming that VMware is somehow blocking things, but I'm not quite sure .....

OS X Mavericks: Using Apple's hidden Wi-Fi Diagnostics tool

Using the IBM Integration Bus EmailInput node in your ESB

$
0
0
This from my ISSW colleague, Alasdhair Buchanan: -

Starting with WebSphere Message Broker V7, the EmailInput node has enabled you to provide input to a message flow via an e-mail, and the functionality remains the same in IBM Integration Bus V9. This article provides a simple example with the e-mail consisting of either text or a single attachment, and describes possible issues when you are processing more complex e-mail messages. It also shows you how to configure IBM Integration Bus to use the EmailInput node.

CRIMA1161E ERROR: Failed to find required installation files.

$
0
0
I've seen this a few times before: -

ERROR: Failed to find required installation files.

  CRIMA1161E ERROR:   Failed to find required installation files.

  Explanation: Installation Manager did not find required installation files from the repository.An issue has occurred with the package that cannot be resolved by Installation Manager.

  User Action: If the repository files were transferred from a different location before the installation, verify that the files were not altered during the transfer operation. Copy the repository files to a different location and install from that location.  If the repository files were not transferred note the package name and version number and contact customer support.

    CRIMC1020E ERROR:     plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100 not found

      ERROR:       'plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100' does not exist in /tmp/Repository/BPM/Product/IM64 (at /tmp/Repository/BPM/Product/IM64/plugins/com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100.jar).

      ERROR:       'plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100' not found.

      ERROR:       'plug-in com.ibm.was.ihs.moreinfo.v85_8.5.0.20120118_0100' not found in /tmp/Repository/WAS/Fixes/Supplements.


This time, the solution was easy - there was a typo in my response file.

I had written this: -

<repository location='/tmp/Repository/WAS/Product/Supplement'/>

when I actually meant to write this: -

<repository location='/tmp/Repository/WAS/Product/Supplements'/>

Easy when you know how :-)

IBM BPM 8.5.5 - Unpacking the Repository

$
0
0
So I'm scripting up an IBM Business Process Manager Advanced 8.5.5 installation, and needed to unpack the products, including IBM HTTP Server and the WebSphere Plugin: -

mkdir /tmp/Repository
mkdir /tmp/Repository/BPM/
mkdir /tmp/Repository/BPM/Product
cd /tmp/Repository/BPM/Product
for i in /root/SWGRepo/BPM/Product/*.tar.gz; do tar xvzf $i; done

mkdir /tmp/Repository/BPM/Fixes
cd /tmp/Repository/BPM/Fixes
for i in /root/SWGRepo/BPM/Fixes/*.zip; do unzip $i -d `echo $i | sed 's/\/root\/SWGRepo\/BPM\/Fixes\///g' | sed 's/.zip//g'`; done

mkdir /tmp/Repository/WAS
mkdir /tmp/Repository/WAS/Product
mkdir /tmp/Repository/WAS/Product/Supplements
cd /tmp/Repository/WAS/Product/Supplements
for i in /root/SWGRepo/WAS/Product/Supplements/*.zip; do unzip $i; done

mkdir /tmp/Repository/WAS/Fixes/Supplements
cd /tmp/Repository/WAS/Fixes/Supplements
for i in /root/SWGRepo/WAS/Fixes/Supplements/*.zip; do unzip $i; done


As you can tell, I love my FOR loops :-)

IBM Installation Manager - Looking at What We've Got To Install

$
0
0
See What's Available to Install - Binaries

/tmp/Repository/BPM/Product/IM64/tools/imcl listAvailablePackages -repositories /tmp/Repository/WAS/Product/Supplements,/tmp/Repository/WAS/Fixes/Supplements,/tmp/Repository/BPM/Product/repository/repos_64bit

com.ibm.websphere.APPCLIENT.v85_8.5.0.20120501_1108
com.ibm.websphere.IHS.v85_8.5.0.20120501_1108
com.ibm.websphere.PLG.v85_8.5.0.20120501_1108
com.ibm.websphere.PLUGCLIENT.v85_8.5.0.20120501_1108
com.ibm.websphere.WCT.v85_8.5.0.20120501_1108
com.ibm.websphere.APPCLIENT.v85_8.5.5002.20140408_1947
com.ibm.websphere.APPCLIENTILAN.v85_8.5.5002.20140408_1947
com.ibm.websphere.IHS.v85_8.5.5002.20140408_1947
com.ibm.websphere.IHSILAN.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLG.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLGILAN.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLUGCLIENT.v85_8.5.5002.20140408_1947
com.ibm.websphere.PLUGCLIENTILAN.v85_8.5.5002.20140408_1947
com.ibm.bpm.ADV.v85_8.5.5000.20140604_1130
com.ibm.websphere.ND.v85_8.5.5002.20140408_1947
com.ibm.ws.DB2EXP.linuxia64_10.1.1.20140530_0055


See What's Available to Install - iFixes

cd /tmp/Repository/BPM/Fixes
for i in 8.5.5.0*; do /tmp/Repository/BPM/Product/IM64/tools/imcl listAvailableFixes com.ibm.bpm.ADV.v85_8.5.5000.20140604_1130 -repositories $i; done


8.5.5.0-WS-BPM-IFJR49684_8.5.5000.20140612_1045
8.5.5.0-WS-BPM-IFJR49990_8.5.5000.20140707_1329
8.5.5.0-WS-BPM-IFJR50028_8.5.5000.20140710_1331
8.5.5.0-WS-BPM-IFJR50050_8.5.5000.20140725_1611
8.5.5.0-WS-BPM-IFJR50353_8.5.5000.20140702_1334
8.5.5.0-WS-BPM-IFJR50358_8.5.5000.20140722_1504
8.5.5.0-WS-BPM-IFJR50405_8.5.5000.20140721_1502
8.5.5.0-WS-BPMPCPD-IFPD50405_8.5.5000.20140721_1505
8.5.5.0-WS-BPM-IFJR50414_8.5.5000.20140709_1353
8.5.5.0-WS-BPM-IFJR50439_8.5.5000.20140714_1524
8.5.5.0-WS-BPM-IFJR50444_8.5.5000.20140721_1322
8.5.5.0-WS-BPM-IFJR50462_8.5.5000.20140612_1431
8.5.5.0-WS-BPM-IFJR50487_8.5.5000.20140716_0823
8.5.5.0-WS-BPM-IFJR50512_8.5.5000.20140623_1322
8.5.5.0-WS-BPM-IFJR50538_8.5.5000.20140703_1217
8.5.5.0-WS-BPM-IFJR50542_8.5.5000.20140815_1443
8.5.5.0-WS-BPM-IFJR50580_8.5.5000.20140722_2200
8.5.5.0-WS-BPM-IFJR50591_8.5.5000.20140711_0941
8.5.5.0-WS-BPM-IFJR50616_8.5.5000.20140716_1128
8.5.5.0-WS-BPMPCPD-IFPD50616_8.5.5000.20140716_1132
8.5.5.0-WS-BPM-IFJR50653_8.5.5000.20140714_1355
8.5.5.0-WS-BPM-IFJR50760_8.5.5000.20140716_0834
8.5.5.0-WS-BPM-IFJR50819_8.5.5000.20140725_1115
8.5.5.0-WS-BPM-IFJR50863_8.5.5000.20140807_1303
8.5.5.0-WS-BPM-IFJR51033_8.5.5000.20140818_2348
8.5.5.0-WS-BPMPCPD-IFJR50589_8.5.5000.20140801_1610


IBM Installation Manager - Installing BPM iFixes via a FOR loop

$
0
0
Following on from an earlier post: -


here's an updated script to install iFixes for IBM BPM Advanced 8.5.5: -

cd /tmp/Repository/BPM/Fixes
for i in *; do /opt/IBM/InstallationManager/eclipse/tools/imcl install $i -repositories ./$i -installationDirectory /opt/IBM/WebSphere/AppServer; done

Installed 8.5.5.0-WS-BPM-IFJR49684_8.5.5000.20140612_1045 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR49990_8.5.5000.20140707_1329 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50028_8.5.5000.20140710_1331 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50050_8.5.5000.20140725_1611 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50353_8.5.5000.20140702_1334 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50358_8.5.5000.20140722_1504 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50405_8.5.5000.20140721_1502 to the /opt/IBM/WebSphere/AppServer directory.
Installed 8.5.5.0-WS-BPM-IFJR50414_8.5.5000.20140709_1353 to the /opt/IBM/WebSphere/AppServer directory.

which builds on the earlier unpacking script: -

cd /tmp/Repository/BPM/Fixes
for i in /root/SWGRepo/BPM/Fixes/*.zip; do unzip $i -d `echo $i | sed 's/\/root\/SWGRepo\/BPM\/Fixes\///g' | sed 's/.zip//g'`; done

I could, of course, have chosen to install the iFixes at the same time as the binaries, but there's always going to be a requirement to install iFixes AFTER the product is built.

IBM BPM Advanced 8.5.5 - More fun and games with BPMDB Boot Strapping ...

$
0
0
This is definitely a case of "Look for the simple solution, before looking for the complex answer"

So I'm trying to bootstrap my BPM database ( the BPMDB used by the AppCluster ): -

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/bootstrapProcessServerData.sh -clusterName AppCluster

and I see this: -

Bootstraping data into cluster AppCluster

WASX7357I: By request, this scripting client is not connected to any server process. Certain configuration and application operations will be available in local mode.
java.lang.Exception: java.lang.reflect.InvocationTargetException
at com.ibm.bpm.bootstrap.BootstrapProcessServerDataHelper.loadInstallationGuid(BootstrapProcessServerDataHelper.java:534)
at com.ibm.bpm.bootstrap.BootstrapProcessServerDataHelper.bootstrapData(BootstrapProcessServerDataHelper.java:248)
at com.ibm.bpm.bootstrap.BootstrapHelper.execute(BootstrapHelper.java:125)
at com.ibm.websphere.management.async.client.AsyncCommandClient.execute(AsyncCommandClient.java:177)
at com.ibm.ws.scripting.adminCommand.AdminCmdController.executeCmd(AdminCmdController.java:1877)
at com.ibm.ws.scripting.adminCommand.AdminCmdController.processCmd(AdminCmdController.java:318)
at com.ibm.ws.scripting.adminCommand.AdminCmdProxyHandler.invoke(AdminCmdProxyHandler.java:92)
at com.ibm.ws.scripting.adminCommand.AdminCmdProxyBase.__method4(AdminCmdProxyBase.java:58)
at com.ibm.ws.scripting.adminCommand.AdminTask.bootstrapProcessServerData(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
at org.python.core.PyMethod.__call__(PyMethod.java)
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.PyInstance.invoke(PyInstance.java)
at org.python.pycode._pyx50.f$0(<input>:1)
at org.python.pycode._pyx50.call_function(<input>)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
at com.ibm.bsf.engines.jython.JythonEngine$BSFPythonInterpreter.runcode(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at com.ibm.bsf.engines.jython.JythonEngine.iexec(Unknown Source)
at com.ibm.bsf.BSFManager$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(AccessController.java:327)
at com.ibm.bsf.BSFManager.iexec(Unknown Source)
at com.ibm.ws.scripting.AbstractShell.executeCommands(AbstractShell.java:1117)
at com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:2265)
at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:1108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:981)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:380)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:151)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.bpm.bootstrap.BootstrapProcessServerDataHelper.loadInstallationGuid(BootstrapProcessServerDataHelper.java:519)
... 59 more
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:259)
at com.ibm.bpm.bootstrap.InstallationGuidHelper.loadInstallationGuid(InstallationGuidHelper.java:41)
... 64 more
Caused by: java.lang.IllegalStateException: Failed to initialize registry
at com.lombardisoftware.core.Registry.getInstance(Registry.java:116)
at com.lombardisoftware.utility.spring.ProgrammaticTransactionSupport.<clinit>(ProgrammaticTransactionSupport.java:112)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
... 65 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlersMap': Cannot create inner bean 'com.lombardisoftware.server.ejb.persistence.PSDefaultHandler#d32d0670' of type [com.lombardisoftware.server.ejb.persistence.PSDefaultHandler] while setting bean property 'sourceMap' with key [TypedStringValue: value [Task], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.lombardisoftware.server.ejb.persistence.PSDefaultHandler#d32d0670' defined in class path resource [registry.persistence.xml]: Cannot resolve reference to bean 'dao.task' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.task' defined in class path resource [registry.persistence.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:320)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.lombardisoftware.core.Registry.loadFromClasspath(Registry.java:73)
at com.lombardisoftware.core.Registry.load(Registry.java:65)
at com.lombardisoftware.core.Registry.getInstance(Registry.java:111)
... 68 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.lombardisoftware.server.ejb.persistence.PSDefaultHandler#d32d0670' defined in class path resource [registry.persistence.xml]: Cannot resolve reference to bean 'dao.task' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.task' defined in class path resource [registry.persistence.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 90 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dao.task' defined in class path resource [registry.persistence.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 100 more
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:259)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
... 112 more
Caused by: java.lang.IllegalStateException: Failed to initialize registry
at com.lombardisoftware.core.Registry.getInstance(Registry.java:116)
at com.lombardisoftware.server.ejb.persistence.dao.TaskDAO.<clinit>(TaskDAO.java:73)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
... 119 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'handlersMap': Cannot create inner bean 'com.lombardisoftware.server.ejb.persistence.UserGroupPersistenceHandler#49493cf7' of type [com.lombardisoftware.server.ejb.persistence.UserGroupPersistenceHandler] while setting bean property 'sourceMap' with key [TypedStringValue: value [UserGroup], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.lombardisoftware.server.ejb.persistence.UserGroupPersistenceHandler#49493cf7' defined in class path resource [registry.persistence.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:320)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:134)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.lombardisoftware.core.Registry.loadFromClasspath(Registry.java:73)
at com.lombardisoftware.core.Registry.load(Registry.java:65)
at com.lombardisoftware.core.Registry.getInstance(Registry.java:111)
... 122 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.lombardisoftware.server.ejb.persistence.UserGroupPersistenceHandler#49493cf7' defined in class path resource [registry.persistence.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
... 144 more
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:259)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)
... 151 more
Caused by: java.lang.IllegalStateException: Failed to initialize registry
at com.lombardisoftware.core.Registry.getInstance(Registry.java:116)
at com.lombardisoftware.server.ejb.persistence.UserGroupPersistenceHandler.<clinit>(UserGroupPersistenceHandler.java:34)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:237)
... 158 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'message.routingCache' defined in class path resource [registry.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.lombardisoftware.bpd.runtime.engine.message.DefaultMessageRoutingCache]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(AccessController.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.lombardisoftware.core.Registry.loadFromClasspath(Registry.java:73)
at com.lombardisoftware.core.Registry.load(Registry.java:65)
at com.lombardisoftware.core.Registry.getInstance(Registry.java:111)
... 161 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.lombardisoftware.bpd.runtime.engine.message.DefaultMessageRoutingCache]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
... 179 more
Caused by: java.lang.NullPointerException
at com.lombardisoftware.client.security.ServerTypeUtil.isRepository(ServerTypeUtil.java:35)
at com.lombardisoftware.server.ejb.environment.EnvironmentServicesCore.isRepository(EnvironmentServicesCore.java:460)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.lombardisoftware.utility.spring.TransactionInterceptor$2.call(TransactionInterceptor.java:67)
at com.lombardisoftware.utility.spring.ProgrammaticTransactionSupport.executeWithNoTransaction(ProgrammaticTransactionSupport.java:626)
at com.lombardisoftware.utility.spring.ProgrammaticTransactionSupport.execute(ProgrammaticTransactionSupport.java:327)
at com.lombardisoftware.utility.spring.TransactionInterceptor.invoke(TransactionInterceptor.java:65)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.lombardisoftware.utility.spring.CoreEntryInterceptor.invoke(CoreEntryInterceptor.java:44)
at com.lombardisoftware.utility.spring.PSCoreEntryInterceptor.invoke(PSCoreEntryInterceptor.java:14)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy47.isRepository(Unknown Source)
at com.lombardisoftware.bpd.runtime.engine.message.DefaultMessageRoutingCache.doInitCache(DefaultMessageRoutingCache.java:404)
at com.lombardisoftware.core.cache.LocalCache.initCache(LocalCache.java:254)
at com.lombardisoftware.server.core.cache.ServerCoreCache.<init>(ServerCoreCache.java:46)
at com.lombardisoftware.bpd.runtime.engine.message.DefaultMessageRoutingCache.<init>(DefaultMessageRoutingCache.java:78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:527)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
... 181 more
WASX7015E: Exception running command: "AdminTask.bootstrapProcessServerData(['-clusterName','AppCluster'])"; exception information:
java.lang.Exception: java.lang.Exception: java.lang.reflect.InvocationTargetException

Bootstrap failed


I checked to see whether WAS could "see" DB2 by testing one of the JDBC datasources - jdbc/mashupDS

The test connection operation failed for data source BPM Business Space data source on server nodeagent at node AppSrv01Node with the following exception: java.sql.SQLNonTransientException: [jcc][t4][2043][11550][4.11.69] Exception java.net.ConnectException: Error opening socket to server rhel6.uk.ibm.com/10.99.79.101 on port 60,011 with message: Connection refused. ERRORCODE=-4499, SQLSTATE=08001 DSRA0010E: SQL State = 08001, Error Code = -4,499. View JVM logs for further details.

and: -

telnet rhel6.uk.ibm.com 60011

Trying 10.99.79.101...
telnet: connect to address 10.99.79.101: Connection refused
telnet: Unable to connect to remote host

I checked /etc/services: -

...
DB2_db2inst160006/tcp
DB2_db2inst1_160007/tcp
DB2_db2inst1_260008/tcp
DB2_db2inst1_360009/tcp
DB2_db2inst1_460010/tcp
DB2_db2inst1_END60011/tcp

...

and confirmed that the database manager configuration was correctly setup: -

db2 get dbm config | grep -i svcename

 TCP/IP Service name                          (SVCENAME) = db2c_db2inst1
 SSL service name                         (SSL_SVCENAME) = 


db2set

DB2COMM=TCPIP
DB2AUTOSTART=NO


db2start

...
08/24/2014 20:50:30     0   0   SQL5043N  Support for one or more communications protocols specified in the DB2COMM environment variable failed to start successfully. However, core database manager functionality started successfully.
SQL1063N  DB2START processing was successful.
...

On the off-chance, I disabled my old friend, iptables: -

chkconfig --list| grep -i iptables

iptables       0:off1:off2:on3:on4:on5:on6:off

chkconfig --levels 345 iptables off

chkconfig --list| grep -i iptables

iptables       0:off1:off2:on3:off4:off5:off6:off

but to no avail.

I then looked deeper into the DB2 logs, specifically: -

/home/db2inst1/sqllib/db2dump/db2diag.log

...
2014-08-24-21.05.44.508779+060 I32445E505            LEVEL: Error
PID     : 27818                TID : 140205466052352 PROC : db2sysc 0
INSTANCE: db2inst1             NODE : 000
HOSTNAME: rhel6.uk.ibm.com
EDUID   : 1                    EDUNAME: db2sysc 0
FUNCTION: DB2 UDB, common communication, sqlcctcpconnmgr, probe:5
MESSAGE : DIA3201E The service name "db2c_db2inst1" specified in the database
          manager configuration file cannot be found in the TCP/IP services
          file.

...

Can you spot where I've gone wrong ??

Let's look at /etc/services again: -

DB2_db2inst160006/tcp
DB2_db2inst1_160007/tcp
DB2_db2inst1_260008/tcp
DB2_db2inst1_360009/tcp
DB2_db2inst1_460010/tcp
DB2_db2inst1_END60011/tcp

Spot anything missing ?

Yep, I've referenced a Service Name - db2c_db2inst1 - that does NOT actually exist :-)

Once I added this line to /etc/services: -

db2c_db2inst1   60012/tcp

I was able to start DB2 again: -

08/24/2014 21:12:00     0   0   SQL1063N  DB2START processing was successful.
SQL1063N  DB2START processing was successful.


and test the connection via Telnet: -

telnet rhel6.uk.ibm.com 60012

Trying 10.99.79.101...
Connected to bpm85dev.opentec.tec.hur.cdn.
Escape character is '^]'.

^]
telnet> quit
Connection closed.


I now need to go and update all of my JDBC data sources to point at 60012 rather than 60011, but c'est la vie :-)

Guess what, my JDBC Data Sources now test OK: -

...
The test connection operation for data source BPM Business Space data source on server nodeagent at node AppSrv01Node was successful.
...

and, even better, the bootstrap process works OK: -

...
importFile: /opt/IBM/WebSphere/AppServer/BPM/Lombardi/imports/advanced-hiring-sample.twx
deploy: false
latestSystemToolkit: false
activateSnapshot: false
importFile: /opt/IBM/WebSphere/AppServer/BPM/Lombardi/imports/procurement-sample.twx
deploy: false
latestSystemToolkit: false
activateSnapshot: false
'BootstrapProcessServerData admin command completed successfully.....'

...


RAM Raiders - Where has my RAM gone ?

$
0
0
Looking at my Linux box ( I am running Red Hat Enterprise Linux Server release 6.4 ), I was wondering where my RAM had gone .....

This is what I have: -

free -m

             total       used       free     shared    buffers     cached
Mem:         16081       8876       7205          0        378       7036
-/+ buffers/cache:       1462      14619
Swap:         8015        153       7862



Don't worry, this site had the answer: -



<snip>
How do I see how much free ram I really have?

To see how much ram is free to use for your applications, run free -m and look at the row that says "-/+ buffers/cache" in the column that says "free". That is your answer in megabytes:
$ free -m
             total       used       free     shared    buffers     cached
Mem:          1504       1491         13          0         91        764
-/+ buffers/cache:        635        
869

Swap:         2047          6       2041
$

If you don't know how to read the numbers, you'll think the ram is 99% full when it's really just 42%.
</snip>

In other words, I have most of my 16 GB RAM available to me ( ~89% ) which is nice.

Now that I did not know - Amazon and iTunes together

$
0
0
So I was recently shopping for a copy of an old-but-good Kate Bush album, The Whole Story. Apple's iTunes had it for £4.99 whereas Amazon had the same MP3 version for £4.59. Now I'm not saying I'm mean but ..... well, it is 50 pence :-)

I bought the album via Amazon, and then thought .... OK, how do I get the album downloaded AND added into my iTunes library in order that I can play it on my iPhone, iPad etc.

Well, Amazon came to the rescue ....


Once I'd downloaded and installed this OS X app, I logged into my Amazon account from within the app. and was given the opportunity to download the new LP.

Post-download, the app then prompted me to "export" the music into iTunes.

I went into my iTunes library and .... voila.

Colour me impressed.

For further information: 



Viewing all 1851 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>