jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From FSchumacher <...@git.apache.org>
Subject [GitHub] jmeter issue #390: Update mongo-java-driver version
Date Sat, 30 Jun 2018 16:43:40 GMT
Github user FSchumacher commented on the issue:

    https://github.com/apache/jmeter/pull/390
  
    When I compile your PR with ```ant download_jars clean install```, I get the following:
    ```
    compile-mongodb:
        [javac] Compiling 9 source files to /xxx/jmeter/build/protocol/mongodb
        [javac] /xxx/jmeter/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java:117:
error: cannot find symbol
        [javac]                 .autoConnectRetry(getAutoConnectRetry())
        [javac]                 ^
        [javac]   symbol:   method autoConnectRetry(boolean)
        [javac]   location: class Builder
        [javac] /xxx/jmeter/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java:130:
error: no suitable constructor found for WriteConcern(int,int,boolean,boolean,boolean)
        [javac]             builder.writeConcern(new WriteConcern(
        [javac]                                  ^
        [javac]     constructor WriteConcern.WriteConcern() is not applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(int) is not applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(String) is not applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(int,int) is not applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(boolean) is not applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(int,int,boolean) is not applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(int,int,boolean,boolean) is not
applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(String,int,boolean,boolean) is not
applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac]     constructor WriteConcern.WriteConcern(Object,Integer,Boolean,Boolean)
is not applicable
        [javac]       (actual and formal argument lists differ in length)
        [javac] /xxx/jmeter/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java:53:
error: cannot find symbol
        [javac]         boolean authenticated = db.isAuthenticated();
        [javac]                                   ^
        [javac]   symbol:   method isAuthenticated()
        [javac]   location: variable db of type DB
        [javac] /xxx/jmeter/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java:57:
error: cannot find symbol
        [javac]                 authenticated = db.authenticate(username, password.toCharArray());
        [javac]                                   ^
        [javac]   symbol:   method authenticate(String,char[])
        [javac]   location: variable db of type DB
        [javac] /xxx/jmeter/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java:55:
error: cannot find symbol
        [javac]         db.requestStart();
        [javac]           ^
        [javac]   symbol:   method requestStart()
        [javac]   location: variable db of type DB
        [javac] /xxx/jmeter/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java:57:
error: cannot find symbol
        [javac]             db.requestEnsureConnection();
        [javac]               ^
        [javac]   symbol:   method requestEnsureConnection()
        [javac]   location: variable db of type DB
        [javac] /xxx/jmeter/src/protocol/mongodb/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java:66:
error: cannot find symbol
        [javac]             db.requestDone();
        [javac]               ^
        [javac]   symbol:   method requestDone()
        [javac]   location: variable db of type DB
        [javac] Note: Some input files use or override a deprecated API.
        [javac] Note: Recompile with -Xlint:deprecation for details.
        [javac] 7 errors
    ```
    That means, that the current code doesn't work with the new jars.
    
    If you want to update the code the new jars, go ahead, but as of JMeter 3.0 the sampler
has been deprecated and it should have been removed with version 3.1 (which obviously didn't
happen).
    
    It would be interesting to see your JSR223 sampler. I suspect it handles all of the connection
setup and client usage itself. Maybe it would be a good idea to discuss your use case and
solution on the mailing list.


---

Mime
View raw message