Illegal reflective access thrown when running Alfresco Repository CE on ECS

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Partner

Illegal reflective access thrown when running Alfresco Repository CE on ECS

Jump to solution

Hi all,

I am trying to run Alfresco Repository CE on Amazon Web Services ECS and I get the following error:

2020-09-08 15:50:30,566  INFO  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Messaging' subsystem, ID: [Messaging, default]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.activemq.util.IntrospectionSupport (file:/usr/local/tomcat/webapps/alfresco/WEB-INF/lib/activemq-client-5.15.11.jar) to method sun.security.ssl.SSLSocketImpl.setHost(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.apache.activemq.util.IntrospectionSupport
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

It looks like Alfresco just hangs after that.

I am using Alfresco Repository CE 6.3.0; it is running inside ECS and I am building my own Docker images based off this one:

https://hub.docker.com/r/alfresco/alfresco-content-repository-community

The JAVA_OPTS look like this:

                -Ddir.root=/usr/local/tomcat/alf_data
                -Ddb.driver=org.mariadb.jdbc.Driver
                -Dindex.subsystem.name=noindex
                -Dalfresco.host=acs-repository.${Project}.lan
                -Dalfresco.port=443
                -Dalfresco.protocol=https
                -Daos.baseUrlOverwrite=https://acs-repository.${Project}.lan:443/alfresco/aos
                -Dmessaging.broker.connections.max=8
                -Dmessaging.broker.url="failover:(${Amazonmq.Outputs.OpenwireEndpoints})"
                -Dcsrf.filter.enabled=false
                -Djodconverter.enabled=false
                -Djodconverter.officeHome=null
                -Xms3500m
                -Xmx3500m
                -Dlocal.transform.service.enabled=false
                -Dtransform.service.enabled=false
                -Dlegacy.transform.service.enabled=false
                -DsyncService.mode=OFF
                -Dsync.mode=OFF
                -Dsync.pullJob.enabled=false
                -Dsync.pushJob.enabled=false
                -Dsystem.usages.enabled=false
                -Dsystem.usages.clearBatchSize=0
                -Dactivities.feed.notifier.enabled=false
                -Dactivities.feed.cleaner.enabled=false
                -Dactivities.post.cleaner.enabled=false
                -Dactivities.feed.generator.enabled=false
                -Dactivities.post.lookup.enabled=false
                -Dreplication.enabled=false
                -Dtransferservice.receiver.enabled=false
                -Dsystem.thumbnail.generate=false

Thanks a lot for any help!

1 Solution

Accepted Solutions
Highlighted
Partner

Re: Illegal reflective access thrown when running Alfresco Repository CE on ECS

Jump to solution

Hi @kaynezhang ,

Thanks for your input. Actually, I found the problem: my security groups didn't allow the Alfresco Repository to connect to the AmazonMQ broker. I fixed that and it now moves a bit further. 

Thanks for your help!

 

View solution in original post

3 Replies
Highlighted
Intermediate II

Re: Illegal reflective access thrown when running Alfresco Repository CE on ECS

Jump to solution
These are not errors ,they are just warnings.
Plase ensure that you have started activemq,or you can try to add following java OPTS to disable messging start check.
-Dmessaging.subsystem.autoStart=true
By the way why do you choose noindex subsystem?
Highlighted
Partner

Re: Illegal reflective access thrown when running Alfresco Repository CE on ECS

Jump to solution

Hi @kaynezhang ,

Thanks for your input. Actually, I found the problem: my security groups didn't allow the Alfresco Repository to connect to the AmazonMQ broker. I fixed that and it now moves a bit further. 

Thanks for your help!

 

View solution in original post

Highlighted
Community Manager
Community Manager

Re: Illegal reflective access thrown when running Alfresco Repository CE on ECS

Jump to solution

Hi @fabrice7 

Great that you got it sorted and thanks for updating us.

Best wishes,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!