When trying to upload my iOS app to the app store I see this error with iTMSTransporter. This occurs when using xcrun altool or fastlane pilot builds :
2022-04-22T01:20:31.9952870Z An exception has occurred: null
2022-04-22T01:20:32.0055430Z [0m 2022-04-22T01:20:32.1260390Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) 2022-04-22T01:20:32.1360210Z [0m 2022-04-22T01:20:32.1463160Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source) 2022-04-22T01:20:32.1563930Z [0m 2022-04-22T01:20:32.1596110Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source) 2022-04-22T01:20:32.1660320Z [0m 2022-04-22T01:20:32.1725320Z
[01:20:32]: [33m[iTMSTransporter] at
java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-04-22T01:20:32.1770950Z [0m 2022-04-22T01:20:32.1804250Z
[01:20:32]: [33m[iTMSTransporter] at
com.apple.transporter.launcher.Application.start(Application.java:450)
2022-04-22T01:20:32.1840080Z [0m 2022-04-22T01:20:32.1884420Z
[01:20:32]: [33m[iTMSTransporter] at
com.apple.transporter.launcher.Application.main(Application.java:947)
2022-04-22T01:20:32.1987130Z [0m 2022-04-22T01:20:32.2087410Z
[01:20:32]: [33m[iTMSTransporter] 2022-04-22T01:20:32.2189840Z [0m
2022-04-22T01:20:32.2290160Z [01:20:32]: [33m[iTMSTransporter]
2022-04-22T01:20:32.2392840Z [0m 2022-04-22T01:20:32.2494790Z
[01:20:32]: [33m[iTMSTransporter] 2022-04-22T01:20:32.2597270Z [0m
2022-04-22T01:20:32.2699930Z [01:20:32]: [33m[iTMSTransporter]
2022-04-22T01:20:32.2802450Z [0m 2022-04-22T01:20:32.2903000Z
[01:20:32]: [33m[iTMSTransporter] Error Summary
2022-04-22T01:20:32.3004120Z [0m 2022-04-22T01:20:32.3105710Z
[01:20:32]: [33m[iTMSTransporter] 2022-04-22T01:20:32.3158440Z [0m
2022-04-22T01:20:32.3209430Z [01:20:32]: [33m[iTMSTransporter]
iTMSTransporter could not generate an itmsp: null
2022-04-22T01:20:32.3259380Z [0m 2022-04-22T01:20:32.3361780Z
[01:20:32]: [33m[iTMSTransporter] An exception has occurred: null
2022-04-22T01:20:32.3461800Z [0m 2022-04-22T01:20:32.3552070Z
[01:20:32]: [33m[iTMSTransporter] [2022-04-22 01:20:31 UTC]
DBG-X: Returning 1 2022-04-22T01:20:32.3611160Z [0m
2022-04-22T01:20:32.3668780Z [01:20:32]: iTunes Transporter output
above ^ 2022-04-22T01:20:32.3705330Z [01:20:32]: [31miTMSTransporter
could not generate an itmsp: null
Although the above error is pretty ambiguous it could be a result of the actuall .ipa not being validate. This should be the first thing that is tried before diagnosing certificates etc. Use the following commands to validate your app:
xcrun altool --validate-app -f [ipaname].ipa --type ios -u appstore-username -p appspecific-password
or with app store connect api key
xcrun altool --validate-app -t ios --apiKey unique-api-key --apiIssuer api-key-issuer -f ipname.ipa
Example error output
2022-04-26 09:09:22.285 *** Error: The Info.plist in the package must contain the CFBundleVersion key. Unable to validate your application. (-27001) {
NSLocalizedDescription = "The Info.plist in the package must contain the CFBundleVersion key.";
NSLocalizedFailureReason = "Unable to validate your application."; }
Related
Getting below error while running jenkins build,
Running as SYSTEM
Installing AdoptOpenJDK to /home/jenkins/agent/tools/hudson.model.JDK/jdk13
ERROR: Failed to download file:/jenkins_data/jenkins_home/caches/adoptopenjdk/LINUX/amd64/jdk8u345-b01.zip from agent; will retry from controller
Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from 172.30.16.214/172.30.16.214:32768
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:1000)
at hudson.FilePath.act(FilePath.java:1194)
at hudson.FilePath.act(FilePath.java:1183)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:1046)
at hudson.FilePath.installIfNecessaryFrom(FilePath.java:982)
at io.jenkins.plugins.adoptopenjdk.AdoptOpenJDKInstaller.performInstallation(AdoptOpenJDKInstaller.java:121)
at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:70)
at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:108)
at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:221)
at hudson.model.JDK.forNode(JDK.java:149)
at hudson.model.AbstractProject.getEnvironment(AbstractProject.java:342)
at hudson.model.Run.getEnvironment(Run.java:2431)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:955)
at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:57)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:168)
at org.jenkinsci.plugins.ghprb.Ghprb.getEnvVars(Ghprb.java:354)
at org.jenkinsci.plugins.ghprb.upstream.GhprbUpstreamStatusListener.returnEnvironmentVars(GhprbUpstreamStatusListener.java:42)
at org.jenkinsci.plugins.ghprb.upstream.GhprbUpstreamStatusListener.onStarted(GhprbUpstreamStatusListener.java:102)
at org.jenkinsci.plugins.ghprb.upstream.GhprbUpstreamStatusListener.onStarted(GhprbUpstreamStatusListener.java:31)
at hudson.model.listeners.RunListener.lambda$fireStarted$2(RunListener.java:230)
at jenkins.util.Listeners.lambda$notify$0(Listeners.java:59)
at jenkins.util.Listeners.notify(Listeners.java:67)
at hudson.model.listeners.RunListener.fireStarted(RunListener.java:228)
at hudson.model.Run.execute(Run.java:1895)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
java.io.FileNotFoundException: /jenkins_data/jenkins_home/caches/adoptopenjdk/LINUX/amd64/jdk8u345-b01.zip (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.(FileInputStream.java:157)
at java.base/java.io.FileInputStream.(FileInputStream.java:112)
at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:184)
at java.base/java.net.URL.openStream(URL.java:1165)
at hudson.FilePath$Unpack.invoke(FilePath.java:1082)
at hudson.FilePath$Unpack.invoke(FilePath.java:1074)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3502)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:377)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
atjava.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
atjava.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:125)
at java.base/java.lang.Thread.run(Thread.java:829)
I tried rerunning build , not sure why it is appearing
I am trying to upload an ipa generated from a pipeline task to testflight, but I keep getting this error,
2022-09-08T19:15:04.3027660Z [19:15:04]: Transporter transfer failed.
2022-09-08T19:15:04.3035460Z [19:15:04]:
2022-09-08T19:15:04.3038030Z [19:15:04]: iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.3148450Z An exception has occurred: null
2022-09-08T19:15:04.5690040Z [19:15:04]: [iTMSTransporter] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2022-09-08T19:15:04.5692520Z
2022-09-08T19:15:04.5693940Z [19:15:04]: [iTMSTransporter] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2022-09-08T19:15:04.5694840Z
2022-09-08T19:15:04.5695950Z [19:15:04]: [iTMSTransporter] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2022-09-08T19:15:04.5696630Z
2022-09-08T19:15:04.5697520Z [19:15:04]: [iTMSTransporter] at java.base/java.lang.reflect.Method.invoke(Unknown Source)
2022-09-08T19:15:04.5698140Z
2022-09-08T19:15:04.5699110Z [19:15:04]: [iTMSTransporter] at com.apple.transporter.launcher.Application.start(Application.java:450)
2022-09-08T19:15:04.5699870Z
2022-09-08T19:15:04.5701020Z [19:15:04]: [iTMSTransporter] at com.apple.transporter.launcher.Application.main(Application.java:947)
2022-09-08T19:15:04.5701970Z
2022-09-08T19:15:04.5703840Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5704400Z
2022-09-08T19:15:04.5705320Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5705520Z
2022-09-08T19:15:04.5706710Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5706970Z
2022-09-08T19:15:04.5707850Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5708140Z
2022-09-08T19:15:04.5708820Z [19:15:04]: [iTMSTransporter] Error Summary
2022-09-08T19:15:04.5709040Z
2022-09-08T19:15:04.5709430Z [19:15:04]: [iTMSTransporter]
2022-09-08T19:15:04.5709600Z
2022-09-08T19:15:04.5710090Z [19:15:04]: [iTMSTransporter] iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.5710380Z
2022-09-08T19:15:04.5710820Z [19:15:04]: [iTMSTransporter] An exception has occurred: null
2022-09-08T19:15:04.5711280Z
2022-09-08T19:15:04.5713560Z [19:15:04]: [iTMSTransporter] [2022-09-08 19:15:04 UTC] <main> DBG-X: Returning 1
2022-09-08T19:15:04.5713960Z
2022-09-08T19:15:04.5714350Z [19:15:04]: iTunes Transporter output above ^
2022-09-08T19:15:04.5714900Z [19:15:04]: iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.5715430Z An exception has occurred: null
2022-09-08T19:15:04.5716020Z Return status of iTunes Transporter was 1: iTMSTransporter could not generate an itmsp: null
2022-09-08T19:15:04.5717110Z \nAn exception has occurred: null
2022-09-08T19:15:04.5718220Z The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
2022-09-08T19:15:04.5918110Z
2022-09-08T19:15:04.5920580Z [!] Error uploading ipa file:
2022-09-08T19:15:04.5921290Z
2022-09-08T19:15:04.6299370Z ##[error]Error: The process '/usr/local/lib/ruby/gems/2.7.0/bin/fastlane' failed with exit code 1
2022-09-08T19:15:04.6329380Z ##[section]Finishing: Publish to the App Store TestFlight track
Any reason why I am getting this. I couldn't find an exact cause for this issue in other threads.
This issue was coming basically because I've configured multiple schemes but I haven't defined build numbers for some schemes. The error generated from the pipeline is pretty ambiguous.A more detailed answer on validating your ipa incase you got this type of a similar issue is posted here,
https://github.com/fastlane/fastlane/discussions/20636
I had a CICD pipeline in jenkins which initially connects with strapi then it will do the gatsby build. But in jenkins it shows error Plugin gatsby-source-strapi returned an error and Request failed with status code 500. My jenkins was running on aws server instance. But when I tried this CICD build in my localhost jenkins it is working properly.
What may be issue with my jenkins.
Or do I need to change gatsby-config.js?
My jenkins error message
error Plugin gatsby-source-strapi returned an error
[0m
[0m [0m[97m[41mError[0m[37m[41m:[0m[37m[41m [0m[97m[41mRequest failed with status code 500[0m
[0m [0m
[0m [0m[90m-[0m [0m[93mcreateError.js[0m[90m:[0m[93m16[0m[37m [0m[37mcreateError[0m
[0m [0m [0m[90m[SH_Website_CI_CD]/[axios]/lib/core/createError.js:16:15[0m
[0m [0m
[0m [0m[90m-[0m [0m[93msettle.js[0m[90m:[0m[93m18[0m[37m [0m[37msettle[0m
[0m [0m [0m[90m[SH_Website_CI_CD]/[axios]/lib/core/settle.js:18:12[0m
[0m [0m
[0m [0m[90m-[0m [0m[93mhttp.js[0m[90m:[0m[93m201[0m[37m [0m[37mIncomingMessage.handleStreamEnd[0m
[0m [0m [0m[90m[SH_Website_CI_CD]/[axios]/lib/adapters/http.js:201:11[0m
[0m [0m
[0m [0m[90m-[0m [0m[93mnext_tick.js[0m[90m:[0m[93m63[0m[37m [0m[37mprocess._tickCallback[0m
[0m [0m [0m[90minternal/process/next_tick.js:63:19[0m
[0m [0m
[0m
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gatsby-starter-default#0.1.0 cdnBuild: `NODE_ENV=cdn gatsby build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gatsby-starter-default#0.1.0 cdnBuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/lib/jenkins/.npm/_logs/2019-05-30T05_40_12_432Z-debug.log
[Pipeline] }
[Pipeline] // stage
[Pipeline] echo
ERROR - hudson.AbortException: script returned exit code 1
Any help
Thank you
I am using on WSO2 Message Broker as a message brokering system in my project. To get the queue information (information like to get all queues created in wso2mb server, number of messages in each queue and so on), I generated client from AndesAdminServics WSDL and tried to call getAllQueues() api from my api. Everytime i am getting unable to find valid certification path to requested target exception. I am not able to figure out what is the problem. Exception is -
Jul 06, 2016 5:21:19 PM org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.wso2.carbon.andes.admin.AndesAdminServiceSoap11BindingStub.getAllQueues(AndesAdminServiceSoap11BindingStub.java:858)
at org.wso2.carbon.andes.admin.AndesAdminServicePortTypeProxy.getAllQueues(AndesAdminServicePortTypeProxy.java:62)
at org.wso2.carbon.andes.admin.TestClass.main(TestClass.java:11)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 24 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 30 more
{http://xml.apache.org/axis/}hostname:RIL15066YJB152
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.wso2.carbon.andes.admin.AndesAdminServiceSoap11BindingStub.getAllQueues(AndesAdminServiceSoap11BindingStub.java:858)
at org.wso2.carbon.andes.admin.AndesAdminServicePortTypeProxy.getAllQueues(AndesAdminServicePortTypeProxy.java:62)
at org.wso2.carbon.andes.admin.TestClass.main(TestClass.java:11)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
... 12 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 24 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 30 more
My api to call getAllQueues() method is -
package org.wso2.carbon.andes.admin;
import java.rmi.RemoteException;
public class TestClass {
public static void main(String args[]) {
AndesAdminServiceSoap11BindingStub aadptp;
AndesAdminServiceLocator loact = new AndesAdminServiceLocator();
try {
aadptp = new AndesAdminServiceSoap11BindingStub();
aadptp._setProperty(org.apache.axis.client.Stub.USERNAME_PROPERTY, "admin");
aadptp._setProperty(org.apache.axis.client.Stub.PASSWORD_PROPERTY, "admin");
aadptp._setProperty(org.apache.axis.client.Stub.ENDPOINT_ADDRESS_PROPERTY,
loact.getAndesAdminServiceHttpsSoap11EndpointAddress());
org.wso2.carbon.andes.admin.internal.xsd.Queue[] queues = aadptp.getAllQueues();
System.out.println(queues.length);
} catch (AxisFault e1) {
e1.printStackTrace();
} catch (RemoteException e) {
e.printStackTrace();
}
}
}
First, please try to access your endpoint with SoapUI or any other preferred tool to you. If you could access it, sounds like you need to add wso2 certificate to your JVM key store.
WSO2 products using custom key store which is located at ${carbon.home}/repository/resources/security/ directory. If you need access any https endpoint in WSO2 server with a java client, you need to add the certificate to the keystore file of the used JVM located at `${JAVA_HOME}/lib/security/cacerts'.
First you can check if your certificate is already in the keystore by running the following command: keytool -list -keystore "${JAVA_HOME}/lib/security/cacerts" (you don't need to provide a password)
If your certificate is missing, add it to the keystore with the following command:
keytool -import -noprompt -trustcacerts -alias wso2carbon -file ${carbon.home}/repository/resources/security/ -keystore ${JAVA_HOME}/lib/security/cacerts -storepass wso2carbon
I have a PHPUnit test suite ..
on my dual core laptop it takes 7 minutes to finish executing.. using a vagrant box (virtualbox provider)
~/project/module/ModuleName/tests:$ phpunit
PHPUnit 3.7.37 by Sebastian Bergmann.
Configuration read from ~/project/module/ModuleName/tests/phpunit.xml.dist
..F..FFF..FFFFFF..FFFFF...FFFFFFFFF
Time: 6.82 minutes, Memory: 6.00Mb
Yet, on my virtual machine guest image running Ubuntu 14.04 LTS .. it's taking only a fraction of that. Anyone have thoughts as to why? The only difference with the guest's execution is it's via an ant script and without Vagrant
phpunit:
[exec] PHPUnit 3.7.37 by Sebastian Bergmann.
[exec]
[exec] Configuration read from <~/tests/phpunit.xml.dist>
[exec]
[exec] .. [41;37mF [0m.. [41;37mF [0m [41;37mF [0m [41;37mF [0m.. [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m.. [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m... [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m [41;37mF [0m
[exec]
[exec] Time: 760 ms, Memory: 6.00Mb
[exec]
[exec] There were 24 failures:
[exec]
Since you are storing the files you are using on a share between your Vagrant host and the VM, the reason is probably exactly that. The standard way of mounting directories on the host is by using vboxfs which does not have read caching.
Since this is not going to be changed soon (as it seems) you're better of using NFS by setting the type of the shared folder to "nfs":
Vagrant.configure("2") do |config|
# ...
config.vm.synced_folder ".", "/vagrant", type: "nfs"
end
Note however that this only works on UNIX hosts such as Linux and Mac OS X. But since the problem does not exist on Windows, this should not be a problem.