Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting Error while deploy BPM Hello world project in JDEVELOPER 12c

3329767May 21 2019 — edited May 23 2019

Hi Guru's,

Am developing BPM Hello world Project in jdeveloper and trying to deploy am  getting below error.am using 11g express edition database.

Please help me.

[04:03:04 PM] ----  Deployment started.  ----

[04:03:04 PM] Target platform is  (Weblogic 12.x).

[04:03:04 PM] Running dependency analysis...

[04:03:04 PM] Building...

[04:03:22 PM] Deploying profile...

[04:03:22 PM] Updating revision id for the SOA Project 'HelloWorldProject.jpr' to '1.0'..

[04:03:26 PM] Wrote Archive Module to C:\JDeveloper\mywork\HelloWorld_OBE\HelloWorldProject\deploy\sca_HelloWorldProject.jar

[04:03:27 PM] Running dependency analysis...

[04:03:27 PM] Building...

[04:03:49 PM] Deploying 2 profiles...

[04:03:50 PM] Wrote Web Application Module to C:\JDeveloper\mywork\HelloWorld_OBE\HelloWorld_UI\deploy\HelloWorld_UI.war

[04:03:51 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\HelloWorld_OBE\deploy\HelloWorld_OBE.ear

[04:03:51 PM] Deploying sca_HelloWorldProject.jar to partition "default" on server DefaultServer [http://HSC-R90AF08N.allegisgroup.com:7101]

[04:03:51 PM] Processing sar=/C:/JDeveloper/mywork/HelloWorld_OBE/HelloWorldProject/deploy/sca_HelloWorldProject.jar

[04:03:51 PM] Adding sar file - C:\JDeveloper\mywork\HelloWorld_OBE\HelloWorldProject\deploy\sca_HelloWorldProject.jar

[04:03:51 PM] Preparing to send HTTP request for deployment

[04:03:52 PM] Creating HTTP connection to host:HSC-R90AF08N.allegisgroup.com, port:7101

[04:03:52 PM] Sending internal deployment descriptor

[04:03:52 PM] Sending archive - sca_HelloWorldProject.jar

[04:04:14 PM] Received HTTP response from the server, response code=500

[04:04:14 PM] Error deploying archive sca_HelloWorldProject.jar to partition "default" on server DefaultServer [http://HSC-R90AF08N.allegisgroup.com:7101]

[04:04:14 PM] HTTP error code returned [500]

[04:04:14 PM] Error message from server:

There was an error deploying the composite on DefaultServer: Deployment Failed: Error occurred during deployment of component: SayHello to service engine: implementation.workflow, for composite: HelloWorldProject: ORABPEL-30257

exception.code:30257

exception.type: ERROR

exception.severity: 2

exception.name: Error while Querying workflow task metadata.

exception.description: Error while Querying workflow task metadata.

exception.fix: Check the underlying exception and the database connection information.  If the error persists, contact Oracle Support Services.

: exception.code:30257

exception.type: ERROR

exception.severity: 2

exception.name: Error while Querying workflow task metadata.

exception.description: Error while Querying workflow task metadata.

exception.fix: Check the underlying exception and the database connection information.  If the error persists, contact Oracle Support Services.

.

[04:04:14 PM] Check server log for more details.

[04:04:14 PM] Error deploying archive sca_HelloWorldProject.jar to partition "default" on server DefaultServer [http://HSC-R90AF08N.allegisgroup.com:7101]

[04:04:14 PM] Deployment cancelled.

[04:04:14 PM] ----  Deployment incomplete  ----.

[04:04:14 PM] Error deploying archive file:/C:/JDeveloper/mywork/HelloWorld_OBE/HelloWorldProject/deploy/sca_HelloWorldProject.jar

(oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)

Regrds,

Sulochana

This post has been answered by Martien van den Akker on May 22 2019
Jump to Answer

Comments

Mike Kutz

Query 1b
Use ANSI joins

Select t1.emp_id, t1.emp_name, t2.dept_name
from EMPLOYEES t1
    Left join DEPARTMENTS t2. 
      On t1.dept_id = t2.dept_id
order by t1.emp_name

In Query 2, the scalar sub query is ran for each returning row of EMPLOYEES.

User_H3J7U

To be equivalent, emp.department_id must be fk not null. And depends on function.

Jonathan Lewis

Calling a pl/sql function to return a string that could simply be a column (or concatenation of columns) from a table is introducing an overhead and a possible threat. It's not necessary.
Assuming you have the standard referential integrity between employees and departments (i.e. unique id for departments, foreign key on employees to departments) then your inline scalar subquery could be:

(select dep.dept_name from departments dep where dep.dept_id = emp.dept_id)

It's worth noting that the return from the function would be varchar2(4000) which might affect the output of the final query, or if you're pulling the data across a network might (depending on the client tool) waste a lot of memory if (for example) the client code allocated memory based on the maximum possible return length).
If employees allows for employees not yet assigned to a department (i.e. null dept_id) this would report NULL in the final query, whereas the join would lose the employee unless you changed the join to an outer join.
You are presumably hoping to benefit from scalar subquery caching with the scalar subquery approach - or possibly result caching, or pl/sql function caching. Two things to remember if you depend on such things - how long does the cache persist, what happens if you get a cache collision. The more different departments you have (and millions of employees may mean thousands of departments) the more likely you are to get a hash collision on the cache and end up with randomly variable performance.
In your example the simply join is likely to be a hash join using the departments table as the build table with optimal workarea usage - which means an in-memory hash lookup by each employee, and you can't really get much faster than that.
With an example like this "millions of employees, no filtering" your performance problems are more likely to be related to transporting the volume of data to the client - so setting a large fetch arraysize is likely to be far more important than fiddling with such simple SQL. And while there is a way to write the query so that it can perform a little faster, there are two other aspects of coding to consider: how fragile is the code, and what are the chances that the next person who has to modify the code will not understand the tweaks you've used and do something that makes things worse.

Here's a very old example of the performance instability that can appear with scalar subquery caching - in this case it's a filter subquery, but the principle is the same: https://jonathanlewis.wordpress.com/2006/11/06/filter-subqueries/

Regards
Jonathan Lewis

Nic Pilot

Thank you all for your replies & tips.
So better go for Query 1 or Query 1b.
Is there any difference in term of performance between Query 1 & Query 1b ?

Jonathan Lewis

Bear in mind that if employees.dept_id is allowed to be null then the two queries will return different results. In that case the outer join equivalent using Oracle's traditional syntax would be:

Select t1.emp_id, t1.emp_name, t2.dept_name
from EMPLOYEES t1, DEPARTMENTS t2
where t1.dept_id = t2.dept_id(+)
order by t1.emp_name

(which you could view as "we add an empty row to t2/departments to give employees without a department something to join to")
Generally it is now seen strategically as a good thing to use the "ANSI" syntax rather than traditional Oracle syntax. There are a few oddities (whichevet you choose) that mean in some boundary cases you get different plans as you switch. In this case there would be no performance difference.
Regards
Jonathan Lewis

Nic Pilot

Thank you Jonathan.
Regards

1 - 6

Post Details

Added on May 21 2019
6 comments
899 views