Java 对Axis2 Web服务的JOOQ支持

Java 对Axis2 Web服务的JOOQ支持,java,web-services,axis2,jooq,Java,Web Services,Axis2,Jooq,我有一个带有Axis2 Web服务的SOA应用程序,我正在使用JOOQ创建实体并访问数据库。在我的数据服务文件中,我有以下代码: public Contact[] findContactByName(String name) { try { Contact[] result = new ContactFacade().findContactsByName(name); return result; } catch (E

我有一个带有Axis2 Web服务的SOA应用程序,我正在使用JOOQ创建实体并访问数据库。在我的数据服务文件中,我有以下代码:

public Contact[] findContactByName(String name) { 
     try { 
            Contact[] result =  new ContactFacade().findContactsByName(name); 
            return result; 
     } catch (Exception ex) { 
            // TODO: Add Error Logger 
            return null; 
     } 
}
如果我在与web服务相同的项目中调用此代码,它可以正常工作,但是当我从客户机应用程序调用此服务时,我会在控制台中收到以下消息

[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.AbstractQueryPart (stopClass=class java.lang.Object). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.AbstractTable (stopClass=class org.jooq.impl.AbstractQueryPart). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.TableImpl (stopClass=class org.jooq.impl.AbstractTable). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.IdentityImpl (stopClass=class java.lang.Object). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.AbstractQueryPart (stopClass=class java.lang.Object). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.AbstractField (stopClass=class org.jooq.impl.AbstractQueryPart). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.TableFieldImpl (stopClass=class org.jooq.impl.AbstractField). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.IdentityConverter (stopClass=class java.lang.Object). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.DefaultDataType (stopClass=class java.lang.Object). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.DefaultDataType (stopClass=class java.lang.Object). This will negatively affect performance!
[WARN] Unable to locate a BeanInfo cache for class org.jooq.impl.DefaultDataType (stopClass=class java.lang.Object). This will negatively affect performance!
最后一个警告只是无限期地重复,直到服务触发服务超时


谢谢你的帮助。

我花了一些时间,但我设法解决了这个问题

事实证明,当试图传递使用上述('TableImpl'、'TableFieldImpl'、…)的jooq生成的类时,会发生此错误

因此,在您的配置中将generatePOJO选项设置为true,它将创建具有基本结构的POJO类。在DAO中,在获取记录时,将它们获取到POJO对象中,并通过服务返回

这是一个示例调用:

List<Contact> contactsList = context.selectFrom(Tables.CONTACT)
.where(Tables.CONTACT.NAME.equal("somevalue")).fetchInto(Contact.class);
List contacts List=context.selectFrom(Tables.CONTACT)
.where(Tables.CONTACT.NAME.equal(“somevalue”).fetchInto(CONTACT.class);
希望这对其他人有帮助:)

供参考,没有解决方案,到目前为止。。。