Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to run wsdl2apigee on macOS #40

Open
flogei opened this issue Oct 14, 2021 · 8 comments
Open

Not able to run wsdl2apigee on macOS #40

flogei opened this issue Oct 14, 2021 · 8 comments

Comments

@flogei
Copy link

flogei commented Oct 14, 2021

$ javac -version
javac 17

$ java -version
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)
Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)

Error thrown when running java -jar wsdl2apigee-1.0.0-jar-with-dependencies.jar -wsdl=library-wsdl.xml
java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.lang.Object.finalize() throws java.lang.Throwable accessible: module java.base does not "opens java.lang" to unnamed module @755c9148

@Gueryce
Copy link

Gueryce commented Dec 19, 2021

Hello, I haven't yet try , but I could do to run wsdl2apigee in my Mac. I will see what 's the problem.

@martin-svensson-inera
Copy link

I get the same error on Windows as well

C:>java -version
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)

C:\programs\wsdl2apigee-master\target>java -jar wsdl2apigee-1.0.0-jar-with-dependencies.jar -wsdl="https://paypalobjects.com/wsdl/PayPalSvc.wsdl"
dec. 22, 2021 9:55:32 FM com.apigee.proxywriter.GenerateProxy prepareTargetFolder
INFO: Target proxy folder setup complete
dec. 22, 2021 9:55:32 FM com.apigee.proxywriter.GenerateProxy begin
INFO: Read operations map
java.lang.reflect.InaccessibleObjectException: Unable to make protected void java.lang.Object.finalize() throws java.lang.Throwable accessible: module java.base does not "opens java.lang" to unnamed module @6895a785

@Gueryce
Copy link

Gueryce commented Dec 22, 2021

Hello,

Could you try again with debug option.

And send the output.

@martin-svensson-inera
Copy link

martin-svensson-inera commented Dec 22, 2021 via email

@Gueryce
Copy link

Gueryce commented Dec 22, 2021

Hi,

D:\Dev>java -jar wsdl2apigee-1.0.0-jar-with-dependencies.jar -wsdl="https://paypalobjects.com/wsdl/PayPalSvc.wsdl"
dc. 22, 2021 9:45:58 PM com.apigee.proxywriter.GenerateProxy prepareTargetFolder
INFOS: Target proxy folder setup complete
dc. 22, 2021 9:45:58 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Read operations map
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
dc. 22, 2021 9:46:03 PM com.apigee.proxywriter.GenerateProxy getWSDLDetails
INFOS: Binding Stype: Document/Literal
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy getWSDLDetails
INFOS: Retrieved WSDL endpoint: https://api.sandbox.paypal.com/2.0/
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy generateOAS
INFOS: Generated OpenAPI Spec successfully.
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Parsed WSDL Successfully.
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Base Path: /paypalapiinterfaceservice
WSDL Path: https://paypalobjects.com/wsdl/PayPalSvc.wsdl
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Build Folder: C:\Users\cguery\AppData\Local\Temp\5290291684987700160
SOAP Version: SOAP11
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Proxy Name: PayPalAPIInterfaceService
Proxy Description: Generated SOAP to API proxy from PayPalAPIInterfaceService
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Generated Apigee proxy file.
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Generated SOAP Message Templates.
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIExtractPolicy
AVERTISSEMENT: Large SOAP Message Template; Skipping extract policy
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIAssignMessagePolicies
AVERTISSEMENT: Operation TransactionSearch soap template could not be generated
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIExtractPolicy
AVERTISSEMENT: Large SOAP Message Template; Skipping extract policy
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIAssignMessagePolicies
AVERTISSEMENT: Operation EnterBoarding soap template could not be generated
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIExtractPolicy
AVERTISSEMENT: Large SOAP Message Template; Skipping extract policy
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIAssignMessagePolicies
AVERTISSEMENT: Operation RefundTransaction soap template could not be generated
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Generated proxies XML.
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Copied standard policies.
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeTargetEndpoint
INFOS: Generated Target xml: C:\Users\cguery\AppData\Local\Temp\5290291684987700160\apiproxy\targets\default.xml
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Generated target XML.
dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin
INFOS: Generated Apigee Edge API Bundle file: PayPalAPIInterfaceService.zip

It' Ok for me.

I suggest to you to review your install of JVM . May be the version . Could you take the v8 ? (java-1.8.0-openjdk-1.8) and use maven apache-maven-3.6.3

@martin-svensson-inera
Copy link

martin-svensson-inera commented Dec 23, 2021 via email

@Gueryce
Copy link

Gueryce commented Dec 23, 2021

Hi Cedric! Thanks for your reply. Any suggestions why my installation fails? What java version do you use? Do i need a particular folder structure? I see that you have placed the jar file in a Dev folder. When i run the MVN to set up the wsdl2apigee-master then my wsdl2apigee-1.0.0-jar-with-dependencies.jar is placed in a folder named "target#. Have you just copied yours to your Dev folder or have you added the Dev folder to your PATH? Could something have gone wrong in the wsdl2apigee-master MVN setup? Or do i do i need to add additional stuff to my PATH? Best Regards. Martin Från: GUERY Cédric @.> Skickat: den 22 december 2021 21:50 Till: apigee/wsdl2apigee @.> Kopia: Svensson Martin @.>; Comment @.> Ämne: Re: [apigee/wsdl2apigee] Not able to run wsdl2apigee on macOS (#40) Viktig information: Detta är ett e-postmeddelande som kommer från en avsändare utanför organisationen. Var aktsam för okända avsändare samt misstänksamma bifogade filer eller länkar. Öppna endast filer och länkar från källor som du litar på. Hi, D:\Dev>java -jar wsdl2apigee-1.0.0-jar-with-dependencies.jar -wsdl="https://paypalobjects.com/wsdl/PayPalSvc.wsdl" dc. 22, 2021 9:45:58 PM com.apigee.proxywriter.GenerateProxy prepareTargetFolder INFOS: Target proxy folder setup complete dc. 22, 2021 9:45:58 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Read operations map SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. dc. 22, 2021 9:46:03 PM com.apigee.proxywriter.GenerateProxy getWSDLDetails INFOS: Binding Stype: Document/Literal dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy getWSDLDetails INFOS: Retrieved WSDL endpoint: https://api.sandbox.paypal.com/2.0/ dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy generateOAS INFOS: Generated OpenAPI Spec successfully. dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Parsed WSDL Successfully. dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Base Path: /paypalapiinterfaceservice WSDL Path: https://paypalobjects.com/wsdl/PayPalSvc.wsdl dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Build Folder: C:\Users\cguery\AppData\Local\Temp\5290291684987700160 SOAP Version: SOAP11 dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Proxy Name: PayPalAPIInterfaceService Proxy Description: Generated SOAP to API proxy from PayPalAPIInterfaceService dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Generated Apigee proxy file. dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Generated SOAP Message Templates. dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIExtractPolicy AVERTISSEMENT: Large SOAP Message Template; Skipping extract policy dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIAssignMessagePolicies AVERTISSEMENT: Operation TransactionSearch soap template could not be generated dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIExtractPolicy AVERTISSEMENT: Large SOAP Message Template; Skipping extract policy dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIAssignMessagePolicies AVERTISSEMENT: Operation EnterBoarding soap template could not be generated dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIExtractPolicy AVERTISSEMENT: Large SOAP Message Template; Skipping extract policy dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeSOAP2APIAssignMessagePolicies AVERTISSEMENT: Operation RefundTransaction soap template could not be generated dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Generated proxies XML. dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Copied standard policies. dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy writeTargetEndpoint INFOS: Generated Target xml: C:\Users\cguery\AppData\Local\Temp\5290291684987700160\apiproxy\targets\default.xml dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Generated target XML. dc. 22, 2021 9:46:04 PM com.apigee.proxywriter.GenerateProxy begin INFOS: Generated Apigee Edge API Bundle file: PayPalAPIInterfaceService.zip It' Ok for me. - Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapigee%2Fwsdl2apigee%2Fissues%2F40%23issuecomment-999872003&data=04%7C01%7Cmartin.svensson%40inera.se%7C8a4eba2d84114be77b0708d9c58c9305%7C9b461ef0885543db9f7777732f0bbc18%7C0%7C0%7C637758029828904722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BwBlTzUqPbq0ikSZ5A6eHmD5WsawFaw8KerV2UnHHZI%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAXAMLTXGMNJHZ6AGY5YZGV3USI2WHANCNFSM5F7CCBAA&data=04%7C01%7Cmartin.svensson%40inera.se%7C8a4eba2d84114be77b0708d9c58c9305%7C9b461ef0885543db9f7777732f0bbc18%7C0%7C0%7C637758029828904722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=K2boAR%2F3Y1di4pR%2FZV6GuIeRInSoUvMy1YlpRosFf14%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7Cmartin.svensson%40inera.se%7C8a4eba2d84114be77b0708d9c58c9305%7C9b461ef0885543db9f7777732f0bbc18%7C0%7C0%7C637758029828904722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=PjoOOQ1%2BFWI56dUPYCmbHuXGWyqkhQcsit4XXXlg6ds%3D&reserved=0 or Androidhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7Cmartin.svensson%40inera.se%7C8a4eba2d84114be77b0708d9c58c9305%7C9b461ef0885543db9f7777732f0bbc18%7C0%7C0%7C637758029828904722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=lLP7Rj2qLr3yMmTb2BCxMUKVGvrV80M5XfGk46LC54A%3D&reserved=0. You are receiving this because you commented.Message ID: @.@.>>

Hello Martin.

I use Java 8. For that.
And I just copy the jar in my folder where I usualy work.
For Maven , I think there are not particular things to do.
If the mvn install is ok, that all .
Thanks

@martin-svensson-inera
Copy link

Installed Java 8, and then it worked. Thanks @Gueryce for your assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants