Tuesday, June 29, 2010

Check Out failed. Message "Operation failed because it requires both read and write privileges"

The files with the problem reported originated from the project that had some security access restrictions set.

Some time ago these security restrictions were lifted on all the projects, but the files that became members of the derived (subsequent) projects retained these restrictions.
If these restrictions are no longer relevant - ask an admin or a member of original security group to remove them, by checking out files and changing the security on each file individually,
if they still are - see if you should be the member of the group that does have the write access to these files.

To remove files access restrictions:
- create a task and check out the file(s),
- right click the file object,
- select Properties -> Security.
- see the groups managing the object,
-
remove the check mark by the group name or check the appropriate radio button to remove the restrictions altogether,
- complete task.

"ACcent execution aborted in module ..."

There are several reasons for failures reported as "ACcent execution aborted in module".
Some are described and detailed in IBM Tech notes (like the DCM related here), others are said to be caused by the inconsistency in the server and client versions.

What I found yesterday was the location of the local copy of the database files that can be passed to the ccm start command with the "-u" flag.

At first we had these lines reported as a warning upon session start. They say in this situation session would start and we saw some operations performed, but some would fail, so it is not safe to ignore these:

ACcent execution aborted in module attr:10028, file /tmp/acAAEFBD.TMP.ac, line 14
ACcent execution aborted in module modinit, file src/base/model_init.ac, line 63
ACcent execution aborted in module remote_client, file src/base/remote_client.ac, line 59
ACcent execution aborted in module remote_client, file src/base/remote_client.ac, line 42
ACcent execution aborted in module base, file src/base/base.ac, line 401
ACcent execution aborted in module base, file src/base/base.ac, line 275
Warning: operand of generic cast has an incompatible type
Starting in multiple server mode.
Set the environment variable CCM_ADDR to machine:PID:IP to send commands to this server.


Then we zerroed out all the user ini files (.ccm.ini, ccm.properties etc.) and started afresh.
Now even the status command failed:

> ccm status
Warning: ACcent execution aborted in 'lscmds:status'
ACcent execution aborted in module lscmds, file src/foci/lscmds.ac, line 136
ACcent execution aborted in module base, file src/base/base.ac, line 401
ACcent execution aborted in module base, file src/base/base.ac, line 325
Warning: Lost connection to engine, exiting
Warning: Command execution failed.
Check user interface log file for error messages.

This helped at the end:
ccm start -d -h -m -nogui -u /tmp/whateverlocation -rc

Thursday, June 10, 2010

Synergy: release attributes

Just in case, here are the release attributes (and how to list them)

> ccm query -type releasedef -name "KUKU"
...
> ccm attr -la @1
_import_status_order (string) (inherited)
active (boolean) (local)
allow_dcm_transfer (boolean) (local)
allow_delimiter_in_name (boolean) (inherited)
allow_delimiter_in_version (boolean) (inherited)
atcp_attrs (text) (inherited)
auto_merge_cmd (string) (inherited)
baseline (string) (local)
can_be_product (boolean) (inherited)
cli_compare_cmd (string) (inherited)
cli_merge_cmd (string) (inherited)
component_name (string) (local)
component_release (string) (local)
create (acc_method) (inherited)
create_time (time) (local)
cvtype (string) (local)
dcm_has_modifiable_in (boolean) (inherited)
dcm_non_specific_instance (boolean) (inherited)
delete (acc_method) (inherited)
derive (acc_method) (inherited)
description (text) (local)
dflt_status (string) (inherited)
diff_source_attr (string) (inherited)
displayname (acc_method) (inherited)
export_exclude_attrs (text) (inherited)
export_exclude_relations (text) (inherited)
groups (text) (local)
gui_compare_cmd (string) (inherited)
gui_merge_cmd (string) (inherited)
icon (string) (inherited)
import_ignore_attrs (text) (inherited)
included_releases (text) (local)
is_asm (boolean) (local)
is_model (boolean) (local)
is_versioned (boolean) (inherited)
keyword_expand_attrs (text) (inherited)
manager (string) (local)
max_component_name_length (string) (inherited)
max_component_release_length (string) (inherited)
modify_time (time) (local)
name (string) (local)
next_version (acc_method) (inherited)
no_copy_on_derive (text) (inherited)
objectname (acc_method) (inherited)
owner (string) (local)
parallel_check_in (boolean) (local)
parallel_check_out (boolean) (local)
parallel_create (boolean) (inherited)
parallel_promote (boolean) (inherited)
parallel_promote_defs (text) (inherited)
parallel_promote_states (string) (inherited)
phase (text) (local)
phase_log (text) (local)
post_create (acc_method) (inherited)
post_derive (acc_method) (inherited)
post_set_status (acc_method) (inherited)
pre_create (acc_method) (inherited)
pre_derive (acc_method) (inherited)
pre_set_status (acc_method) (inherited)
relate (acc_method) (inherited)
require_task (string) (inherited)
restricted_attributes (text) (inherited)
set_status (acc_method) (inherited)
source_attrs (text) (inherited)
source_diff (acc_method) (inherited)
source_merge (acc_method) (inherited)
status (string) (local)
status_log (uptext) (local)
subsystem (string) (local)
super_type (string) (inherited)
type_description (string) (inherited)
ui_defs (acc_method) (inherited)
unrelate (acc_method) (inherited)
version (string) (local)
version_delims (text) (inherited)
version_diff (acc_method) (inherited)
wa_type (string) (inherited)
xml_export_exclude_attrs (text) (inherited)
xml_export_exclude_relations (text) (inherited)
xml_import_ignore_attrs (text) (inherited)
xml_import_noimage_attrs (text) (inherited)

Monday, May 31, 2010

Check Outs into a project with no work area

Did yo know that files been Checked Out into a project with no work area will disappear from this project on the next Update operation?
The objects will remain in the database, and when Checked In will be found in the project.
So if you ever need to Check Out an object from the project with no work area make sure to Check them In before making further changes.

Tuesday, April 13, 2010

Synergy Linux Java client failed to start

Symptoms:
Both CLI and Classic client start fine, but the Java client start fails. It displays the login dialog, then briefly displays splash screen, then fails with no message.
The only trace is the ‘Permission denied’ in the ccm_eng.log.
Background:
The client IP has changed since the last good start.
Solution:
Make sure the server's /etc/hosts lists the correct machine name and IP for the client machine.
End of story.

Sunday, April 11, 2010

Error starting Java client on Linux machine

Symptoms:
The Linux Java client would not start with the following popup:






The log file $HOME/ccm_client.log has the following trace:
04/12 08:31:05 java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
04/12 08:31:05 at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
04/12 08:31:05 at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:217)
04/12 08:31:05 at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)
04/12 08:31:05 at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)
04/12 08:31:05 at sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:150)
04/12 08:31:05 at sun.awt.X11.XWindow.<init>(XWindow.java:86)
04/12 08:31:05 at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:101)
04/12 08:31:05 at sun.awt.X11.XCanvasPeer.<init>(XCanvasPeer.java:22)
04/12 08:31:05 at sun.awt.X11.XPanelPeer.<init>(XPanelPeer.java:27)
04/12 08:31:05 at sun.awt.X11.XWindowPeer.<init>(XWindowPeer.java:53)
04/12 08:31:05 at sun.awt.X11.XDecoratedPeer.<init>(XDecoratedPeer.java:36)
04/12 08:31:05 at sun.awt.X11.XFramePeer.<init>(XFramePeer.java:41)
04/12 08:31:05 at sun.awt.X11.XToolkit.createFrame(XToolkit.java:349)
04/12 08:31:05 at java.awt.Frame.addNotify(Frame.java:491)
04/12 08:31:05 at java.awt.Window.pack(Window.java:484)
04/12 08:31:05 at com.telelogic.cm.ccm_client.panes.LoginPane.showInFrame(LoginPane.java:473)
04/12 08:31:05 at com.telelogic.cm.ccm_client.StartClient.runClient(StartClient.java:654)
04/12 08:31:05 at com.telelogic.cm.ccm_client.StartClient.main(StartClient.java:95)
04/12 08:31:05 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04/12 08:31:05 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
04/12 08:31:05 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04/12 08:31:05 at java.lang.reflect.Method.invoke(Method.java:585)
04/12 08:31:05 at com.zerog.lax.LAX.a([DashoPro-V1.2-120198])
04/12 08:31:05 at com.zerog.lax.LAX.main([DashoPro-V1.2-120198])
04/12 08:31:05 --- BEGIN UNHANDLED EXCEPTION ERROR REPORT ---
04/12 08:31:05 An internal error has occurred at Mon Apr 12 08:31:05 IDT 2010
04/12 08:31:05 Unhandled runtime exception: java.lang.IllegalArgumentException
04/12 08:31:05 Exception Message: Width (0) and height (0) cannot be <= 0
04/12 08:31:05
04/12 08:31:05 Stack trace:
04/12 08:31:05 java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
04/12 08:31:05 at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
:
04/12 08:31:05 at sun.awt.X11.XFramePeer.setIconImage(XFramePeer.java:217)
04/12 08:31:05 at sun.awt.X11.XFramePeer.postInit(XFramePeer.java:75)
04/12 08:31:05 at sun.awt.X11.XBaseWindow.init(XBaseWindow.java:117)
04/12 08:31:05 at sun.awt.X11.XBaseWindow.<init>(XBaseWindow.java:150)
04/12 08:31:05 at sun.awt.X11.XWindow.<init>(XWindow.java:86)
04/12 08:31:05 at sun.awt.X11.XComponentPeer.<init>(XComponentPeer.java:101)
04/12 08:31:05 at sun.awt.X11.XCanvasPeer.<init>(XCanvasPeer.java:22)
04/12 08:31:05 at sun.awt.X11.XPanelPeer.<init>(XPanelPeer.java:27)
04/12 08:31:05 at sun.awt.X11.XWindowPeer.<init>(XWindowPeer.java:53)
04/12 08:31:05 at sun.awt.X11.XDecoratedPeer.<init>(XDecoratedPeer.java:36)
04/12 08:31:05 at sun.awt.X11.XFramePeer.<init>(XFramePeer.java:41)
04/12 08:31:05 at sun.awt.X11.XToolkit.createFrame(XToolkit.java:349)
04/12 08:31:05 at java.awt.Frame.addNotify(Frame.java:491)
04/12 08:31:05 at java.awt.Window.pack(Window.java:484)
04/12 08:31:05 at com.telelogic.cm.ccm_client.panes.LoginPane.showInFrame(LoginPane.java:473)
04/12 08:31:05 at com.telelogic.cm.ccm_client.StartClient.runClient(StartClient.java:654)
04/12 08:31:05 at com.telelogic.cm.ccm_client.StartClient.main(StartClient.java:95)
04/12 08:31:05 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04/12 08:31:05 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
04/12 08:31:05 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04/12 08:31:05 at java.lang.reflect.Method.invoke(Method.java:585)
04/12 08:31:05 at com.zerog.lax.LAX.a([DashoPro-V1.2-120198])
04/12 08:31:05 at com.zerog.lax.LAX.main([DashoPro-V1.2-120198])
04/12 08:31:05
04/12 08:31:05 Public SCCS_IDs:
04/12 08:31:05 @(#) %full_filespec: LoginPane.java,79:java:J#1 %
04/12 08:31:05 @(#) %full_filespec: StartClient.java,51.1.1:java:J#1 %
04/12 08:31:05
04/12 08:31:05 Release 6.5 4105
04/12 08:31:05 Build numbers:
04/12 08:31:05 com/telelogic/cm/internal/objectapi/ unknown
04/12 08:31:05 com/telelogic/cm/sessionmgr/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/command/ unknown
04/12 08:31:05 com/telelogic/cm/activecm/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/helper/ unknown
04/12 08:31:05 com/telelogic/cm/service/ 1998
04/12 08:31:05 com/telelogic/cm/objectapi/make/command/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/query/ unknown
04/12 08:31:05 com/telelogic/cm/shared_client/ 2003
04/12 08:31:05 com/telelogic/cm/eventservices/ 2011
04/12 08:31:05 com/telelogic/cm/objectapi/ unknown
04/12 08:31:05 com/telelogic/cm/common/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/error/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/query/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/make/ unknown
04/12 08:31:05 com/telelogic/cm/jrfc/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/accutil/ unknown
04/12 08:31:05 com/telelogic/cm/crapi/ unknown
04/12 08:31:05 com/telelogic/cm/licensemgr/ 1998
04/12 08:31:05 com/telelogic/cm/jrfc/router/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/access/ unknown
04/12 08:31:05 com/telelogic/cm/util/ unknown
04/12 08:31:05 com/telelogic/cm/crapi/adapters/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/service/ unknown
04/12 08:31:05 com/telelogic/cm/internal/users/ unknown
04/12 08:31:05 com/telelogic/cm/shared_client/acm/ 2003
04/12 08:31:05 com/telelogic/license/ 1998
04/12 08:31:05 com/telelogic/cm/internal/crapi/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/update/ unknown
04/12 08:31:05 com/telelogic/cm/server/ 1998
04/12 08:31:05 com/telelogic/cm/resource/ unknown
04/12 08:31:05 com/telelogic/cm/jrfc/objreg/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/dbconfig/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/workarea/ unknown
04/12 08:31:05 com/telelogic/cm/jrfc/activecm/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/command/ unknown
04/12 08:31:05 com/telelogic/cm/jrfc/utils/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/exception/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/adapters/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/security/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/helper/ unknown
04/12 08:31:05 com/telelogic/cm/util/event/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/longcall/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/update/command/ unknown
04/12 08:31:05 com/telelogic/cm/objectapi/database/ unknown
04/12 08:31:05 com/telelogic/cm/shared_client/util/ 2003
04/12 08:31:05 com/telelogic/cm/objectapi/dcm/ unknown
04/12 08:31:05 com/telelogic/cm/jrfc/types/ unknown
04/12 08:31:05 com/telelogic/cm/ccm_client/ unknown
04/12 08:31:05 com/telelogic/cm/internal/security/ unknown
04/12 08:31:05 com/telelogic/cm/internal/objectapi/warning/ unknown
04/12 08:31:05 --- END UNHANDLED EXCEPTION ERROR REPORT ---

Solution:
Set environment variable AWT_TOOLKIT:
export AWT_TOOLKIT=MToolkit

Explanation:

Synergy how to copy a project with subprojects

ccm checkout -wa -cb -project ProjName#proj_ver -update -subprojects -versions "firtsprojver:firtprojver_user,nextprojver:nextprojver_user" -path /home/user/ccm_wa