Cabinetman Posted September 24, 2017 Posted September 24, 2017 I'm know I'm way behind the curve but I'm finally at least moving up to FMPA v13. I'm having major issues getting my same java to work. Since this is the Scriptmaster section let me address my java issue that worked fine in v10 .......... I've copied the java code from Scriptmaster under v10 I pasted it into Scriptmaster under v13 I added the jars Run script I now get a .... java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.mws.MarketplaceWebServiceClient I'm at a loss .... Works fine in v10. Anybody able to offer any ideas ?
john renfrew Posted September 24, 2017 Posted September 24, 2017 Win, Mac?? Which jars? Which version of the MWSMerchantFulfillmentJavaClientLibrary
Cabinetman Posted September 24, 2017 Author Posted September 24, 2017 (edited) Sorry ... I knew I should have posted more info ! Windows 7 ... and it's the for Feeds/Reports API not the Merchant Fulfillment API I've updated to the latest Amazon libraries for my conversion Included the jars The dist folder MaWSJavaClientLibrary-1.1 All the thirs-party commons-codec-1.3 commons-httpclient-3.0.1 commons-logging-1.1 httpclient-4.2.6 httpcore-4.2 activation jaxb-api jaxb-impl jaxb-xjc jsr173_1.0_api log4j-1.2.14 I tried doing a conversion of the original Scriptmaster file in FPMv10 to 13 and it doesn't work after conversion in that file either. And just verified Java JDK 1.6.0_26 Edited September 25, 2017 by Cabinetman Verify Java ..... and list jar files
Cabinetman Posted September 25, 2017 Author Posted September 25, 2017 Admittedly my PC knowledge skills of late are limited and behind the times. Trying to raise 2 grandkids just doesn't leave me the time I use to have to stay on things .... or update as needed ... and thus why I still run Windows 7. SO ... I notice FMP 10 and 13 installed/s into Programs FIles (x86) .... 32 bit (correct?) Installed/Updated latest JDKs (jdk-8u144.Windows-i586 & jdk-8u144.Windows-x64) : Windows x86 dk-8u144-windows-i586.exe Windows x64 dk-8u144-windows-x64.exe ... to latest versions. Restarting to see if anything works ....
john renfrew Posted September 25, 2017 Posted September 25, 2017 (edited) Regardless of version of Windows, if you have scriptmaster 4... you need the 32 bit version of Java If you installed scriptmaster 5... and have 32 bit windows there is another thread on here you will need to follow to get the correct version of the JRE.. near the bottom of Edited September 25, 2017 by john renfrew
Cabinetman Posted September 25, 2017 Author Posted September 25, 2017 Thanks ... reading now. Especially since now that I've upgrade my JDKs my original ScriptMaster file now has the same errors ..... However ... at least my main repricer still works since I created my own plugin back a bit and it runs off it instead of setting global variables and using the ScriptMaster Plugin Will post after ......... Thanks!
Cabinetman Posted September 25, 2017 Author Posted September 25, 2017 (edited) Ok ... weird ! With that being said, I believe the issues you are seeing is because the JRE that is getting downloaded is 64-bit. To remedy this, please download this build of ScriptMaster and install it. I get this wanting me to delete the file ... not download. EDIT : OOPS ..... stupid me never thought about clicking on the file !! Now I can't get the file to reappear ..... Then it just wants me to upload .......... Next, delete the "1.8.0_121" folder at C:\ProgramData\360Works\Plug-ins\jre\1.8.0_121. Next, download this file and extract it. SAME issue as above without the "Delete." I just get the 2nd image ....... Now I have no C:\ProgramData\360Works\Plug-ins\jre\1.8.0_121 and no option of downloading anything from ScriptMaster ..... So the only things I have working any more are files built using my old plugin ..... no joy here. Edited September 25, 2017 by Cabinetman
ryan360Works Posted September 25, 2017 Posted September 25, 2017 Hi Cabinetman, ScriptMaster 5 currently will use Java 8 update 121 regardless of the Java that you have installed on the machine. If the plugin is showing as enabled in the plugin tab in FileMaker Preferences then it is running correctly. If you are using ScriptMaster 4 then it will use whatever Java you have installed on the machine. The instructions regarding manually installing the JRE need only be followed if you are having problems enabling the plugin. Since you are able to run your module and get an error, I suspect this is not the case. Rather, I think your problem is in regards to a missing dependency as the error message indicates that a class is missing which would be included in a .jar file. This stack overflow issue has the same error for a different class but indicates that they are missing a jar called aws-java-sdk-core. Perhaps you are in a similar situation? Hope that helps!
Cabinetman Posted September 25, 2017 Author Posted September 25, 2017 Thanks Ryan ... I had considered that. That jar is unrelated though and I had it working for years with the loaded jars. OK ...... so NEW EFFORT ..... from scratch Open FMP v10 Opened ScriptMaster old version (4?) on FMP v10 ... where I built my scripts For some reason all jars got unchecked sometime in this ScriptMaster file Rechecked them and ran script .... No errors and MWS_GetReport works Opened my own file again for FMP v10 This sets a global variable using RegisterGroovy(...) The exact same java code as copied from the Demo copy field Works fine .... No issues Open FMP v13 Converted old ScriptMaster (again 4?) to v13 Only 19 of 46 Jars in new file Still works though no idea where the other jars went Open 360Works ScriptMaster-5.052 Import jars from old ScriptMaster file to make sure I have them allNOTE : http://sc.360works.com/SuperContainer/Files/pro/360/java/32jre .... is empty and I can't download it per the instruction Copy/paste in script from converted old ScriptMaster RUN - "Groovy Script Failed" ???????????????????????????????????????????? What am I missing ?
Cabinetman Posted September 30, 2017 Author Posted September 30, 2017 This is just crazy ...... Open FMP v10 Opened ScriptMaster old version (4?) on FMP v10 ... where I built my scripts For some reason all jars got unchecked sometime in this ScriptMaster file Rechecked them and ran script .... No errors Opened my own file for FMP v10 This sets a global variable using RegisterGroovy(...) The exact same java code as copied from the Demo copy field Works fine .... No issues Open FMP v13 Converted old ScriptMaster (again 4?) to v13 Only 19 of 46 Jars in new file DID work ..... Now .... java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.mws.MarketplaceWebServiceClient Open 360Works ScriptMaster-5.052 Same Jars Copy/paste in script from converted old ScriptMaster java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.mws.MarketplaceWebServiceClient WHAT THE HECK ?!
Recommended Posts
This topic is 2858 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now