gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

Problem encountered while trying to use - new GitLabApi(hostUrl, personalToken)

Open hasangi opened this issue 4 years ago • 0 comments

Hi All,

I used your cool API previously and its working perfectly fine but, now I am upgrading all versions dependencies, previously I didn't use the "javax.ws.rs:javax.ws.rs-api" but now it's asking missing Libraries for javax.ws.rs.core so I implemented javax.ws.rs. now when I tried to login using new GitLabApi(hostUrl, personalToken), I am getting below error, Can you please advice me.

Thanks.

`2022-02-22 11:01:04,458 [ 370570] ERROR - llij.ide.plugins.PluginManager - Bad type on operand stack Exception Details: Location: org/gitlab4j/api/GitLabApiClient.createApiClient()Ljavax/ws/rs/client/Client; @18: invokevirtual Reason: Type 'org/glassfish/jersey/client/JerseyClientBuilder' (current frame, stack[0]) is not assignable to 'javax/ws/rs/client/ClientBuilder' Current Frame: bci: @18 flags: { } locals: { 'org/gitlab4j/api/GitLabApiClient', 'org/glassfish/jersey/client/JerseyClientBuilder' } stack: { 'org/glassfish/jersey/client/JerseyClientBuilder', 'java/lang/Class' } Bytecode: 0000000: bb00 7059 b700 712a b400 19b6 0072 4c2b 0000010: 122c b600 7357 2ab4 0074 9900 132b 2ab4 0000020: 0075 b600 762a b400 77b6 0078 572a 2bb6 0000030: 0079 b500 2f2a b400 2fb0
Stackmap Table: append_frame(@45,Object[#351])

java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/gitlab4j/api/GitLabApiClient.createApiClient()Ljavax/ws/rs/client/Client; @18: invokevirtual Reason: Type 'org/glassfish/jersey/client/JerseyClientBuilder' (current frame, stack[0]) is not assignable to 'javax/ws/rs/client/ClientBuilder' Current Frame: bci: @18 flags: { } locals: { 'org/gitlab4j/api/GitLabApiClient', 'org/glassfish/jersey/client/JerseyClientBuilder' } stack: { 'org/glassfish/jersey/client/JerseyClientBuilder', 'java/lang/Class' } Bytecode: 0000000: bb00 7059 b700 712a b400 19b6 0072 4c2b 0000010: 122c b600 7357 2ab4 0074 9900 132b 2ab4 0000020: 0075 b600 762a b400 77b6 0078 572a 2bb6 0000030: 0079 b500 2f2a b400 2fb0
Stackmap Table: append_frame(@45,Object[#351])

at org.gitlab4j.api.GitLabApi.<init>(GitLabApi.java:440)
at org.gitlab4j.api.GitLabApi.<init>(GitLabApi.java:387)
at org.gitlab4j.api.GitLabApi.<init>(GitLabApi.java:326)
at org.gitlab4j.api.GitLabApi.<init>(GitLabApi.java:117)`

hasangi avatar Feb 22 '22 05:02 hasangi