Using mule magento connector in mule 3.2 - magento

I have tried to use the lastest version of magento connector on mule 3.2. However I keep getting this error:
SAXParseException: cos-all-limited.1.2: An all model group must appear in a particle with {min occurs} = {max occurs} = 1, and that particle must be part of a pair which constitutes the {content type} of a complex type definition.
I have googled it and I think the problem is a bug in mule's devkit. And I am getting it because the magento connector is built using the devkit. The bug apparently has been fixed according to this link:
https://github.com/mulesoft/mule-devkit/issues/10
Where can I download the fixed version of the devkit? and how do I install it in mule 3.2?
Cheers
Leo

This bug have been fixed indeed. If the Magento connector you're using has been compiled with a recent DevKit, things should be fine. Where did you get the Magento connector you're using? Have you tried building a fresh one from source?
DevKit can be found in MuleSoft Maven releases repository: https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/tools/devkit
This said, you do not need to install DevKit it in Mule per se. DevKit is primarily used at compile time as a code generator for modules (like the Magento one). It may bring runtime dependencies but they'll be packaged with the module distribution archive (alongside the module Jar itself).

Related

Which version of AEM supports .cfg.json config files?

So, https://sling.apache.org/documentation/bundles/configuration-installer-factory.html tells us that the currently recommended way to configure OSGi components is to use .cfg.json files. However, it notes that those are only supported “[…] since Installer Configuration Factory 1.2.0”.
So now I’d like to know:
How do I figure out which version of “Installer Configuration Factory” my AEM uses?
Which version of AEM comes preinstalled with Installer Configuration Factory ≥ 1.2.0?
If I’m on an older version of AEM, how do I upgrade Installer Configuration Factory?
I couldn’t find definite answers on any of these. But Adobe does sometimes also recommend using .cfg.json config files but only in articles about AaaCS. Is this only supported on AaaCS?
Sorry for my snarky tone but the lack of reliable, concise documentation is infuriating…
How do I figure out which version of “Installer Configuration Factory” my AEM uses?
goto /system/console/bundles
search for Apache Sling Installer Configuration Admin Support
This gives you the bundle you are looking for
The number as marked in screenshot is the version used by your AEM.
Which version of AEM comes preinstalled with Installer Configuration Factory ≥ 1.2.0?
I am on AEM 6.5.6 and the screenshot above is from the same instance. It exports out 1.1.2. The only version above this is 6.5.7, not sure if it has been upgraded to 1.2.0 as you need
If I’m on an older version of AEM, how do I upgrade Installer Configuration Factory?
You can build the bundle or download the already available one and install. However if there is any hard dependency on the existing version, your instance may corrupt. In order to avoid that, you may need to evaluate what all bundles are dependent on the existing version of configuration bundle and see if you can upgrade them all.
Short cut is to create a vanilla instance and deploy the configuration bundle exporting 1.2.0 version of configuration and test if instance comes up and number of active bundles is same and the ones before you upgraded configurations bundle.

AEM 6.2 Local Setup Core Bundle Issue

And I have installed AEM 6.2 my local setup Then Created a new project using maven archetype. When I try to edit the site content of my page It gives This error.
Then I found the issue was not installed com.adobe.cq.core.wcm.components.core bundle in AEM.
When I open the bundle it shows description as A set of standardized components for AEM 6.3+ that can be used to speed up development of websites. And it contains a couple of issues.
Then I try to start that bundle It didn't work. I need to know what should be the issue with setup
Newer maven archetypes support the latest versions. If you do not have a requirement for core components and really want to use the maven archetype for AEM 6.2, then you can try to generate your project in batch mode using archetypeVersion as 11 and set the aemVersion to 6.2.0

maven trick to change package names

Our project is planning to upgrade storm from 0.10.0 to 1.0.2.
Between these versions, storm has changed all package-names from backtype to org.apache
Now we use a couple of 3rd party storm dependencies like storm-jms, https://github.com/HolmesNL/kafka-spout etc.
Some of these projects have plans to upgrade soon to 1.0.2 but some do not have it on their roadmap.
So when we upgrade the storm-version in pom.xml, all those 3rd party dependencies begin to cause compilation errors as they do not find backtype.* packages anymore.
What is the best strategy to proceed in such a case?
Is there a maven-trick published somewhere to change the package names automatically?
In your pom, you can add class relocation (https://maven.apache.org/plugins/maven-shade-plugin/examples/class-relocation.html)
The patterns, that you have to use, are in following class -
https://github.com/apache/storm/blob/master/storm-rename-hack/src/main/java/org/apache/storm/hack/StormShadeRequest.java
From Storm web page (https://storm.apache.org/releases/1.0.0/index.html):
NOTE
In the latest version, the class packages have been changed from "backtype.storm" to "org.apache.storm" so the topology code compiled with older version won't run on the Storm 1.0.0 just like that. Backward compatibility is available through following configuration
client.jartransformer.class: "org.apache.storm.hack.StormShadeTransformer"
You need to add the above config in storm installation if you want to run the code compiled with older versions of storm. The config should be added in the machine you use to submit your topologies.
Refer to https://issues.apache.org/jira/browse/STORM-1202 for more details.

Java3D Maven Repository for 1.5.2

I'm at my wit's end trying to get Java3D working with Maven. The latest version in the Maven core repository is 1.3.1, but there don't seem to be any 64-bit dll files (without installers) that will work with such an early version! It seems that the 1.5.2 dll I donwloaded is incompatible (unsurprisingly).
Does anyone know of a repository that has at least version 1.4.0?
Otherwise, looks like I'm going to have to learn JOGL instead and change all my code.
Rather make a request for enhancement. Maybe we could publish Maven on Maven Central or at least in our development repository. Please check whether you're using Java 3D 1.6, look at that if you don't know how to install it.

Which version of acceleo is been used in screencasts?

Can anyone please tell me which version of acceleo is been used in screencasts of acceleo website? Because currently I am using acceleo 2.7 and I am trying to do the same thing but I don't get the expected results!
Edit:
I am new to Acceleo and I was trying to learn from the tutorials, I downloaded topcased integrated into eclipse helios 'Topcased-RCP-win32-4.3.0.zip' from this link
http://www.topcased.org/index.php?idd_projet_pere=52&Itemid=60
and it is associated with acceleo 2.7, apparently the topcased is working because I can create the diagrams with no problem but when I create a new module launcher for hibernate and launch it, according to this screen cast
http://acceleo.org/screencast.phpwidth=1024&height=788&swf=modules/pages/jee/images/screencast/GenerationBDAcceleo&lang=en
it should generate the hbm.xml file and the sql files but the only thing I get is a 'src' folder and some other subfolders in it has been generated with no code!
Daniel,
Which screencasts are you talking about? The official Acceleo website is now hosted on Eclipse. Are you talking about the screencasts that can be found on its documentation page? Or about those that can be located through the Eclipse wiki? These are all for the current version of Acceleo, i.e the versions 3.*.
However if you are talking about the acceleo.org website, as you can see from its homepage, it is a website for the maintenance release (the versions 2.*). If you are using Acceleo 2.7, this is the website where you can locate accurate screencasts. We do not encourage users to start using Acceleo with this version though, and we recommend using the Acceleo 3.x stream instead.

Resources