DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones Build AI Agents That Are Ready for Production
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
Build AI Agents That Are Ready for Production

Just dropped: New 2026 “Cloud-Native Foundations” Trend Report. See how teams are tackling complexity, cost & reliability.

Avatar

Gaurav Dhimate

Joined Jan 2020

Stats

Reputation: 736
Pageviews: 166.8K
Articles: 8
Comments: 7
  • Articles
  • Comments

Articles

article thumbnail
Deploying MuleSoft Using Azure DevOps
This article introduces Azure DevOps and provides a step-by-step guide on how to deploy MuleSoft with Azure DevOps.
Updated February 26, 2024
· 40,734 Views · 7 Likes
article thumbnail
Transit Gateway With Anypoint Platform
Here we will use the Mulesoft Anypoint platform to attach VPC to the AWS transit gateway to form a single network topology.
October 10, 2022
· 5,418 Views · 2 Likes
article thumbnail
Using OKTA as Client Provider in Mulesoft
There are many ways to secure your API in Mulesoft and in this article we are going to address the topic of identity and access control with OpenID connect.
August 12, 2021
· 16,841 Views · 42 Likes
article thumbnail
Mulesoft Accelerators for FHIR
Mulesoft accelerators for FHIR: Accelerators are designed as modular building blocks. Customers can change the patterns, mappings, and endpoints to suit their needs.
June 22, 2021
· 18,416 Views · 2 Likes
article thumbnail
Release Pipeline Using Azure DevOps
Extend the basic pipeline which was created in the previous blog by creating a release pipeline that will help us not only automate a deployment but complete the release.
February 17, 2021
· 24,751 Views · 5 Likes
article thumbnail
Mule Custom Connector Using XML SDK
In this blog, we will look into the implementation of Mule XML Connector which invokes a java class.
Updated February 13, 2021
· 12,282 Views · 4 Likes
article thumbnail
MuleSoft Anypoint Platform Complete Setup Guide
In this blog, we are going to look into the Anypoint platform setup. This is a complete end to end guide for setting up the platform.
December 9, 2020
· 13,933 Views · 8 Likes
article thumbnail
Implementing DDoS With MuleSoft: Demonstration With Apache JMeter
In this article, we discuss how to stop DDoS attacks with MuleSoft by limiting the number of time a user can hit a certain API endpoint.
February 14, 2020
· 16,548 Views · 4 Likes

Comments

MuleSoft Anypoint Platform Complete Setup Guide

Dec 13, 2020 · Gaurav Dhimate

Thanks Eline

MuleSoft Anypoint Platform Complete Setup Guide

Dec 10, 2020 · Gaurav Dhimate

Thanks Akshata

Announcing log4j-aws-appenders

May 08, 2020 · Mike Gates

Thanks for help,

This library was the best I can get for my requirements (it did complete my 90% of requirements).

Though with static method i was able to get job done but i had to have access details hardcoded in method which i feel is not that possible way.

So i was thinking about the intial suggestion which you gave me of using roles , but i am not sure how it works so if you can give me some reference URL it will be really helpful.

Announcing log4j-aws-appenders

May 07, 2020 · Mike Gates

Thanks for the solution.

When I use static method without any parameters it worked but same when i tried to do with paraneters it is not working.

working : com.aws.AWSClient.createClient

not working : com.aws.AWSClient.createClient("us-east-1","access-key","secret-key")

I tried escaping double quotes with " but still it gives me below error.


2020-05-07 18:57:12,348 com-kdgregory-aws-logwriter-log4j2-cloudwatch-1 ERROR failed to create client via configured factory: com.aws.AWSClient.createClient("us-east-1","access-key","secret-key") java.lang.NoSuchMethodException:



Announcing log4j-aws-appenders

May 07, 2020 · Mike Gates

I did write a custom appender wherenin I could use the credentails as below

com.amazonaws.services.logs.AWSLogsClientBuilder.standard().withRegion(Regions.fromName(awsRegion)).withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials(this.awsAccessKey, this.awsAccessSecret))).build();


but then i started struggling with dynamic value for logGroup which i am not able to handle in my code and which your code is able to do.

So now i want to have combination of both. so can you help ?


Also I got one issue while trying to use your library not sure why.

org.mule.runtime.deployment.model.api.DeploymentException: Failed to deploy artifact [test-appender]

Caused by: java.lang.NoClassDefFoundError: com/amazonaws/services/logs/model/InvalidSequenceTokenException

at com.kdgregory.logging.aws.cloudwatch.CloudWatchWriterFactory.newLogWriter(CloudWatchWriterFactory.java:34) ~[?:?]

at com.kdgregory.logging.aws.cloudwatch.CloudWatchWriterFactory.newLogWriter(CloudWatchWriterFactory.java:28) ~[?:?]

at com.kdgregory.log4j2.aws.internal.AbstractAppender.startWriter(AbstractAppender.java:301) ~[?:?]

at com.kdgregory.log4j2.aws.internal.AbstractAppender.start(AbstractAppender.java:193) ~[?:?]

at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:265) ~[log4j-core-2.11.0.jar:2.11.0]

at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:547) ~[log4j-core-2.11.0.jar:2.11.0]

at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:619) ~[log4j-core-2.11.0.jar:2.11.0]

at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:636) ~[log4j-core-2.11.0.jar:2.11.0]

at org.mule.runtime.module.launcher.log4j2.MuleLoggerContext.reconfigure(MuleLoggerContext.java:91) ~[mule-module-launcher-4.2.2.jar:4.2.2]

at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231) ~[log4j-core-2.11.0.jar:2.11.0]

at org.mule.runtime.module.launcher.log4j2.LoggerContextCache.getLoggerContext(LoggerContextCache.java:121) ~[mule-module-launcher-4.2.2.jar:4.2.2]

at org.mule.runtime.module.launcher.log4j2.ArtifactAwareContextSelector.getContextWithResolvedContextClassLoader(ArtifactAwareContextSelector.java:82) ~[mule-module-launcher-4.2.2.jar:4.2.2]

at org.mule.runtime.module.launcher.log4j2.DispatchingLogger.resolveLogger(DispatchingLogger.java:107) ~[mule-module-launcher-4.2.2.jar:4.2.2]

at org.mule.runtime.module.launcher.log4j2.DispatchingLogger.getLogger(DispatchingLogger.java:92) ~[mule-module-launcher-4.2.2.jar:4.2.2]

at org.mule.runtime.module.launcher.log4j2.DispatchingLogger.getLogger(DispatchingLogger.java:76) ~[mule-module-launcher-4.2.2.jar:4.2.2]

at org.mule.runtime.module.launcher.log4j2.DispatchingLogger.isEnabled(DispatchingLogger.java:194) [mule-module-launcher-4.2.2.jar:4.2.2]

at org.apache.logging.slf4j.Log4jLogger.isTraceEnabled(Log4jLogger.java:84) [log4j-slf4j-impl-2.11.0.jar:2.11.0]

at org.mule.runtime.module.artifact.api.classloader.FilteringArtifactClassLoader.logClassloadingTrace(FilteringArtifactClassLoader.java:167) ~[mule-module-artifact-4.2.2.jar:4.2.2]

at org.mule.runtime.module.artifact.api.classloader.FilteringArtifactClassLoader.getResources(FilteringArtifactClassLoader.java:137) ~[mule-module-artifact-4.2.2.jar:4.2.2]

at org.mule.runtime.module.artifact.api.classloader.FineGrainedControlClassLoader.getResources(FineGrainedControlClassLoader.java:159) ~[mule-module-artifact-4.2.2.jar:4.2.2]

at org.mule.runtime.module.artifact.api.classloader.FineGrainedControlClassLoader.getResources(FineGrainedControlClassLoader.java:159) ~[mule-module-artifact-4.2.2.jar:4.2.2]

at org.mule.runtime.module.artifact.api.classloader.FineGrainedControlClassLoader.getResources(FineGrainedControlClassLoader.java:159) ~[mule-module-artifact-4.2.2.jar:4.2.2]

at java.util.ServiceLoader$LazyIterator.hasNextService(ServiceLoader.java:348) ~[?:1.8.0_241]

at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:393) ~[?:1.8.0_241]

at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:474) ~[?:1.8.0_241]

at org.mule.runtime.core.api.registry.SpiServiceRegistry.doLookupProviders(SpiServiceRegistry.java:26) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.registry.AbstractServiceRegistry.lookupProviders(AbstractServiceRegistry.java:34) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.registry.AbstractServiceRegistry.lookupProvider(AbstractServiceRegistry.java:53) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.deployment.model.api.artifact.ArtifactConfigurationProcessor.discover(ArtifactConfigurationProcessor.java:29) ~[mule-module-deployment-model-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.impl.internal.artifact.ArtifactContextBuilder.lambda$build$2(ArtifactContextBuilder.java:432) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:227) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:915) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:879) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.impl.internal.artifact.ArtifactContextBuilder.build(ArtifactContextBuilder.java:409) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.impl.internal.application.DefaultMuleApplication.doInit(DefaultMuleApplication.java:239) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.impl.internal.application.DefaultMuleApplication.init(DefaultMuleApplication.java:207) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ClassUtils.lambda$withContextClassLoader$9(ClassUtils.java:860) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ExceptionUtils.tryExpecting(ExceptionUtils.java:227) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:915) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:879) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.core.api.util.ClassUtils.withContextClassLoader(ClassUtils.java:859) ~[mule-core-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.impl.internal.artifact.DeployableArtifactWrapper.executeWithinArtifactClassLoader(DeployableArtifactWrapper.java:140) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.impl.internal.artifact.DeployableArtifactWrapper.init(DeployableArtifactWrapper.java:83) ~[mule-module-deployment-model-impl-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DefaultArtifactDeployer.doInit(DefaultArtifactDeployer.java:63) ~[mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:28) ~[mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:448) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.internalDeployPackagedArtifact(DefaultArchiveDeployer.java:530) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployOrRedeployPackagedArtifact(DefaultArchiveDeployer.java:495) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:377) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:53) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher.deployPackedApps(DeploymentDirectoryWatcher.java:241) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher.run(DeploymentDirectoryWatcher.java:312) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.DeploymentDirectoryWatcher.start(DeploymentDirectoryWatcher.java:153) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.deployment.internal.MuleDeploymentService.start(MuleDeploymentService.java:143) [mule-module-deployment-4.2.2.jar:4.2.2]

at org.mule.runtime.module.launcher.MuleContainer.start(MuleContainer.java:252) [mule-module-launcher-4.2.2.jar:4.2.2]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_241]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_241]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_241]

at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_241]

at org.mule.runtime.module.reboot.internal.MuleContainerWrapper.start(MuleContainerWrapper.java:49) [mule-module-boot-ee-4.2.2.jar:4.2.2]

at org.tanukisoftware.wrapper.WrapperManager$11.run(WrapperManager.java:4429) [wrapper-3.5.37.jar:3.5.37]

Caused by: org.mule.runtime.module.artifact.api.classloader.exception.CompositeClassNotFoundException: Cannot load class 'com.amazonaws.services.logs.model.InvalidSequenceTokenException': [

com.amazonaws.services.logs.model.InvalidSequenceTokenException,

Cannot load class 'com.amazonaws.services.logs.model.InvalidSequenceTokenException': [



Announcing log4j-aws-appenders

May 07, 2020 · Mike Gates

Property files are well encrypted and kept so the security is not any issue.

So if still i want to use the property then there is no way to do it with this library?


Announcing log4j-aws-appenders

May 07, 2020 · Mike Gates

Where AWS access key and secret keys goes?.I dont see any property where I can assgin that

User has been successfully modified

Failed to modify user

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook