contact

You can reach Pascal by mail at blog@pascalalma.net

For more information about him see his LinkedIn profile

View Pascal Alma's profile on LinkedIn

27 Responses to contact

  1. Abhinandan says:

    Hey,

    You have not uploaded the main file for 27 July article (Spring ,hibernate and mongo db).
    Please upload that also if you have that.
    I hope you will respond soon.
    Thanks.

  2. Abhinandan says:

    Hi,

    thanks for replying, what i want to say is that when we ll run these files on IDE they ll ask for a main file which is not there as a java main class, but now i have created that main file and the project is working fine just with the warnings such as :
    log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
    log4j:WARN Please initialize the log4j system properly.
    log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
    i am running it on netbeans IDE and your “&quot” thing was giving some errors in one file at four places.

    would you please let me know about these warnings and how to fix it.

    • Pascal Alma says:

      The warnings means the logging framework Log$J isn’t initialized well. To do so, add a file name ‘log4j.properties’ to your /src/main/resources/ directory. in the file put the following:

      # default properties to initialise log4j
      log4j.rootLogger=INFO, A1
      log4j.appender.A1=org.apache.log4j.ConsoleAppender
      log4j.appender.A1.layout=org.apache.log4j.PatternLayout
      log4j.appender.A1.layout.ConversionPattern=[%d{MM-dd HH:mm:ss}] %-5p %c{1} [%t]: %m%n

      Save it and the file should be put on your classpath when you run your class.

      • Abhinandan says:

        Hi,

        One thing i want to know that whether .properties file, the IDE will recognize it or not because in my case with net-beans its not doing that. And one more thing can i put this file in / src /main/config etc. and your above solution is not helping me coming out of that

      • Abhinandan says:

        Hey Hi,

        Now i have all set up with the Log4j but now the thing is that i am not able to perform insert operation on mongodb data or query it .
        Would you please let me know as how to do that.

      • robinson says:

        I am using log4j xml instead of log4j.properties. log4j.properties works but log4j.xml doesn’t work

  3. MuleCoder says:

    Hi Pascal,
    I am using Mule 3.1.2 and have a secured secured service proxy defined in Mule.

    I need to consume a webservice having 1.2 as soapversion. I believe mule by default uses 1.1 as soapversion. I am aware that an attribute was introduced in Mule 3.2.
    Is there a way so that we can force it to use soapversion 1.2 without having to upgrade the mule to 3.2.
    Please suggest.

  4. MuleCoder says:

    Thank you Pascal a lot.for quick reply. Yes this issue is same as Mule defect/enhancement 5961. I tried implementing CXF interceptor but it didn’t work.
    Yeah i agree, it seems there is only option left to upgrade the Mule from 3.1.2 to 3.3,x version. do you know if there is any backward compatibility compatibility issue in Mule if i recommend up-gradation from 3.1.2 to 3.3.x.

    Thanks again for help!!

    Best Regards,
    Mule Coder

  5. MuleCoder says:

    Hello Pascal, Hope you are doing well! We need to validate the SOAP service request and response through schematron file. Do you know if there is a way i can apply schematron validations in mule proxy service? I was searching on Google and didn’t find any document around it. Thanks for help!

  6. MuleCoder says:

    Thank you Pascal for quick response. I will try this option.

  7. juantwo says:

    need help ..its my first time to use mapforce…how do i use mapforce in my webapps(shopping cart) that is created in netbeans java

    ill trying to connect my webapps to salesforce.. is it possible???

  8. Hi,

    Please, could you help me , how do I confirm that messages routed via mule jms pass-through-router is not lost ?

    Basically, we have a mule jms pass-through-router taking a message from one Q1 and passing on to Q2 based on some regex. All good.
    However, if the client which is reading the Q2 is not available, the messages are lost.

    If I send messages directly to Q2, the messages are persistent.

    Can you help how do I check this scenario while messages are getting lost from one queue to another while using mule jms pass-through-router ?

  9. Alejandro says:

    Hi Pascal,

    just a comment about https://pragmaticintegrator.wordpress.com/2014/01/19/running-multiple-activemq-instances-on-one-machine/ (comments are closed there)

    using ActiveMq 5.10 I’m hitting the same issue the other person reported (can’t lock file). There are a couple different steps needed:
    1) the generated instanceX\bin\instanceX.bat files are incomplete, I had to add

    set ACTIVEMQ_CONF=”/instanceB/conf”
    set ACTIVEMQ_DATA=”/instanceB/data”

    2) there are a few more connectors to update in activemq.xml (stomp, mqtt and ws). I had to specify different ports there

    3) to start, now use “instanceX\bin\instanceX.bat start”

    Besides that, thanks a lot for the excellent article!

  10. Chandana says:

    HI,

    I am a student of a college and need to code on Hadoop Mapreduce. As i am unaware of the basics and i have a very short duration i wanted to seek your help. Kindly let me know if you can offer you help in coding for the hadoop mapreduce. so that i can mail you more details.

    Regards,
    Chandana

  11. Alberto Pozzato says:

    Hi Pascal, I just read https://pragmaticintegrator.wordpress.com/2014/01/31/message-throttling-with-mule-esb/ and I just wondering if you can post the source code related. Thanks a lot!

  12. Quentin says:

    Hi Pascal

    I have created a custom filter to secure my rest end points.
    Like so:

    public class MyFilter implements org.mule.api.routing.filter.filter, Intialisable {
    private String token;
    public boolean accept(MuleMessage message) {
    token = message.getInboundProperty(“token”);
    mySecurity security = new mySecurity();
    return security.ValidateToken(token);
    }
    }

    This works fine
    If the token isn’t supplied it gives me an error as it should and stops access to the endpoints.

    The error message it gives is:
    “Message has been rejected by filter. Message payload is of type; String”
    Error code is 406 Not acceptable

    How can i change this response message and error code?
    I assume the calling class will have access to the response message, but i cant seem to find it.

    Can you help?

    • Pascal Alma says:

      Hi Quentin,

      See this blog post: and especially the part about apikit:mapping-exception-strategy. I think that is what you need.

      • Quentin says:

        Thanks Pascal

        I had a look at that.
        I have tried to implement it but have been unsuccessful
        There were a number of dependency issues in ivy that i finally solved.
        But i still get this error when mule tries to deply the application.

        org.mule.module.launcher.DeploymentInitException: SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘apikit:mapping-exception-strategy’. One of ‘{“http://www.springframework.org/schema/beans”:beans, “http://www.springframework.org/schema/beans”:bean, “http://www.springframework.org/schema/context”:property-placeholder, “http://www.springframework.org/schema/beans”:ref, “http://www.mulesoft.org/schema/mule/core”:global-property, “http://www.mulesoft.org/schema/mule/core”:configuration, “http://www.mulesoft.org/schema/mule/core”:notifications, “http://www.mulesoft.org/schema/mule/core”:abstract-extension, “http://www.mulesoft.org/schema/mule/core”:abstract-shared-extension, “http://www.mulesoft.org/schema/mule/core”:abstract-mixed-content-extension, “http://www.mulesoft.org/schema/mule/core”:abstract-agent, “http://www.mulesoft.org/schema/mule/core”:abstract-security-manager, “http://www.mulesoft.org/schema/mule/core”:abstract-transaction-manager, “http://www.mulesoft.org/schema/mule/core”:abstract-shared-transaction-manager, “http://www.mulesoft.org/schema/mule/core”:abstract-connector, “http://www.mulesoft.org/schema/mule/core”:abstract-shared-connector, “http://www.mulesoft.org/schema/mule/core”:abstract-global-endpoint, “http://www.mulesoft.org/schema/mule/core”:abstract-exception-strategy, “http://www.mulesoft.org/schema/mule/core”:abstract-flow-construct, “http://www.mulesoft.org/schema/mule/core”:flow, “http://www.mulesoft.org/schema/mule/core”:sub-flow, “http://www.mulesoft.org/schema/mule/core”:abstract-model, “http://www.mulesoft.org/schema/mule/core”:abstract-interceptor-stack, “http://www.mulesoft.org/schema/mule/core”:abstract-filter, “http://www.mulesoft.org/schema/mule/core”:abstract-transformer, “http://www.mulesoft.org/schema/mule/core”:processor-chain, “http://www.mulesoft.org/schema/mule/core”:custom-processor, “http://www.mulesoft.org/schema/mule/core”:abstract-empty-processor, “http://www.mulesoft.org/schema/mule/core”:invoke, “http://www.mulesoft.org/schema/mule/core”:set-payload, “http://www.mulesoft.org/schema/mule/core”:abstract-global-intercepting-message-processor, “http://www.mulesoft.org/schema/mule/core”:custom-queue-store, “http://www.mulesoft.org/schema/mule/core”:abstract-processing-strategy}’ is expected.
        at org.mule.module.launcher.application.DefaultMuleApplication.init(DefaultMuleApplication.java:197) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.artifact.ArtifactWrapper$2.execute(ArtifactWrapper.java:62) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.artifact.ArtifactWrapper.executeWithinArtifactClassLoader(ArtifactWrapper.java:129) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.artifact.ArtifactWrapper.init(ArtifactWrapper.java:57) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:25) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.guardedDeploy(DefaultArchiveDeployer.java:310) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployArtifact(DefaultArchiveDeployer.java:330) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:155) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:256) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DefaultArchiveDeployer.deployPackagedArtifact(DefaultArchiveDeployer.java:78) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DeploymentDirectoryWatcher.deployPackedApps(DeploymentDirectoryWatcher.java:275) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at org.mule.module.launcher.DeploymentDirectoryWatcher.run(DeploymentDirectoryWatcher.java:355) ~[mule-module-launcher-3.7.0.jar:3.7.0]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[?:1.7.0_91]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) ~[?:1.7.0_91]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) ~[?:1.7.0_91]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[?:1.7.0_91]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_91]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_91]
        at java.lang.Thread.run(Thread.java:745) [?:1.7.0_91]

      • Pascal Alma says:

        Hi Quentin,

        This error can be caused by two things:
        – you didn’t declare the namespace ‘apikit’ in your config file
        – if the namespace is in place you are missing the dependency holding the ‘apikit’ XSD and corresponding code.
        So I would suggest you check these two again. Otherwise try the Mule Forum to see if they can help you with this.

  13. Anuj Agarwal says:

    Hi Pascal,

    My name is Anuj Agarwal. I’m Founder of Feedspot.

    I would like to personally congratulate you as your blog The Pragmatic Integrator | Pascal Alma has been selected by our panelist as one of the Top 40 Java Blogs on the web.

    http://blog.feedspot.com/java_blogs/

    I personally give you a high-five and want to thank you for your contribution to this world. This is the most comprehensive list of Top 40 Java Blogs on the internet and I’m honored to have you as part of this!

    Also, you have the honor of displaying the badge on your blog.

    Best,
    Anuj

  14. Alexandre Moraes says:

    Hi,
    I read the post https://pragmaticintegrator.wordpress.com/2014/01/19/running-multiple-activemq-instances-on-one-machine/ and it is exactly what I need.
    But i´m running version 5.15 and when I starts the second instance an error occur.

    A big stacktrace is shown and the last error is:
    ERROR: java.lang.IllegalStateException: BeanFactory not initialized or already closed.

    Do you know what is happening?

    Thanks in advance

  15. Animesh Kumar says:

    Hey, I have read a few of your posts and found them really helpful and amazing. in addition to the technical knowledge, I also want to know more about the good practices and guidelines which are followed while developing an industrial level software. Can you give me some more information about the same? Exact culture and specifications of the practices followed and tool used to achieve these in any of the previous places you have worked would be very helpful. Thank You!!

Leave a reply to MuleCoder Cancel reply