Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.5.0-PRERELEASE-20191209002126 failing on launch. #95

Closed
bareheiny opened this issue Dec 9, 2019 · 13 comments
Closed

0.5.0-PRERELEASE-20191209002126 failing on launch. #95

bareheiny opened this issue Dec 9, 2019 · 13 comments
Assignees
Labels
bug Something isn't working configuration Configuration-related errors and issues. critical Critical issue
Milestone

Comments

@bareheiny
Copy link

bareheiny commented Dec 9, 2019

CX is currently failing on a Windows 10 machine

The previous pre-release build ran with no issues. Refer to the attached log file for the CMD window.

CX error.txt

@mcpierce mcpierce added bug Something isn't working configuration Configuration-related errors and issues. critical Critical issue labels Dec 9, 2019
@mcpierce mcpierce added this to the 0.5 milestone Dec 9, 2019
@mcpierce mcpierce self-assigned this Dec 9, 2019
mcpierce added a commit to mcpierce/comixed that referenced this issue Dec 9, 2019
@mcpierce
Copy link
Contributor

mcpierce commented Dec 9, 2019

Hrm, so it seems that the ${HOME} placeholder's not defined in the Windows VM as it is on *nix systems.

I've pushed a fix for this, and should be available in the next prerelease build. Please let me know if it works.

@bareheiny
Copy link
Author

Unfortunately CX still won't start.

This time I started CX using the run.bat file - with no parameters, and no existing database.

CX error.txt

@mcpierce
Copy link
Contributor

mcpierce commented Dec 9, 2019

@bareheiny I'm not sure what's going on there. I'm seeing this in the log you posted:

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'detailsController': Unsatisfied dependency expressed through field 'detailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'detailsService': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'HOME' in value "[Issue #95] Replace ${HOME} with ${user.home} for the cache directory."

It's trying to process a git commit message, which doesn't show up anywhere in the zipfile at all. Are you in the bin directory created by the archive when you opened it? I downloaded the zip and was able to launch it from the bin directory on my Windows machine without any problems.

@bareheiny
Copy link
Author

I did think the error message looked odd.

I just re-downloaded prerelease-20191209133734, and extracted it to the root of a empty drive. Navigated to comixed-app-0.5.0-PRERELEASE\bin and double cliked run.bat - no luck, still fails.

I also ran the bat from a cmd line (again, navigating to the the bin directory first) with the same result.

@mcpierce
Copy link
Contributor

mcpierce commented Dec 10, 2019 via email

@bareheiny
Copy link
Author

Same thing. Not unexpected I would hope.

@mcpierce
Copy link
Contributor

mcpierce commented Dec 10, 2019 via email

@bareheiny
Copy link
Author

All good - I'm reinstalling IntelliJ, so will clone and compile a copy on my machine and see what happens.

@bareheiny
Copy link
Author

bareheiny commented Dec 10, 2019

Cloned and compliled, and still getting the same issue.

As you mentioned, there is no trace of "[Issue #95]" in the code either.

Bit more info (just in case):

64-bit Windows 10 Pro (on a Surface Pro and a desktop).
Java version "1.8.0_231" on the Surface, not sure of the desktop....likely similar.

@jmcrfp
Copy link
Member

jmcrfp commented Dec 10, 2019

I was able to replicate.
Your @mcpierce commit fixed the first issue, but created a similar issue.
The Git-Commit-plugin generated a build-details.properties with the commit message that has the variable place holder again, and spring tries to replace it again.

build-details.zip

"Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'HOME' in value "[Issue #95] Replace ${HOME} with ${user.home} for the cache directory." at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:172) at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124)"

So just do another commit with a different commit message and the new build should be fine.

@mcpierce
Copy link
Contributor

@jmcrfp Ah, thanks for that! I've fixed #81 and pushed that change this morning.

@bareheiny Please check if that fixes things for you when the release is created.

@bareheiny
Copy link
Author

Looks good - CX is now starting.

@bareheiny
Copy link
Author

bareheiny commented Dec 10, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working configuration Configuration-related errors and issues. critical Critical issue
Projects
None yet
Development

No branches or pull requests

3 participants