Apple Reporter Sales.getReport Too few or too many parameters specified for a method

I am integrating Apple Reporter.jar to download sales reports of my application, but he complains that I have too few or too many arguments.

Too few or too many parameters specified for the method. Call ApplicationName.getHelp for a list of valid methods and their parameters.

When I call Sales.getHelp, it tells me that the parameters should be:

Usage: java -jar Reporter.jar p=[properties file] m=["Normal"|"Robot.XML"] a=[account number] Sales.[command] [arguments] 
where commands include: 
     getHelp: Returns this help message. No arguments. 
     getStatus: Returns status of Sales and Trends application. No arguments. 
     getAccounts: Returns list of available accounts. No arguments. 
     getVendors: Returns list of available vendor numbers. No arguments.  
     getReport: Downloads a report. Arguments: Vendor Number, Report Type, Report Subtype, DateType, Date. 

So, if I want to execute a command Sales.getReport, it seems to me that I need the following parameters:

java -jar Reporter.jar p=[properties file] m=["Normal"|"Robot.XML"] a=[account number] Sales.getReport Vendor_Number Report_Type Report_Subtype DateType Date

This is the command I used (with my real account number and provider number that I received through Reporter):

java -jar Reporter.jar p=Reporter.properties m="Normal" a="XXXXXX" Sales.getReport YYYYYYY Sales Summary Daily 20170130

As far as I can tell, they all match correctly:

1) java -jar Reporter.jar | java -jar Reporter.jar
2) p=[properties file] | p=Reporter.properties 
3) m=["Normal"|"Robot.XML"] | m="Normal" 
4) a=[account number] | a="XXXXXX" 
5) Sales.getReport | Sales.getReport 
6) Vendor_Number | YYYYYYY 
7) Report_Type | Sales 
8) Report_Subtype | Summary 
9) DateType | Daily
10) Date | 20170130

asdf , , , . params, , Sales.getReport.

- /?

+4
1

, , Apple Reporter.jar, .

, COMMAS . . , , Sales.getReport , , .

"YYYYYYY Sales Summary Daily 20170130" , , , .

, , , :

java -jar Reporter.jar p=Reporter.properties m="Normal" a="XXXXXX" Sales.getReport YYYYY, Sales, Summary, Daily, 20170129

, Apple, , . , Apple , . </rant>

+3

Source: https://habr.com/ru/post/1668306/


All Articles