问题标签 [devkit]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
625 浏览

mule - 在 Mule 功能测试中加载的配置会引发错误,但会在测试之外运行

我有一个奇怪的情况,在 Mule 功能测试中加载的 Mule 配置会从带有 vm 的流中抛出以下类型的错误。令人讨厌的是,这个流程可以完美地作为 mule 应用程序运行,有时通过使用 mule studio 进行调整,我可以让测试运行,几乎是随机的。

错误发生在 vm: 行并说类似

org.mule.api.config.ConfigurationException:来自 URL [file:/D:/config.xml] 的 XML 文档中的第 21 行无效;嵌套异常是 org.xml.sax.SAXParseException;行号:21;列号:18;cvc-complex-type.2.4.a:发现以元素“vm:inbound-endpoint”开头的无效内容。“{”之一http://www.mulesoft.org/schema/mule/core “:annotations,” http://www.mulesoft.org/schema/mule/core “:description,” http://www .mulesoft.org/schema/mule/core ":abstract-message-source, " http://www.mulesoft.org/schema/mule/core ":abstract-inbound-endpoint, " http://www.mulesoft .org/schema/mule/core ":abstract-message-processor, " http://www.":abstract-outbound-endpoint, " http://www.mulesoft.org/schema/mule/core ":abstract-mixed-content-message-processor, " http://www.mulesoft.org/schema/mule /core ":response}' 是预期的。 (org.mule.api.lifecycle.InitialisationException) at org.mule.config.builders.AbstractConfigurationBuilder.configure(AbstractConfigurationBuilder.java:52)

有任何想法吗?对我来说真的很奇怪。

注意: foo:outbound 来自我使用 maven devkit archtype 生成的 devKit 更新站点

0 投票
1 回答
229 浏览

mule - 让功能单元测试等到连接 devkit 连接器

我经常需要在我的 devKit 连接器中等待一些异步进程完成(然后导致 isConnected 返回 true )

我怎样才能让我的功能单元测试等到完成。我原以为单元测试会等到我的流程中的所有连接器都“连接”起来。

Atm 我在单元测试中使用睡眠来解决我的 FunctionalTestCase

编辑_ _ __ _ __ _ __ _ __ _ __ _ ____

连接代码:

0 投票
1 回答
109 浏览

mule - @ValidateConnection method is failing to be called when using "@Category component"

I have an issue in a new devkit Project where the following @ValidateConnection method is failing to be called (but my @processor methods are called fine when requested in the flows)

#xA;

I thought that the above should be called to check whether to call the @Connect method.

I think it is because I am using a non default category (Components) for the connector

#xA;

And the resulting Behavoir is different to what I am used to with DevKit in Cloud connector mode.

I guess I will need to do checks in each @processor for now to see if the initialization logic is done, as there doesn't seem to be an easy way to run a one time config.

EDIT_________________ I actually tried porting it back to a cloud connector @cat and the same behaviour, maybe its an issue with devkit -DarchetypeVersion=3.4.0, I used 3.2.x somthing before and things worked a bit better

0 投票
1 回答
649 浏览

mule - devkit 3.3.2 和 eclipse CoreException 的问题

我正在尝试使用Devkit 3.3.2在Mule Studio 3.4中创建一个连接器。

以下是我用来生成项目结构的maven (3.0.2)命令:

在此之后,我做了:

这在 Studio 中产生了一些似乎与 devkit 3.4.0 相关的错误,因此决定在 pom.xml 中将 Mule/Devkit 版本从3.4.0 更改为 3.3.2

Studio 中显示以下两个错误:

“该项目未构建,因为其构建路径不完整。找不到 org.eclipse.core.runtime.CoreException 的类文件。修复构建路径,然后尝试构建此项目 aria-connector 未知 Java 问题”

“类型 org.eclipse.core.runtime.CoreException 无法解析。它是从所需的 .class 文件中间接引用的 AriaActivator.java /aria-connector/target/generated-sources/mule/org/mule/tooling/ui/contribution第 1 行 Java 问题”

我的环境是Mac OS X 10.8.4(Windows 7 也出现错误),Mule Studio 3.4.0, java 版本“1.6.0_51”。

有没有人遇到过类似的问题或知道如何解决这个问题?

谢谢

0 投票
1 回答
1019 浏览

mule - 运行 mule 时抛出空异常,当 devkit 3.0.0 方法采用 @InboundAttachments 参数时

我正在尝试使用@attachment http 属性

我在这样调用的流程中有一个名为 validate 的 devkit 方法

在 Devkit 中:

但是,当运行我的骡子应用程序时,会抛出:

错误 2013-07-30 09:06:39,225 [main] org.mule.module.launcher.application.DefaultMuleApplication: null org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: 元素的内容' xmlthreatprotection:validate' 不完整。'{" http://www.mulesoft.org/schema/mule/core ":annotations, " http://www.mulesoft.org/schema/mule/xmlthreatprotection ":inbound-attachments}' 之一是预期的。在 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(未知来源)

在我看来,骡子希望附件以某种方式作为属性放入!当我删除 @attachment 的东西时,我在运行时不会出错。

0 投票
1 回答
306 浏览

mule - Mule EE jars 命令 populate_m2_repo 需要在 windows 中设置 %MULE_HOME% env 变量

运行 populate_m2_repo C:\Users\me.m2\repository 时,我被要求设置 %MULE_HOME%。通常在我的计算机上,我有多个可用于测试的独立版本,因此每次出现新的独立版本时都不断更改此变量很不方便。

有人可以解释为什么 populate_m2_repo 需要设置 %MULE_HOME% 吗?

谢谢

0 投票
1 回答
68 浏览

mule - 在 devkit @processor 中停止流的继续

是否有商定的方法来停止 devit @processor 方法中的流程继续?我希望它表现得像一个过滤器,消息被丢弃。

0 投票
1 回答
68 浏览

mule - 使用 this.getClass().getClassLoader() 的 Devkit 更新站点问题

我们在使用 devkit 构建的 jar 时遇到很多问题,这些 jar 尝试基于以下任一方法解析文件:

当从编译到 devkit 更新站点的原始项目(即使用 devkit 架构和 @Connector 注释类的项目)构建和运行时,该项目工作正常,但是当从使用 devkit 更新站点的项目运行时,我们获取文件解析问题。

我可以确认我们在src/main/resourcessrc/test/resources中有想要的文件。我们使用 configFile 变量的相对路径,例如file.propertites

0 投票
1 回答
840 浏览

mule - Mule can't find xsd generated by Devkit

I'm having issues the the xsd files that are generated with Devkit. Now the xsd file is generated fine but when trying to run the connector mule can't find the xsd.

I get errors of this sort:

org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 58; schema_reference.4: Failed to read schema document 'http://www.mulesoft.org/schema/mule/fooCloud/1.0-SNAPSHOT/mule-fooCloud.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .

Now I have been having a deep look for the .xsd file and have found 4 references to it.

http://www.mulesoft.org/schema/mule/fooCloud/1.0-SNAPSHOT/mule-fooCloud.xsd

But the actual xsd file only exists in the target/gernerated-sources folder. I have not seen it in the update-site. zip

any ideas why mule keeps trying to reference the mule site for the xsd?

0 投票
1 回答
74 浏览

php - CreditMemo 恢复有空白响应/不恢复

出于某种原因,当我尝试在 Quickbooks IPP 中恢复贷项通知单时,我得到一个空白响应。我删除了授权标头,因此我可以将其发布在请求下方:

响应:

我正在使用 php devkit