查看: 2406|回复: 1

[原创] jdeveloper开发BPEL引用java节点问题?

[复制链接]
论坛徽章:
1
2012新春纪念徽章
日期:2012-01-04 11:55:05
发表于 2011-12-29 13:19 | 显示全部楼层 |阅读模式
最近学习BPEL开发,参考Oracle官网案例,部署测试,但是在部署bpel-109-UsingSchematronForAdvValidation这个案例时出现错误.
[01:01:45 PM] Received HTTP response from the server, response code=500
[01:01:45 PM] Invalid logging line: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
[01:01:45 PM] Invalid logging line: <HTML>
[01:01:45 PM] Invalid logging line: <HEAD>
[01:01:45 PM] Invalid logging line: <TITLE>Error 500--Internal Server Error</TITLE>
[01:01:45 PM] Invalid logging line: <META NAME="GENERATOR" CONTENT="WebLogic Server">
[01:01:45 PM] Invalid logging line: </HEAD>
[01:01:45 PM] Invalid logging line: <BODY bgcolor="white">
[01:01:45 PM] Invalid logging line: <FONT FACE=Helvetica><BR CLEAR=all>
[01:01:45 PM] Invalid logging line: <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
[01:01:45 PM] Invalid logging line: <FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal Server Error</H2>
[01:01:45 PM] Invalid logging line: </FONT></TD></TR>
[01:01:45 PM] Invalid logging line: </TABLE>
[01:01:45 PM] Invalid logging line: <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><pre>java.net.ProtocolException: Exceeded stated content-length of: &#39;415&#39; bytes
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.ServletOutputStreamImpl.checkCL(ServletOutputStreamImpl.java:200)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:146)
[01:01:45 PM] Invalid logging line:     at java.io.OutputStream.write(OutputStream.java:58)
[01:01:45 PM] Invalid logging line:     at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.sendLogMessages(CompositeDeployerServlet.java:398)
[01:01:45 PM] Invalid logging line:     at oracle.integration.platform.blocks.deploy.servlet.CompositeDeployerServlet.doPost(CompositeDeployerServlet.java:117)
[01:01:45 PM] Invalid logging line:     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
[01:01:45 PM] Invalid logging line:     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
[01:01:45 PM] Invalid logging line:     at java.security.AccessController.doPrivileged(Native Method)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
[01:01:45 PM] Invalid logging line:     at java.security.AccessController.doPrivileged(Native Method)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
[01:01:45 PM] Invalid logging line:     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
[01:01:45 PM] Invalid logging line:     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
[01:01:45 PM] Invalid logging line:     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
[01:01:45 PM] Invalid logging line:     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
[01:01:45 PM] Invalid logging line:     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
[01:01:45 PM] Invalid logging line:     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
[01:01:45 PM] Invalid logging line:     at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
[01:01:45 PM] Invalid logging line: </pre></FONT></TD></TR>
[01:01:45 PM] Invalid logging line: </TABLE>
[01:01:45 PM] Invalid logging line: </BODY>
[01:01:45 PM] Invalid logging line: </HTML>
[01:01:45 PM] Error deploying archive sca_bpel109demo_rev1.0.jar to partition "default" on server AdminServer [http://usersap:7001]
[01:01:45 PM] HTTP error code returned [500]
[01:01:45 PM] No error message is returned from the server.
[01:01:45 PM] Error deploying archive sca_bpel109demo_rev1.0.jar to partition "default" on server AdminServer [http://usersap:7001]
[01:01:45 PM] ####  Deployment incomplete.  ####
[01:01:45 PM] Error deploying archive file:/C:/JDeveloper/mywork/BPELSample/bpel-109-UsingSchematronForAdvValidation/bpel109demo/deploy/sca_bpel109demo_rev1.0.jar
(oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)


根据网上对此错误的描述,是说weblogic缓存区太小,但是没有说明具体在什么地方设置,网上很多类似的错误,都是由于编写文件上传引起的,但是我这边只是部署官网案例出错了。
bpel引入的java代码如下:
org.w3c.dom.Element elValidation = (org.w3c.dom.Element )getVariableData("lValidation");  //"lValidation"为流程中定义的变量
org.w3c.dom.Element elSchema = (org.w3c.dom.Element )getVariableData("lSchema");    //"lSchema"为流程中定义的变量
      
addAuditTrailEntry("Validation: \n" + com.collaxa.xml.XMLHelper.toXML(elValidation));      
addAuditTrailEntry("Schema: \n" + com.collaxa.xml.XMLHelper.toXML(elSchema));      
try   
{   
    oracle.tip.pc.services.validation.ValidationFramework frmwl = new oracle.tip.pc.services.validation.ValidationFramework();   
    frmwl.validation(elValidation, elSchema);   
    addAuditTrailEntry("Validation succeeded..");   
} catch (Exception eValidation)   
{   
    addAuditTrailEntry("Schematron validation error happened: " + eValidation.getMessage() + " ExceptionType: " + eValidation.getClass());   
    javax.xml.namespace.QName errorQ =   
        new javax.xml.namespace.QName ("http://xmlns.oracle.com/pcbpel/validationservice", "ValidationException");   
    addAuditTrailEntry("Creating validation error in: " + errorQ.toString());   
    throw new com.oracle.bpel.client.BPELFault(errorQ, eValidation);   
}

通过排查,错误应该是由于org.w3c.dom.Element elValidation = (org.w3c.dom.Element )getVariableData("lValidation"); 引起的,各位有谁学习BPEL的时候碰到过此种问题,指点下。
开发环境:
jdeveloper   11.1.1.4.0
soa: 11.1.1.4
wls1034_generic.jar


论坛徽章:
0
发表于 2012-1-10 21:10 | 显示全部楼层

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会 限时8.5折

【架构革新 高效可控】2020年6月4日~6日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 
京ICP备09055130号-4  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表