Error when installing the standalone application

Hi There, I’m new to OpenMrs. I’ve encountered an error during the first installation of this app. The error says:

Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘conversionService’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.util.Set org.openmrs.module.uiframework.UiFrameworkConversionServiceFactoryBean.springManagedConverters; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘stringToAppDescriptorConverter’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.appframework.service.AppFrameworkService org.openmrs.module.appui.converter.StringToAppDescriptorConverter.appFrameworkService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.appframework.service.AppFrameworkService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘appFrameworkService’ defined in URL [jar:file:/Users/SkanderMarsit/Documents/referenceapplication-standalone-2.9.0/appdata/.openmrs-lib-cache/appframework/appframework.jar!/moduleApplicationContext.xml]: Cannot create inner bean ‘org.openmrs.module.appframework.service.AppFrameworkServiceImpl#781b2c3a’ of type [org.openmrs.module.appframework.service.AppFrameworkServiceImpl] while setting bean property ‘target’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.openmrs.module.appframework.service.AppFrameworkServiceImpl#781b2c3a’ defined in URL …

For the full error text : https://pastebin.com/haVazVrA

If anyone has a clue about what’s going wrong and knows the solution, it would be so helpful to share it with the community.

Thank you

Use paste bin to share the entire error log.

@skandermarsit which java version are you using ?

this is the link for paste bin @skandermarsit https://pastebin.com/

Thank you for the suggestion.

@skandermarsit can you share your error logs using pastebin like @herbert24 stated

Thank you for your help. This is the link for the full error log: https://pastebin.com/haVazVrA

I tried with java 8 and Java 11.

try re-extracting your standalone and re-run the openmrs standalone-jar file

The information in your log shows that you are running the standalone on Java 11 instead of 8

Hello @dkayiwa dkayiwa, @gcliff, I saw that you and many other devoted people have been very helpful in resolving problems in this community.

Hopefully i can be helped too. I am new here and I have difficulty starting up the standalone OpenMRS. It always return with very long error list. I am putting the two halves of the error list here for your perusal.

1st half: https://pastebin.com/QRYssztK

2nd half: https://pastebin.com/Bei6eXFq

Thanks

Oh sorry! its unfortunate the error logs you shared through pastebin cannot be accessed. This is what is displayed Error, this is a private paste. If this is your private paste, please login to Pastebin first. when I try to open the pastebin links you shared.

1 Like

Oh, i will make it public now. Thanks for pointing it out

I have made the post public, it should open now.

It can be accessed now. Thank you.

1 Like

Basing on the error you are getting I suggest you try out this proposed solution.

and share your finding.

I installed java 8 update 261 (JavaSetup8u261)

On my PC’s command prompt, this is my finding:

java version “1.8.0_261” Java™ SE Runtime Environment (build 1.8.0_261-b12) Java HotSpot™ Client VM (build 25.261-b12, mixed mode, sharing)

Is there a different version I still need to change to?

1 Like

Ii works pretty well.

what else can i do to correct it? I install many software: java, Tomcat, MySLQ, python and visual studio. Is there any missing one?

Its okay! though you downloaded some softwares which may not be required for this issue but you can save them for future use. You can follow this link https://openmrs.org/download/ to download the standalone.