From the forums: Getting CBE events into a database
From April 16-May 25, 2007: Plus, the role of the Java executable in installing RAC; again, more ways static variables can mess up a GLA adapter run; why is my SLES9, zLinux ISC install failing; in my SI setup, JavaCustomAction in the Uninstall artifact is ignored; and more.
Problem: I am trying to install the Agent Controller on my PC. I tried with all JRE versions during setup. It shows an error message "The path specified does not contain valid java executable." Which java.exe should I specify for the RAC installation. My JRE is installed at C:\Program Files\Java\jdk1.5.0_01\jre\bin.
[Agent Controller for GLA/LTA support]
Resolution: I used the setup.exe in C:\Program Files\IBM\BuildToManageTKPD\AgentController\installers\win_ia32, which is created when you download and install RACSecure_v7-0-1_Win32.exe. And I used this JRE - C:\Program Files\IBM\BuildToManageTKPD\ACLT_GLA\_jvm\jre\bin\java.exe -- this is the IBM JRE v1.5 bundled with the BTM Toolkit components. Please note, when you give JRE path, you have to include java.exe too, like shown above.
Problem: I have two instances of one class called AdapterItem. Each AdapterItem creates a new Adapter object (Adapter adapter = new Adapter()). While the first one is running (adapter.start(true, false)), I want to start the second so they will run parallel. In every AdapterItem there is also a thread which checks every 100ms for how many Items are processed (adapter.getStatus().getItemsProcessedCount()).
When I start it, it's first gonna work on 10 log items. Because this adapter has the continuousOperation set to true it waits for new log items coming into the log file. Now I start the second adapter which will process about 10000 log items; but when it starts to process the second adapter both counters (adapter.getStatus().getItemsProcessedCount()) grow simultaneously and are going to hang after some time.
Can I only run one adapter at a time? Or is there another problem?
[Generic Log Adapter (GLA) and the Log Trace Analyzer (LTA) support ]
Resolution: Currently, the GLA is designed to run with a single adapter at a time. We haven't tested parallel execution of two adapters in the same jvm. You may have issues with static variables whose values might get shared across both threads.
However, an adapter can have multiple contexts to parse multiple files at once (of the same type, using the same adapter). (According to user, turns out the problem was with static adapters.)
Problem: I'm using the Adapter.getStatus() method to check every 100ms how many items the adapter processed. It works fine for a rule-based adapter using something like SingleOSFileSensor, but when I'm using a static parser like StaticParserSensor it doesn't work. There are two different instances of the status, so the sensor is updating one and the adapter sensor never gets these updates. I looked at the source code and can't really understand why it doesn't work. Hopefully there is a simple solution or I have an error in reasoning.
[Generic Log Adapter (GLA) and the Log Trace Analyzer (LTA) support ]
Resolution: Asked and answered. "Now I understand why it doesn't work. The getItemsProcessedCount method only adds the counters of the last status. This one will mostly be the Outputter. I implemented my own Outputter and didn't call the incrementItemsProcessedCount method. Now it's working fine."
Problem: I'm attempting to install ISC on a zLinux LPAR running SLES 9. After repeated attempts, I keep receiving the following error:
Setup.product.install, com.ibm.isc.install.ismp.FailAndExitAction, wrn, ISCArchiveFixupFail_Exit
Setup.product.install, com.ibm.isc.install.ismp.FailAndExitAction, wrn,
Setup.product.install, com.ibm.isc.install.ismp.FailAndExitAction, msg2, status=FAILED,timestamp=
Thu May 10 13:35:40 EDT 2007,progress=(unchanged)
I have removed all the directories, files, and temp files from the installation, rebooted and attempted the reinstall. I am not able to get past this error. Truthfully, I don't even know what it means. Any help would be greatly appreciated.
[Integrated Solutions Console support]
Resolution: Not yet. The support team asked the user to go to his temp folder, get all the files starting with ISC, zip them, and attach it to the post. Readers, while we wait, do you have an possible answers?
Problem: I downloaded acdocs.zip on 4/30/07 and extracted all files. I am trying to run SymptomVideo.exe on T60p w/Windows XP, but there is no audio. And it runs relatively fast. It is hard to understand and capture what it is doing without looking at it more than once. Any ideas?
[Solution Installation and Deployment support]
Resolution: This video doesnt have any audio. It is a bit fast when you see first time, the easiest way to pause and resume is to tap the space bar. You may also control the playback using the slider in the bottom. We will try to make it better in the next release.
Problem: I have Install and Uninstall artifacts. JavaCustomAction in the Install artifact works well, but JavaCustomAction in Uninstall is ignored without any explanation or errors in log files. Why?
[Solution Installation and Deployment support]
Resolution: If there was no exception or error, then we suspect that the action has not been executed. One of the common reasons we find is a wrong value set in the operation attribute in the action element. It should be "Delete" in Uninstall Artifact and "Create" in Install Artifact. If otherwise, that action will be ignored.
For example:
<executeJavaClass>
<action keep_std_output_file="true" keep_std_error_file="true" operation="Delete">
<class_name>MyCustomAction</class_name>
<classpath><path>.</path></classpath>
<bean_properties>
<property name="installLocation">
<setter>jca_test</setter>
</property>
<property name="context">
<setter>jca_test/jca_test.txt</setter>
<getter output_variable="context"/>
</property>
</bean_properties> <std_output_file>stdout.log</std_output_file>
<std_error_file>stderr.log</std_error_file>
</action>
</executeJavaClass>
Also, set the std_output_file and std_error_filekeep_std_output_file and keep_std_error_file attributes in action element to true so that it remains on the system after execution for reference.
If the problem still persists, do send us the Uninstall Artifact file.
Problem: I checked the operation attribute -- it is set to "Delete" but the class still does not execute on Uninstall. I'll send you Install and Uninstall artifacts. Class Test is a simple class which writes some strings to the log. (Readers: Here is the 2.2KB file InstallerEmailClientWebApp.xml.)
Resolution: Which version of SI runtime (Deployment Engine) are you using? We use DE(20070402D2). We have packages which use Java Custom Action in Uninstall Artifact and it works fine. For Uninstallation, the class file cannot be referred by its fileIdRef; it is expected to be on the system. Also the operation in the Uninstall Artifact should be Delete.
Problem: I use DE at 20051211D4 version. In my Uninstall artifact, the class file is not referred by its fileIdRef. I suppose that it is on the system.
In any case, DE does not shows any errors (there are no errors in local log and no errors in global SI log). It seems like java action is ignored. Is it possible that problem is concerned with old version of the SI runtime?
Resolution: It looks like you have a very old version. Can you try upgrading to a newer one? It is very likely the problem.
Problem: I read Nags February post on getting CBE events into a database and this created more questions. I am interested in doing exactly this and am hoping others could share their experience. I have an application hosted in WebSphere and currently all user actions are logged in the WAS activity log. I would like to filter specific user actions and save those in a DB for archival and better display options.
Writing a custom outputter seems to be the simplest approach. Has anyone done this? Is there standard DDL available to create CBE schema in DB2?
What about CEI? Is anyone using this approach? Any documentation on how to configure CEI outputter and CEI server?
[Build to Manage toolkits forum]
Resolution: CEI would be a more scalable option to store and retrieve the CBEs. Currently CEI is shipped with WPS (WebSphere Process Server). You can read more about it here:
Problem: I have successfully installed WPS and am able to send CBE objects to the CEI component and they end up in the event database! WPS installation was not trivial; the documentation was hard to follow, but to my surprise it works! 8 )
Most of what I needed to get GL adapter working was documented in the forum topic "I am having problems using the CEI Outputter." I needed to add one additional JAR file to my classpath in gla.sh: $WAS_HOME/runtimes/com.ibm.ws.webservices.thinclient_6.1.0.jar. Without this, gla.sh would fail with the following exception:
java.lang.NoClassDefFoundError: Invalid Implementation Key, com.ibm.CORBA.iiop.WLMPlugin
I found the solution to this problem at "EJB call on a WAS 6.1 cluster > How to fix a WSVR0073W warning code when trying to call a web service in WAS 6.1."
Problem: Now that I am able to use CEIOutputter in GLA to get CBE objects persisted in the CEI event database (see previous problem), I want to display, report, and do other interesting things with the event data. Is there a UML diagram available that documents the event db schema? Is there any other schema documentation?
[Build to Manage toolkits forum]
Resolution: Not yet. Maybe next time.
Categories
: [ Forums ]
May 25 2007, 01:24:00 PM EDT
Permalink
|