facebook

[Workaround] Unable to locate .myeclipse.properties

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #248022 Reply

    Riyad Kalla
    Member

    A handful of users have been reporting problems with Pro features (like UML) and when checking their log files all of them have the following line in it somewhere:

    !ENTRY com.genuitec.eclipse.core 1 0 2006-03-08 03:11:29.71
    !MESSAGE Unable to locate .myeclipse.properties file

    and then a stack trace for the feature they were trying to use, say UML, that looks something like this:

    !ENTRY org.eclipse.ui 4 0 2006-03-08 03:11:29.414
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.core.C.ĉ(Unknown Source)
    at com.genuitec.eclipse.core.C.Č(Unknown Source)
    <snip…>

    The problem is that MyEclipse stores your subscription information in the .myeclipse.properties file in your user home directory so you don’t need to reenter that information for every workspace. If MyEclipse is spitting out that first exception it means that it is unable to write/create the properties file in the first place which would imply some sort of permission problem with your user home directory. On Windows this directory is stored under the environment variable USERPROFILE, under Linux I believe $HOME or ~ will give you your user dir.

    If you are experiencing problems like the ones stated above and see the “Unable to locate…” message in your log file (located at: <workspace dir>\.metadata\.log) try and make sure the permissions for your user home directory are correct.

    #248248 Reply

    ihbelda
    Member

    Thanks but I think my problem is before this 😉

    Going in deep in what could happen, I have seen in the install log the following error:
    Install Action: RPMSpecFile
    Status: ERROR
    Additional Notes: ERROR – There was a problem creating the RPM package. You may not be running as root or may not have installed RPM Builder correctly.
    ERROR – java.lang.NullPointerException

    My system is Fedora Core 4 (2.6.15-1.1833_FC4smp)

    I have run the install again with LAX_DEBUG=1 option and obtain the next output:

    [root@localhost Eclipse]# ./EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.bin
    Preparing to install…
    Checking for POSIX df.
    Found POSIX df.
    True location of the self extractor: /soft/Eclipse/EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.bin
    Creating installer data directory: /tmp/install.dir.17972
    Creating installer data directory: /tmp/install.dir.17972/InstallerData
    Gathering free-space information…
    Space needed to complete the self-extraction: 298261 blocks
    tail: `-1′ option is obsolete; use `-n 1′
    Try `tail –help’ for more information.
    Available space: blocks
    Available blocks: Needed blocks: 298261 (block = 512 bytes)
    ./EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.bin: line 327: [: `)’ expected, found -z
    WARNING! The amount of /tmp disk space required and/or available
    could not be determined. The installation will be attempted anyway.
    This installation does not contain a VM.
    Extracting the installation resources from the installer archive…
    Extracting install.zip from ./EnterpriseWorkbenchInstaller_4.1.1GA_E3.1.bin to /tmp/install.dir.17972/InstallerData/installer.zip …
    Extracting done, exit code = 0
    Configuring the installer for this system’s environment…

    ========= Analyzing UNIX Environment =================================
    Setting UNIX (linux) flavor specifics.
    Importing UNIX environment into LAX properties.
    Checking for POSIX awk.

    ========= Analyzing LAX ==============================================
    LAX found………………………. OK.
    LAX properties read……………… OK.

    ========= Finding VM =================================================
    Valid VM types…………………….. J2
    Expanded Valid VM types…………….. JRE_J2 JDK_J2
    WARNING! No valid lax.nl.current.vm available.
    Searching for VMs in PATH:
    Looking in:……………………….. /bin
    Looking in:……………………….. /root/bin
    Looking in:……………………….. /sbin
    Looking in:……………………….. /usr/X11R6/bin
    Looking in:……………………….. /usr/bin
    Found VM:……………………….. /usr/bin/java
    Looking in:……………………….. /usr/kerberos/bin
    Looking in:……………………….. /usr/kerberos/sbin
    Looking in:……………………….. /usr/local/bin
    Looking in:……………………….. /usr/local/sbin
    Looking in:……………………….. /usr/sbin
    Looking in:……………………….. /usr/xpg4/bin
    * Using VM:……………………….. /usr/java/jdk1.5.0_06/bin/java
    Current VM is NOT a HotSpot VM

    ========= Virtual Machine Options ====================================
    LAX properties incorporated…………. OK.
    classpath…………………………. “/tmp/install.dir.17972/InstallerData:/tmp/install.dir.17972/InstallerData/installer.zip”
    main class………………………… “com.zerog.ia.installer.Main”
    .lax file path…………………….. “/tmp/install.dir.17972/temp.lax”
    user directory…………………….. “/tmp/install.dir.17972”
    stdout to…………………………. “console”
    sterr to………………………….. “console”
    install directory………………….. “”
    JIT………………………………. none
    option (verify)……………………. off
    option (verbosity)…………………. none
    option (garbage collection extent)…… none
    option (garbage collection thread)…… none
    option (native stack max size)………. none
    option (java stack max size)………… none
    option (java heap max size)…………. 50331648
    option (java heap initial size)……… 16777216
    option (lax.nl.java.option.additional).. none

    ========= Display settings ===========================================
    X display…………………………. local
    UI mode…………………………… gui

    Launching installer…

    ========= VM Command Line ============================================
    CLASSPATH=/tmp/install.dir.17972/InstallerData:/tmp/install.dir.17972/InstallerData/installer.zip
    “/usr/java/jdk1.5.0_06/bin/java” -Djava.compiler=NONE -Xmx50331648 -Xms16777216 com.zerog.lax.LAX “/tmp/install.dir.17972/temp.lax” “/tmp/env.properties.17972”

    ========= Executing JAVA =============================================
    LAX Version = 5.5
    FileEncoding::initialize()- platform default encoding: UTF-8
    FileEncoding::initialize()- using encoding: UTF-8
    seaFilename = EnterpriseWorkbenchInstaller_4.1.1GA_E3.1
    Default properties location = /soft/Eclipse/
    UI Mode set to Default – SWING.
    __________________________________________________________________________

    __________________________________________________________________________

    InstallAnywhere 5.5.1 Enterprise
    __________________________________________________________________________

    Fri Mar 10 10:54:34 CET 2006

    Free memory = 14917 kB
    Total memory = 16320 kB

    No arguments.

    java.class.path:
    /tmp/install.dir.17972/InstallerData
    /tmp/install.dir.17972/InstallerData/installer.zip

    ZGUtil.CLASS_PATH:
    /tmp/install.dir.17972/InstallerData
    /tmp/install.dir.17972/InstallerData/installer.zip

    sun.boot.class.path:
    /usr/java/jdk1.5.0_06/jre/lib/rt.jar
    /usr/java/jdk1.5.0_06/jre/lib/i18n.jar
    /usr/java/jdk1.5.0_06/jre/lib/sunrsasign.jar
    /usr/java/jdk1.5.0_06/jre/lib/jsse.jar
    /usr/java/jdk1.5.0_06/jre/lib/jce.jar
    /usr/java/jdk1.5.0_06/jre/lib/charsets.jar
    /usr/java/jdk1.5.0_06/jre/classes

    java.ext.dirs:
    /usr/java/jdk1.5.0_06/jre/lib/ext

    java.version == 1.5.0_06 (Java 2+)
    java.vm.name == Java HotSpot(TM) Client VM
    java.vm.vendor == Sun Microsystems Inc.
    java.vm.version == 1.5.0_06-b05
    java.vm.specification.name == Java Virtual Machine Specification
    java.vm.specification.vendor == Sun Microsystems Inc.
    java.vm.specification.version == 1.0
    java.specification.name == Java Platform API Specification
    java.specification.vendor == Sun Microsystems Inc.
    java.specification.version == 1.5
    java.vendor == Sun Microsystems Inc.
    java.vendor.url == http://java.sun.com/
    java.class.version == 49.0
    java.compiler == null
    java.home == /usr/java/jdk1.5.0_06/jre
    java.io.tmpdir == /tmp
    os.name == Linux
    os.arch == i386
    os.version == 2.6.15-1.1833_FC4smp
    path.separator == :
    file.separator == /
    file.encoding == UTF-8
    user.name == root
    user.home == /root
    user.dir == /tmp/install.dir.17972
    user.language == es
    user.region == null
    __________________________________________________________________________

    Installer: InstallAnywhere 5.5.1 Enterprise Build 2032
    __________________________________________________________________________

    System’s temporary directory = /tmp
    RepositoryManager: lock acquired on: /var/.com.zerog.registry.lock
    RepositoryManager: Local repository location is: /opt/MyEclipse/MyEclipse-UninstallerData/.com.zerog.registry.xml
    RepositoryManager: lock acquired on: /opt/MyEclipse/MyEclipse-UninstallerData/.com.zerog.registry.lock
    Retrying Installables deferred in pass 0
    Deferral retries done because:
    There were no deferrals in the last pass.
    RepositoryManager: lock acquired on: /var/.com.zerog.registry.lock
    RepositoryManager: repository successfully written to stable storage
    RepositoryManager: lock acquired on: /opt/MyEclipse/MyEclipse-UninstallerData/.com.zerog.registry.lock
    RepositoryManager: repository successfully written to stable storage
    MAKING VIRTUAL PACKAGE: rpmbuild -ba /opt/MyEclipse/MyEclipse.spec
    + echo
    cbe-ERR: + rpmbuild -ba /opt/MyEclipse/MyEclipse.spec
    cbe-ERR: error: Legacy syntax is unsupported: copyright
    cbe-ERR: error: line 5: Unknown tag: Copyright: 2003
    cbe-ERR: + r=1
    cbe-ERR: + echo 1
    cbe-ERR: + exit 1
    cbe-ERR: There was a problem creating the RPM package. You may not be running as root or may not have installed RPM Builder correctly. error: java.io.IOException: CertifiedBourneExec.doExec(): java.io.IOException: Execution failed with non-zero exit value: rpmbuild
    RPM Error: java.lang.NullPointerException
    UPDATING RPM DATABASE: rpm -Uv –replacefiles –nodeps
    The script exited with an error: 1

    REGISTRY ALREADY STORED!

    cleanUp()
    calling cleanUpUNIX()
    ========= JAVA Finished ==============================================

    Removing tmp install dir: “/tmp/install.dir.17972”

    I have review the other “similar” posts of this problem but I can’t find my problem…

    thx!

    /ivan

    #248267 Reply

    Riyad Kalla
    Member

    Ivan,
    Try and use our manual install if you are running into problems with the installer.

    #290173 Reply

    mancocapac
    Member

    I ran into this problem while trying to install 6.0.1 on my FC8 linux box. I can’t
    say this is the best way to solve this problem but if you get stuck give it a try.

    ########################################
    ###
    ### This is my modified /usr/lib/rpm/rpmb
    ###
    ###########################################
    #!/bin/bash
    # This is how I fixed the following install error
    #cbe-ERR: + rpmbuild -ba /your/path/YourMyEclipseLocation/MyEclipse.spec
    #
    # The problem is the MyEclipse.spec file uses “Copyright”, but SHOULD use
    # “License”. This causes buildrpm to fail with the above error code.
    #
    # Unfortunately, the MyEclipse.spec file is a tmp file created during the
    # install process. My solution is to run the install once, capture the
    # MyEclipse.spec file. Change the MyEclipse.spec file to use “License”
    # and then run the install a 2nd time using the hand-tuned MyEclipse.spec file
    #
    # The problem is, first capturing the MyEclipse.spec file and second getting
    # the install procedure to use the hand-tuned version on the 2nd pass.
    #
    # In order to accomplish this I had to do the following:
    # 1. On FC8/Redhat my rmpbuild is a softlink found in /usr/bin,
    # It points to /usr/lib/rpm/rpmb
    # 2. I copied the rpmb file to rpmb.SAVE and made my changes to to rpmb, the rpmb file
    # then calls the rpmb.SAVE file with args.
    # 3. This is where I did the initial copy of the MyElipse.spec file.
    # 4. Because I am NOT a linux/UNIX script-er, I got a version of copy_it.sh
    # off the web:
    # http://www.movingtofreedom.org/2007/04/15/bash-shell-script-copy-only-files-modifed-after-specified-date/
    # I had to tweak it a bit, there was a problem with how it was using the src file location
    #
    #
    # The Install program calls rpmbuild right at the end ofthe install with the following args:
    # rpmbuild -ba /your/path/YourMyEclipseLocation/MyEclipse.spec

    ######################################
    ### 1st Pass, un-comment the next 2 lines to save a copy of the MyEclipse.spec file
    ### NOTE: This Pass will FAIL the install!!!
    ### Run the install program: env LAX_DEBUG=1 ./MyEclipse_6_0_1GA_E3_3_1_Installer.bin 1>out.txt 2>err.txt
    ### This will produce a MyEclipse.spec file that you can edit
    ### This will also create a bad install in the location you selected, delete it ie rm -rf
    ####################################
    #/root/scripts/copy_it.sh -v -s $2 -t /root/MyEclipseSpecFileDir
    #/usr/lib/rpm/rpmb.SAVE -v “$@”

    ######################################
    ### 2nd Pass, comment out the above 2 lines and un-comment the next line to use
    ### your hand-tweaked MyEclipse.spec file
    ###
    ### Edit the spec file and change the myeclispe location to match the one you will be selecting
    ### when you re-run the install
    ### Run the install program: env LAX_DEBUG=1 ./MyEclipse_6_0_1GA_E3_3_1_Installer.bin 1>out.txt 2>err.txt
    ### 2ND Pass should work just fine
    ####################################
    #/usr/lib/rpm/rpmb.SAVE -ba /root/MyEclipseSpecFileDir/MyEclipse.spec

    ###############################################
    # There is probably a way to do some type of inline translation from “Copyright” to “License”
    # but I dont know how to do that and this has already taken too much time
    ###############################################

    ###########################################################################################################
    ###
    ### This is the my modified version of copy_it.sh
    ###
    ###########################################################################################################
    ####!/bin/bash
    ###
    #### copy_it.sh: Copies file to target dir, creating parent dirs if necessary.
    #### (intended to be called from cpafter.sh)
    ####
    #### Copyright (C) 2007 Scott Carpenter
    #### http://www.movingtofreedom.org
    #### scottc (at) movingtofreedom (dot) org
    ####
    #### This program is free software; you can redistribute it and/or
    #### modify it under the terms of the GNU General Public License
    #### as published by the Free Software Foundation; either version 3
    #### of the License, or (at your option) any later version.
    ####
    #### This program is distributed in the hope that it will be useful,
    #### but WITHOUT ANY WARRANTY; without even the implied warranty of
    #### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    #### GNU General Public License for more details:
    ####
    #### You should have received a copy of the GNU General Public License
    #### along with this program. If not, see http://www.gnu.org/licenses/.
    ###
    ###usage=”\nCopies a file to a dir, using the path information from the file to\n”
    ###usage+=”build a path from the given dir root if necessary. Meant to be used\n”
    ###usage+=”with cpafter.sh.\n\n”
    ###usage+=”\tusage: copy_it.sh [-v] -s source_file -t target_directory_root\n”
    ###usage+=”\t\t-v verbose (just lists the source file)\n”
    ###
    ###while getopts “:vs:t:” opt
    ###do
    ### case $opt in
    ### v ) verbose=true ;;
    ### s ) from_file=$OPTARG ;;
    ### t ) to_dir=$OPTARG ;;
    ### \? ) echo -e $usage
    ### exit 1
    ### esac
    ###done
    ###shift $(($OPTIND – 1))
    ###
    ###if [[ -z “$from_file” || -z “$to_dir” ]]; then
    ### echo -e $usage
    ### exit 1
    ###fi
    ###
    ###curdir=$PWD #from_dir
    ###
    ####regex — does string start with dot slash?
    ###src_file=${from_file}
    ###if [[ ! “$from_file” =~ ^\./ ]]; then
    ### from_file=”./$from_file” #in case only a filename was given
    ###fi
    ###
    ####return $from_file up to (but not including) last slash
    ###add_to_target=${from_file%/*}
    ###
    #### Comment out these lines, debug only
    ####echo “debug: copy_it: old file: $curdir/$from_file”
    ####echo “debug: copy_it: mkdir -p $to_dir/${BASH_REMATCH[1]}”
    ####echo “debug: copy_it: new file: $to_dir/$from_file”
    ####echo “debug: copy_it: cp -pdf \”$curdir/$from_file\” \”$to_dir/$from_file\””
    ####echo
    ###
    ###if [[ ! -d “$to_dir/$add_to_target” ]]; then
    ###
    ### if [ -n “$verbose” ]; then
    ### #here and below, remove $to_dir/ for a cleaner listing
    ### msg=”(mkdir) $to_dir/$add_to_target”
    ### #bash built-in substitution ${variable/pattern_to_match/replacement_string}
    ### echo “${msg/$to_dir\//}”
    ### fi
    ### mkdir -p “$to_dir/$add_to_target”
    ###fi
    ####cp -pdf “$curdir/$from_file” “$to_dir/$from_file”
    ###cp -pdf “$src_file” “$to_dir/$from_file”
    ###
    ###if [ -n “$verbose” ]; then
    ### msg=”$to_dir/$from_file”
    ### echo “${msg/$to_dir\//}”
    ###fi
    ###
    ####notes
    ####-need “” around filenames in cp and mkdir to handle files with spaces in the name

    This is my MyElclipse.spec file:
    Name: MyEclipse
    Version: 6.0.1
    Release: 6.0.1
    Summary: MyEclipse
    License: 2007 <<<<<<<< The original has this as Copyright
    URL: http://www.genuitec.com
    Distribution: http://www.myeclipseide.com
    Vendor: Genuitec, LLC
    Group: Applications/System
    Packager: Genuitec, LLC
    %description
    MyEclipse is an Eclipse 3.2 (http://www.eclipse.org) product extension that enables J2EE developers to harness the power of the Eclipse SKDK.
    %undefine __check_files
    %files
    %ghost “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse_6.0/MyEclipse_6.0.1”
    %ghost “/usr/local/eclipse_depo/eclipse-3.3.2-1021/eclipse/links/com.genuitec.eclipse.MyEclipse.link”
    %ghost “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse.sh”
    %dir “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/eclipse”
    %ghost “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse-UninstallerData/.com.zerog.registry.xml”
    %dir “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse_6.0”
    %ghost “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse-UninstallerData/Uninstall_MyEclipse_6.0.1.lax”
    %ghost “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse-UninstallerData/Uninstall_MyEclipse_6.0.1”
    %ghost “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse-UninstallerData/uninstaller.jar”
    %dir “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A/MyEclipse-UninstallerData”
    %dir “/usr/local/myeclipse_depo/MyEclipse_6.0.1GA-1021A”
    #######################

    DON’T forget to change the /usr/lib/rpm/rpmb file back to the original when
    you are done

    Best of Luck

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Workaround] Unable to locate .myeclipse.properties

You must be logged in to post in the forum log in