Exception in thread “main” java.lang.NoSuchFieldError: TABLE_PUBLISHWORKBENCH

Hi,

I am trying a simple code where i get an object and print the object name. But I am getting the below error.

Exception in thread “main” java.lang.NoSuchFieldError: TABLE_PUBLISHWORKBENCH
at com.agile.api.pc.admin.AgileClass$InitTableDescriptorsAction.include(AgileClass.java:839)
at com.agile.api.pc.admin.AgileClass$InitTableDescriptorsAction.doSdkAction(AgileClass.java:810)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at com.agile.api.common.Security.doAs(Security.java:59)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.admin.AgileClass.getTableDescriptors(AgileClass.java:485)
at com.agile.api.pc.admin.AgileClass.getTableDescriptor(AgileClass.java:452)
at com.agile.api.pc.Table.initTableDescriptor(Table.java:1171)
at com.agile.api.pc.Table.getTableDescriptor(Table.java:736)
at com.agile.api.pc.Table.getTableIndex(Table.java:1075)
at com.agile.api.pc.TablePC$LoadServerTableAction.doSdkAction(TablePC.java:313)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at com.agile.api.common.Security.doAs(Security.java:59)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.TablePC.loadServerTable(TablePC.java:96)
at com.agile.api.pc.Table.loadServerTableEx(Table.java:1380)
at com.agile.api.pc.TableIterator.loadData(TableIterator.java:240)
at com.agile.api.pc.TableIterator$MoveWindowAction.doSdkAction(TableIterator.java:216)
at com.agile.api.common.SDKAction.run(SDKAction.java:23)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:370)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:163)
at weblogic.security.Security.runAs(Security.java:62)
at com.agile.api.common.WebLogicAuthenticator.doAs(WebLogicAuthenticator.java:111)
at com.agile.api.common.Security.doAs(Security.java:54)
at com.agile.api.common.Security.doAs(Security.java:109)
at com.agile.api.pc.TableIterator.moveWindow(TableIterator.java:184)
at com.agile.api.pc.TableIterator.checkIterator(TableIterator.java:198)
at com.agile.api.pc.TableIterator.hasNext(TableIterator.java:56)
at com.agile.api.pc.DataObject.getName(DataObject.java:161)
at testing.createsession.main(createsession.java:24)

 

Can you please suggest what could i be doing wrong.

 

Thanks in advance

Agile User Asked on October 15, 2019 in Product Collaboration.
Add Comment
1 Answer(s)

Hello

Can you please check the AgileAPI.jar version you are using? Looks like you are using an incompatible version

One way is to get the AgileAPI.jar from the server /integration/sdk/lib and replace it with what you have in your classpath. Also, please clear AgileSDK.cache before trying

Hope this helps

-Raj

Agile Professional Answered on October 15, 2019.

Hi Raj,

Thanks! changing the jar file helped.

However, when i try the same from another project, i get the below error.

<Oct 15, 2019 7:33:55 PM IST> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<Oct 15, 2019 7:33:55 PM IST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
java.lang.IllegalArgumentException: [Security:090461]Class not Found weblogic.security.SSL.jsseadapter.JaSSLContextImpl

 

Can you suggest if i have to make any changes here

on October 15, 2019.

Hello

Can you please send the complete stack trace? Also, is your agilesdk URL SSL enabled?

– Raj

 

on October 15, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.