Adding user in specific Space in Webcenter

Small tip – To add user in space with some specified or custom role

Solution -If you are using PS6, this code will help you doing that.

    public void addMemberInSpace(String SpaceName, String userid) throws GroupSpaceWSException {
        logger.fine("Entering AddMember");
        try {
            GroupSpaceWSClient Gsclient = new GroupSpaceWSClient(contextData);

            String userRole = "CustomRole"; // You can define default role as admin, viewer, Moderator or some custom role as well
            GroupSpaceWSMembers memberData = new GroupSpaceWSMembers(userid, userRole);
            //Approval code will be added
            List<GroupSpaceWSMembers> addMem = new ArrayList<GroupSpaceWSMembers>();
            Gsclient.addMember(SpaceName, addMem);
        } catch ( gsException) {
            throw gsException;
        } catch (Exception exception) {
            throw new GroupSpaceWSException("Exception caught during addMembership ", null, null, exception, null);


Happy Coding with techartifact….

java.lang.OutOfMemory Java Heap Space error in JDeveloper

Quite annoying error and you don’t know what went wrong.

Well you can resolve by yourself.

First step – Search for ide.conf and jdev.conf in you JDeveloper installation folder like …/jdeveloper/ide/bin/ide.conf

Second step-In ide.conf file, copy extactly these properties into that.
AddVMOption -Xmx940M
AddVMOption -Xms128M

Third Step – In jdev.conf file, make sure the following properties are set exactly the same
AddVMOption -XX:MaxPermSize=356M

Fourth Step – Disable the SVN versioning system that is built into JDeveloper.Uncheck the checkbox for Subversion for example support for GIT

In JDeveloper -> Choose Versioning menu -> Choose Configure -> Uncheck “Versioning support for Subversion”

Happy learning with Vinay in Techartifact…..