Problem with a procedure in Custom Public Transformation
We have Oracle 9.2.0.1.0, OWB 9.2.0.2.8. and Solaris Sun OS 5.8.
I have imported a package DWH in Public Transformation.
Then I use a procedure of the DWH package in a PreMapping in a Mapping, but when I deploy the mapping I receive 2 warnings:
ORA-06550: line 2007, column 9:
PLS-00201: identifier 'DWH.ASSIGN_CUSTOMERS' must be declared
ORA-06550: line 2007, column 9:
PL/SQL: Statement ignored
ASSIGN_CUSTOMERS is a procedure of the DWH package
I dont have deployed the package in the Public Transformation because I didnt found the option. Is It correct? Where is the code of this packages saved (deploy)???
Why do I obtain these errors?
Thanks!
I think you may want to import the packages into you module folder first, then deploy it into your target schema (I presume it does not exist in the target). Then deploy the mapping.
Only then I would copy it into public library.
Does that answer your question?
Jean-Pierre
Similar Messages
-
Custom public transformation not executed
Hi i'm fairly new to OWB so bare with me.
I've made a custom public transformation in the OWB repository:
CREATE OR REPLACE FUNCTION DATA."DUMMY_STRING" (
"P_AUDIT_ID" IN NUMBER,
"P_PARENT_AUDIT_ID" IN NUMBER
RETURN VARCHAR2
IS
BEGIN
RETURN TO_CHAR (p_audit_id) || ' - ' || TO_CHAR (p_parent_audit_id);
END;
i use it in a process flow where i call it with AUDIT_ID and PARENT_AUDIT_ID and bind the returning value to a process flow variable V_EMAIL_MSG.
i then call another stored procedure send_mail which is stored as a project transformation(works fine by the way) where i bind the input parameter of send_mail to V_EMAIL_MSG.
all's fine so far.
when i run the flow the dummy_string function isn't executed but the send_mail procedure is???.
i've also tried to "move" dummy_string from custom public transformations into project transformations but with the same results.
could it be something about execution privileges or such??
any help would be greatly appreciatedit seems that AUDIT_ID and PARENT_AUDIT_ID are strings inside the process flow, and the dummy_string function, takes two number parameters, so what i did was to make two assignment activities(ass1, ass2), and two process flow vaiables(v_audit_id, v_parent_audit_id) as integers.
ass1 assigns AUDIT_ID to the V_AUDIT_ID variable with a to_number(AUDIT_ID) command
ass2 assigns PARENT_AUDIT_ID to the V_PARENT_AUDIT_ID variable with a to_number(PARENT_AUDIT_ID) command
in activity dummy_string i bind the v_audit_id and v_parent_audit_id variables to the two input parameters fo dummy_string, and the output of dummy_string to a v_mail_msg variable(string type) wich in tunr is bound to the input parameter of the email activity.
Does anyone know is is't possible to include images in these posts, it would sure help in illustrating warehouse builder process flows. -
Problem with iChat changing my custom away message after 30 minutes
Lately, I've been having a big problem with iChat changing any custom away message that I put up to "Away" after 30 minutes or so. Is there anything I can do to make it stop? Another issue I'm having is that sometimes when people on my buddy list change their away message, it doesn't show up on iChat unless I go offline and then sign back on. Any idea why it's doing that, and what I can do to get it to stop?
Thanks.
- Danielle
G3 iMac Mac OS X (10.3.9)Hi ienjoyanime,
Go to the General Section of iChat Preferences.
Does it say you are set to Go to Away when you log off/QUit iChat ?
is the computer going to Sleep at this point ?
10:59 PM Saturday; April 1, 2006 -
People,
I'm having a problem with a procedure in the moment I'm trying to execute it, could someone help.
CREATE OR REPLACE PROCEDURE CARREGA IS
begin
declare
strSQL VARCHAR2(250);
NCham number(9);
cursor n_chamados is
SELECT NumeroChamado, Planta, Instalacao, Defeito,
DescricaoDefeito, Servico, DataChamado,Horas, Minutos
FROM DEFEITOS_AUX;
begin
For reg_chamado in n_chamados
Loop
begin
NCham := reg_chamado.numerochamado;
strSQL := 'SELECT numerochamado FROM Defeitos';
strSQL := strSQL || ' WHERE numerochamado =';
strSQL := strSQL || NCham || ' GROUP BY numerochamado';
EXECUTE IMMEDIATE strSQL;
exception
when no_data_found then
strSQL := 'INSERT INTO Defeitos (';
strSQL := strSQL || 'NumeroChamado, ';
strSQL := strSQL || 'Planta, ';
strSQL := strSQL || 'Instalacao, ';
strSQL := strSQL || 'Defeito, ';
strSQL := strSQL || 'DescricaoDefeito, ';
strSQL := strSQL || 'Servico, ';
strSQL := strSQL || 'DataChamado, ';
strSQL := strSQL || 'Horas, ';
strSQL := strSQL || 'Minutos) ';
strSQL := strSQL || 'VALUES ( ';
strSQL := strSQL || reg_chamado.NumeroChamado || ', ';
strSQL := strSQL || reg_chamado.Planta || ', ';
strSQL := strSQL || reg_chamado.Instalacao || ', ';
strSQL := strSQL || reg_chamado.Defeito || ', ';
strSQL := strSQL || reg_chamado.DescricaoDefeito || ', ';
strSQL := strSQL || reg_chamado.Servico || ', ';
strSQL := strSQL || reg_chamado.DataChamado || ', ';
strSQL := strSQL || reg_chamado.Horas || ', ';
strSQL := strSQL || reg_chamado.Minutos || ')';
EXECUTE Immediate strSQL;
end;
strSQL := 'UPDATE Defeitos SET ';
strSQL := strSQL || 'Planta = ' || reg_chamado.Planta;
strSQL := strSQL || ', Instalacao = ' || reg_chamado.Instalacao;
strSQL := strSQL || ', Defeito = ' || reg_chamado.Defeito;
strSQL := strSQL || ', DescricaoDefeito = ' || reg_chamado.DescricaoDefeito;
strSQL := strSQL || ', Servico = ' || reg_chamado.Servico;
strSQL := strSQL || ', DataChamado = ' || reg_chamado.DataChamado;
strSQL := strSQL || ', Horas = ' || reg_chamado.Horas;
strSQL := strSQL || ', Minutos = ' || reg_chamado.Minutos;
strSQL := strSQL || ' WHERE NumeroChamado = ' || NCham;
EXECUTE Immediate strSQL;
end loop;
end;
end;Hi Erika,
there is no need for dynamic SQL.
I suppose the NumeroChamado is your primary key and has an unique index on it.
Just insert the rows and if there is already an existing row, catch the exception and update the row.
CREATE OR REPLACE PROCEDURE CARREGA IS
CURSOR n_chamados IS
SELECT NumeroChamado,
Planta,
Instalacao,
Defeito,
DescricaoDefeito,
Servico,
DataChamado,
Horas,
Minutos
FROM DEFEITOS_AUX;
BEGIN
FOR reg_chamado IN n_chamados LOOP
BEGIN
INSERT INTO Defeitos (;
NumeroChamado, ';
Planta,
Instalacao,
Defeito,
DescricaoDefeito,
Servico,
DataChamado,
Horas,
Minutos
) VALUES (
reg_chamado.NumeroChamado,
reg_chamado.Planta,
reg_chamado.Instalacao,
reg_chamado.Defeito,
reg_chamado.DescricaoDefeito,
reg_chamado.Servico,
reg_chamado.DataChamado,
reg_chamado.Horas,
reg_chamado.Minutos
EXCEPTIONS
WHEN DUP_VAL_ON_INDEX THEN
UPDATE Defeitos SET
Planta = reg_chamado.Planta,
Instalacao = reg_chamado.Instalacao,
Defeito = reg_chamado.Defeito,
DescricaoDefeito = reg_chamado.DescricaoDefeito,
Servico = reg_chamado.Servico,
DataChamado = reg_chamado.DataChamado,
Horas = reg_chamado.Horas,
Minutos = reg_chamado.Minutos
WHERE NumeroChamado = reg_chamado.NumeroChamado;
END;
END LOOP;
END; -
Create procedure/functions under Custom Public Transformations using OMB
Hello,
I need to create a global procedure under Public Transformations. How do i do so?
I am able to create them under specific projects, but not as global.
I tried creating it after OMBCC 'PUBLIC_PROJECT' , but it says i need to change my context...
Can some one please help me with this.
Thanks in advance..check these links for references.
http://download.oracle.com/docs/cd/B31080_01/doc/owb.102/b28225/omb_appendix.htm
http://mis3nt.gsnu.ac.kr/PublicData/Oracle11gDoc/owb.111/b31279/omb_appendix.htm -
Deploy warnings using a PL/SQL procedure (from a Public Transform Package)
OWB Version: 10.2
I am receiving the following warnings when I attempt to deploy a map that contains a reference to a custom pl/sql procedure that is setup in a public transformation package:
Warning
ORA-06550: line 115, column 32:
PLS-00112: end-of-line in quoted identifier
ORA-06550: line 115, column 9:
PLS-00103: Encountered the symbol "." when expecting one of the following:
:= . ( @ % ; not null range default character
I reviewed the OWB generated code and I discovered the OWB is a adding two double quotes in front of any reference to the package name. For example.....
BEGIN
COMMIT;
sql_stmt := 'ALTER SESSION DISABLE PARALLEL DML';
EXECUTE IMMEDIATE sql_stmt;
IF NOT ""ZZTEST"."INIT_SF_USER_CLAS_St" THEN
* note the "" in front of ZZTEST, which is the package name.
Has anyone else encountered this issue? I can manually correct the generated the code, but it would be overridden every the time the map is deployed. I encounter the same issue if I import a custom pl/sql procedure from the database into OWB using the Metadata Import Wizard and use the imported procedure in a map. However, I can setup an standalone procedure or function as a public transformation and the map deploys successfully. Please advise.
Regards,
MattYou have to create a job to start your procedure.
Example :
* http://psoug.org/reference/OLD/dbms_job.html
Then create a procedure to start your job, call it from your dashboard and you're done.
Success
Nico -
Hi,
We have a problem with a Oracle procedure call using the Sql Execute
Procedure statement.
The call gives us this error :
SYSTEM ERROR: (This error was converted)
(This error was converted)
OpenCursor failed for SQL statement in project LFB010, class
ClsDemarreLFB010,
method Demarre, methodId 4, line 32, error from database is:
ORA-01036: illegal variable name/num
Class: qqdb_ResourceException
Distributed method called: qqdb_SessionProxy.OpenCursor!22 (object
name
instance/d4745a10-c8e4-11d1-97fd-90cad1e7aa77:0x196:0x4/lfb010_cl0/lfb010_cl
0-fonctiondbservice0x196:0x2)
from partition "LFB010_CL0_Client", (partitionId =
D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196:0x4, taskId =
[D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196.3]) in application
"FTLaunch_cl0", pid 4290975297 on node LAXOU146 in environment
CentralEnv
Oracle error: 1036, Server: sipre_tcp, UserName: forte
Database Statement: begin
:qqReturnValue := AID_CUMUL_ELTVAL;
end;
Class: qqdb_ResourceException ..........
And this is the TOOL code :
BEGIN TRANSACTION
TmpEtat : IntegerData = new;
TmpEtat.SetValue (( SQL EXECUTE PROCEDURE AID_CUMUL_ELTVAL ON SESSION
FonctionDBService ));
Etat = TmpEtat.Value;
END TRANSACTION;
Our procedure has no parameter and when we put a dummy parameter to the
procedure and pass it in the TOOL SQL statement, it works fine althoug the
Forté help says the parameter list is optionnal !
We tried to execute the procedure in a "SQL Select OurProdecure Into ..."
statement, but it does'nt work because there is a SQL update in the
procedure and it is forbidden by Oracle.
Has anyone seen this error before ?
Any ideas would be greatly appreciated.
Many thanks and regards,
Manuel DEVEAUX
Previade, France
e-mail : deveauxpreviade.frHi,
We have a problem with a Oracle procedure call using the Sql Execute
Procedure statement.
The call gives us this error :
SYSTEM ERROR: (This error was converted)
(This error was converted)
OpenCursor failed for SQL statement in project LFB010, class
ClsDemarreLFB010,
method Demarre, methodId 4, line 32, error from database is:
ORA-01036: illegal variable name/num
Class: qqdb_ResourceException
Distributed method called: qqdb_SessionProxy.OpenCursor!22 (object
name
instance/d4745a10-c8e4-11d1-97fd-90cad1e7aa77:0x196:0x4/lfb010_cl0/lfb010_cl
0-fonctiondbservice0x196:0x2)
from partition "LFB010_CL0_Client", (partitionId =
D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196:0x4, taskId =
[D4745A10-C8E4-11D1-97FD-90CAD1E7AA77:0x196.3]) in application
"FTLaunch_cl0", pid 4290975297 on node LAXOU146 in environment
CentralEnv
Oracle error: 1036, Server: sipre_tcp, UserName: forte
Database Statement: begin
:qqReturnValue := AID_CUMUL_ELTVAL;
end;
Class: qqdb_ResourceException ..........
And this is the TOOL code :
BEGIN TRANSACTION
TmpEtat : IntegerData = new;
TmpEtat.SetValue (( SQL EXECUTE PROCEDURE AID_CUMUL_ELTVAL ON SESSION
FonctionDBService ));
Etat = TmpEtat.Value;
END TRANSACTION;
Our procedure has no parameter and when we put a dummy parameter to the
procedure and pass it in the TOOL SQL statement, it works fine althoug the
Forté help says the parameter list is optionnal !
We tried to execute the procedure in a "SQL Select OurProdecure Into ..."
statement, but it does'nt work because there is a SQL update in the
procedure and it is forbidden by Oracle.
Has anyone seen this error before ?
Any ideas would be greatly appreciated.
Many thanks and regards,
Manuel DEVEAUX
Previade, France
e-mail : deveauxpreviade.fr -
Post Author: Ranjith.403
CA Forum: General
Hi,
Am new to crystal reports with stored procedures
am created a report using a stored procedure in oracle. In that Stored Procedure am Using a temporary table.
After inserting values into the table am assigning to ref cursor.
Refcursor having fields like item,onhandstock,purchase rate
This report working fine in oracle version 9.2.0.1.0 where comes to oracle version 9.2.0.8.0 it's giving the varchar values correctly.
The Number values are showing as 0.
Help me to solve it.
Thanks in Advance,
RanjithTry modularising this large procedure into smaller procedures and functions, and determine which part is causing you trouble.
-
Problem with inputText in my custom component
Hi, I have a custom dataTable component that I'm trying to get to work. It has to be a custom component because dataTable doesn't support rowspan, colspan, multi line headers, and a rendered attribute for rows. The problem is, that when I wrap the column tag inside my row tag then the method for the inputText tag never gets called in the UPDATE_MODEL_VALUES phase.
I'm starting to think that JSF doesn't support 2 levels of tags between the inputText and dataTable. I'm hoping that someone can tell me what I have wrong with my components.
Here is the JSP snippet.
<cjsf:rptTable>
<cjsf:data id="dataTable1" value="#{allAuthUser.tableRows}" var="myTableRow1">
<cjsf:row>
<cjsf:col>
<h:inputText id="tableTestFld" value="#{myTableRow1.testFld}" size="5" maxlength="5"/>
</cjsf:col>
</cjsf:row>
</cjsf:data>
</cjsf:rptTable>Here is what it renders. It looks to me like everything renders fine. So I'm guessing that there is something in a component that is causing JSF during the life cycle to not be able to process correctly.
<table>
<tbody>
<tr>
<td><input id="tblmaintForm:body:dataTable1_0:tableTestFld" name="tblmaintForm:body:dataTable1_0:tableTestFld" type="text" value="" maxlength="5" size="5"/></td>
</tr>
<tr>
<td><input id="tblmaintForm:body:dataTable1_1:tableTestFld" name="tblmaintForm:body:dataTable1_1:tableTestFld" type="text" value="" maxlength="5" size="5"/></td>
</tr>
<tr>
<td><input id="tblmaintForm:body:dataTable1_2:tableTestFld" name="tblmaintForm:body:dataTable1_2:tableTestFld" type="text" value="" maxlength="5" size="5"/></td>
</tr>
</tbody>
</table>Note: If I leave off the row tag it renders the same way except of course the <tr> and </tr> tags are missing. If I do this, then the backing method for the inputText tag is called and everything works fine. Why doesn't it work with the row tag in place?
Here are the components:
public class UIRptTable extends UIComponentBase {
public UIRptTable() {
setRendererType("tblmaint.rptTableRenderer");
public String getFamily() {
return "javax.faces.Output";
public class UIRptTableData extends HtmlDataTable {
public UIRptTableData() {
setRendererType("tblmaint.rptTableDataRenderer");
public String getFamily() {
return "javax.faces.Data";
public class UIRptTableRow extends UIOutput {
public UIRptTableRow() {
setRendererType("tblmaint.rptTableRowRenderer");
public String getFamily() {
return "javax.faces.Output";
public class UIRptTableCol extends UIColumn {
public UIRptTableCol() {
setRendererType("tblmaint.rptTableColRenderer");
public String getFamily() {
return "javax.faces.Column";
}Here is part of the faces-config file in case you need it.
<!-- Components -->
<component>
<component-type>tblmaint.rptTable</component-type>
<component-class>com.monsanto.ag_it.fieldops.aim.tblmaint.component.UIRptTable</component-class>
</component>
<component>
<component-type>tblmaint.rptTableData</component-type>
<component-class>com.monsanto.ag_it.fieldops.aim.tblmaint.component.UIRptTableData</component-class>
</component>
<component>
<component-type>tblmaint.rptTableRow</component-type>
<component-class>com.monsanto.ag_it.fieldops.aim.tblmaint.component.UIRptTableRow</component-class>
</component>
<component>
<component-type>tblmaint.rptTableCol</component-type>
<component-class>com.monsanto.ag_it.fieldops.aim.tblmaint.component.UIRptTableCol</component-class>
</component>
<!-- Render Kits -->
<render-kit>
<renderer>
<component-family>javax.faces.Output</component-family>
<renderer-type>tblmaint.rptTableRenderer</renderer-type>
<renderer-class>com.monsanto.ag_it.fieldops.aim.tblmaint.renderer.RptTableRenderer</renderer-class>
</renderer>
</render-kit>
<render-kit>
<renderer>
<component-family>javax.faces.Data</component-family>
<renderer-type>tblmaint.rptTableDataRenderer</renderer-type>
<renderer-class>com.monsanto.ag_it.fieldops.aim.tblmaint.renderer.RptTableDataRenderer</renderer-class>
</renderer>
</render-kit>
<render-kit>
<renderer>
<component-family>javax.faces.Output</component-family>
<renderer-type>tblmaint.rptTableRowRenderer</renderer-type>
<renderer-class>com.monsanto.ag_it.fieldops.aim.tblmaint.renderer.RptTableRowRenderer</renderer-class>
</renderer>
</render-kit>
<render-kit>
<renderer>
<component-family>javax.faces.Column</component-family>
<renderer-type>tblmaint.rptTableColRenderer</renderer-type>
<renderer-class>com.monsanto.ag_it.fieldops.aim.tblmaint.renderer.RptTableColRenderer</renderer-class>
</renderer>
</render-kit>I sure hope that someone can help me out. Please let me know if you need any additional information.
Thanks,
RayHi, Ray!
1) I was trying to put a button in the column header (for sorting) and I couldn't get that to work. That involved the >colhdr tag. I got that to work but I don't remember the fix. I'll look it up and reply back with that when I can.Dealing the first part of your trouble, you need NOT a custom component.
I have looked through the implementation of RepeaterRenderer, as you advised me, and found that the multi-header possibility is included in the implementation of dataTable control.
The code below is the part of source of repeater.jsp with only change:
<d:data_repeater>  <h:dataTable>
And it works fine.
<h:dataTable id="table"
binding="#{RepeaterBean.data}"
rows="5"
value="#{RepeaterBean.customers}"
var="customer">
<f:facet name="header">
<h:outputText value="Customer List"/> <!� First Header row -- >
</f:facet>
<h:column>
<%-- Visible checkbox for selection --%>
<h:selectBooleanCheckbox
id="checked"
binding="#{RepeaterBean.checked}"/>
<%-- Invisible checkbox for "created" flag --%>
<h:selectBooleanCheckbox
id="created"
binding="#{RepeaterBean.created}"
rendered="false"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Account Id"/> <!�Second Header row -- >
</f:facet>
<h:inputText id="accountId"
binding="#{RepeaterBean.accountId}"
required="true"
size="6"
value="#{customer.accountId}">
</h:inputText>
<h:message for="accountId"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Customer Name"/> <!�Second Header row -- >
</f:facet>
<h:inputText id="name"
required="true"
size="50"
value="#{customer.name}">
</h:inputText>
<h:message for="name"/>
</h:column>
<h:column>
<f:facet name="header"> <!�Second Header row -- >
<h:outputText value="Symbol"/>
</f:facet>
<h:inputText id="symbol"
required="true"
size="6"
value="#{customer.symbol}">
<f:validateLength
maximum="6"
minimum="2"/>
</h:inputText>
<h:message for="symbol"/>
</h:column>
<h:column>
<f:facet name="header"> <!�Second Header row -- >
<h:outputText value="Total Sales"/>
</f:facet>
<h:outputText id="totalSales"
value="#{customer.totalSales}">
<f:convertNumber
type="currency"/>
</h:outputText>
</h:column>
<h:column>
<f:facet name="header"> <!�Second Header row -- >
<h:outputText value="Commands"/>
</f:facet>
<h:commandButton id="press"
action="#{RepeaterBean.press}"
immediate="true"
value="#{RepeaterBean.pressLabel}"
type="SUBMIT"/>
<h:commandLink id="click"
action="#{RepeaterBean.click}"
immediate="true">
<h:outputText
value="Click"/>
</h:commandLink>
</h:column>
</h:dataTable>
You may have a look at HTML source to prove that dataTable is already what you need:
<table id="myform:table">
<thead>
<tr><th colspan="6" scope="colgroup">Customer List</th></tr>
<tr>
<th scope="col"></th>
<th scope="col">Account Id</th>
<th scope="col">Customer Name</th>
<th scope="col">Symbol</th>
<th scope="col">Total Sales</th>
<th scope="col">Commands</th>
</tr>
</thead>
<tbody>
2.) The second trouble is still unsettled as previously. Right now I have different task at my job, and I can�t continue investigation of this problem.
But when you find smth., please let me know. I�ll be very grateful.
Regards,
Oleksa Stelmakh -
Weblogic 8.1 SP2 + Sybase: Problem with Insufficient Procedure Cache Memory
Hi all,
Our Weblogic server(8.1, SP2) encountered a problem this week.
It connects to Sybase.
For a particular database query (which involves temporary tables), the DB seems to have run out of "Procedure Cache memory". And as a result, has thrown an exception.
What is a bit wierd is that, the Weblogic, slowly, seems to have exhausted all its DB resources, and all the subsequent database queries (even the simple ones) have failed due to some error or the other.
The weblogic required a re-start for it to acquire back its DB resources.
Has somebody faced a similar problem before, please?
On reading the Release Notes for WLS: 8.1, I see that the Service Packs SP4, SP5 seem to have a few bug fixes related to memory leaks (especially, in case a Prepared statement failed).
[Related CRs are CR233948, CR179600, CR183190].
Does this mean that an Upgrade to 8.1: SP5 or maybe even SP6 help, please?
Would welcome any kind of advice/suggestions.
Thanks you!!!!
Rhishi.Rhishikesh Anandamoorthy wrote:
Hi Joe,
Thanks a lot for your reply.
I should have mentioned in my previous post that the DBA had indeed recommended
an increase to the Sybase's Procedure Cache Memory size. (We have a separate
DBA team out here, and I do not have DBA access to my database).
But I am a bit apprehensive on two counts:
1. From the DB logs, I see that the query which seems to have failed is something
which is fired day in and day out (though this involves the usage of temporary tables,
which might have filled up the Cache). I should also add that the "DB statistics" was
also being run (automatically) about the same time when the query failed. But again,
the "DB statistics" is run everyday. So, cant see much of a problem here.Nevertheless, it is an internal DBMS issue.
2. The CR179600 and CR183190 of the Weblogic Release Notes suggests that: "Under
certain statement failure conditions, cached statements are leaked without being
closed, which can lead to DBMS resource problems."
So, I am just wondering if this is indeed the actual cause. If so, it might mean
that there is a chance, though slight, that the problem might re-occur.
There seems to be a fix for this in SP5.I certainly advocate upgrading to 81sp6, but that issue had to do with Oracle,
which retains DBMS 'cursors' for each open prepared statement. This will have
no effect on a Sybase DBMS.
I can certainly upgrade to SP6. But, the application seems to have been pretty
stable with SP2 for the past 4 years.
I understand that an upgrade to SP6 may not be such a big change. But, it would
still be a change.
And the webapp which the server supports is very critical to our customer
[which webapp is not? :-) ], and a server-restart again for this issue would
certainly not be acceptable.
So, would want to be doubly sure, if an upgrade is indeed the right way out.
Thank you!!!
Rhishi.In that case, I would stay comfortable with SP2 if you like. In my professional
opinion, at this time, it is a purely DBMS-side issue, based on the current
evidence. Note that the same WLS was fine for these same previous years. The
problem may have to do with a gradual or recent change in the load or size of
the DBMS.
Joe Weinstein at BEA Systems ( nee [email protected] 1988-1996 ) -
Problem with commandButton in a custom DataTable
I am trying to write a cutom DataTable and am having some trouble. I don't think that the DataTable that gets shipped has the flexibility that we need for our pages. That's why I'm trying to write my own.
What I have is a commandButton in one of the column headers for the table. It is bound to a method in a backing bean. The page seems to render correctly. But when I click on the button, it seems to make a trip to the server, but the method doesn't get invoked.
I figure that I'm missing something in my custom component, but I just can't figure it out. Does anyone have any ideas?
If you would like for me to post some/all of the code just let me know. I didn't what might be helpful.
Thanks,
RayThank you for your response.
I already had a messages tag on my page and no messages come out. I've looked in the log and don't see anything in their either. I put in a phaseListener and all of the phases are being processed.
Here is my output. It is the same whether I press the button that is inside my custom dataTable or press a button that is outside my custom dataTable.
beforePhase RESTORE_VIEW 1
afterPhase RESTORE_VIEW 1
beforePhase APPLY_REQUEST_VALUES 2
afterPhase APPLY_REQUEST_VALUES 2
beforePhase PROCESS_VALIDATIONS 3
afterPhase PROCESS_VALIDATIONS 3
beforePhase UPDATE_MODEL_VALUES 4
afterPhase UPDATE_MODEL_VALUES 4
beforePhase INVOKE_APPLICATION 5
afterPhase INVOKE_APPLICATION 5
beforePhase RENDER_RESPONSE 6
afterPhase RENDER_RESPONSE 6
The problem is, when I press the button that is inside my custom dataTable the method for the button doesn't get invoked. So I believe that I have something wrong in my custom dataTable that isn't building the component tree correctly. Does anyone have any ideas for this?
Here is the class that renders my col tag. That tag puts out the <th> that the button is in.
* Created on Dec 19, 2004
package com.monsanto.ag_it.fieldops.aim.tblmaint.renderer;
import java.io.IOException;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.Renderer;
import com.monsanto.ag_it.fieldops.aim.tblmaint.component.UIRptTableCol;
import com.monsanto.ag_it.fieldops.aim.tblmaint.component.UIRptTableColHdr;
* @author rcclark
* Renderer for the RptTableTag
public class RptTableColRenderer extends Renderer {
private String tagType = null;
public void encodeBegin(FacesContext context, UIComponent rptTableCol)
throws IOException {
// First determine if this is a th or td cell
Object rptTblSection = rptTableCol.getParent().getParent();
tagType = "td";
if (rptTblSection instanceof UIRptTableColHdr) {
tagType = "th";
ResponseWriter writer = context.getResponseWriter();
UIRptTableCol rptTblCol = (UIRptTableCol) rptTableCol;
writer.write("\t\t\t");
writer.startElement(tagType, rptTableCol);
//System.out.println("col id=" + (String) rptTableCol.getAttributes().get("id"));
// if (!rptTblCol.getId().substring(0, 3).equals("_id")) {
writer.writeAttribute("id", rptTblCol.getClientId(context), null);
String colClass = (String) rptTableCol.getAttributes().get("colClass");
if (colClass != null) {
writer.writeAttribute("class", colClass, null);
String colSpan = (String) rptTableCol.getAttributes().get("colSpan");
if (colSpan != null) {
writer.writeAttribute("colSpan", colSpan, null);
String rowSpan = (String) rptTableCol.getAttributes().get("rowSpan");
if (rowSpan != null) {
writer.writeAttribute("rowSpan", rowSpan, null);
public void encodeEnd(FacesContext context, UIComponent rptTableCol)
throws IOException {
ResponseWriter writer = context.getResponseWriter();
writer.endElement(tagType);
writer.write("\r\n");
public boolean getRendersChildren() {
return true;
}Thanks,
Ray -
Swc problem with flex from my custom fla
I have an fla which has several library items with a class linkage to a GenericButton.as file. I am exporting this fla as an swc file, and linking that swc into flex.
My problem is that when flex builds the code for GenericButton it gets undefined property for anything it tries to reference that is part of the library item.
Example:
GenericButton.as does libLabel.text = "something"; where libLabel is a textfield, instantiated in the library clip which is bound to GenericButton in it's class linkage.
The field exists in the clip, but when I compile in Flex with the swc in there, it cant find it. It says libLabel doesnt exist, undefined property.
What am I missing here? I want to allow the fla author to bind some of his items to low-level component classes like that, and it's his job to ensure that all the necessary items are part of it. So if he makes a new button, he must just ensure he has a libLabel textfield somewhere in the clip.
Why cant flex see that the items it's trying to compile have a libLabel in there? Is there a work around?Thx for the reply Greg, but no, that's not the problem. If you re-read my post you'll probably see my problem is a little more involved than that.
I have symbols exported for actionscript and I can instantiate them in Flex, that's not a problem. The problem is symbols that are exported for actionscript and bound to a base class that contains custom code. That custom code, when it uses it to type-check in flex builder (during the swc link stage), causes undefined properties.
For some reason Flex is not seeing that the exported library item has the things the .as file is looking for.
Does that make sense?
I could probalby put together a simple example project but I'd have to find somewhere to upload it so that others could see.
This problem is hard to describe, you have to read what I'm saying very carefully. -
Problem with store procedures and Hibernate
I got some problem when I am trying to override INSERT, and UPDATE operations in Hibernate. My delete functions works fine, and everything works when i´m not override with my stored procedure, and I have no idea why. When I am trying to make an INSERT, everything seems to be fine but no data is being insert and no excpetion throws.
When I am trying to make an UPDATE following excpetion throws:
Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: could not update: [labb6Hibernate.bil#18]
Here is my hbm.xml file:
<hibernate-mapping>
<class catalog="Cars" name="labb6Hibernate.bil" table="Bil">
<id name="idNum" type="java.lang.Integer">
<column name="idNum"/>
<generator class="identity"/>
</id>
<property name="marke" type="string">
<column length="10" name="Marke" not-null="true"/>
</property>
<property name="modell" type="string">
<column length="10" name="Modell" not-null="true"/>
</property>
<property name="arsmodell" type="string">
<column length="4" name="Arsmodell" not-null="true"/>
</property>
<sql-insert callable="true"> { call insertCars(?,?,?) } </sql-insert>
<sql-update callable="true"> { call updateCars(?,?,?) </sql-update>
<sql-delete callable="true"> { call deleteCars(?) } </sql-delete>
</class>
Here is my UPDATE code:
Session session = MyHibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
int s = Integer.parseInt(idTxt.getText());
bil Bil = (bil) session.get(bil.class, s);
Bil.setIdNum(s);
Bil.setMarke(markeTxt.getText());
Bil.setModell(modellTxt.getText());
Bil.setArsmodell(arsmodellTxt.getText());
session.update(Bil);
session.getTransaction().commit();
session.close();
Here is my INSERT code:
Session session = MyHibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
bil Bil = new bil();
Bil.setMarke(markeTxt.getText());
Bil.setModell(modellTxt.getText());
Bil.setArsmodell(arsmodellTxt.getText());
session.save(Bil);
session.getTransaction().commit();
session.close();
Does anyone have an idea what is wrong in my code?I got some problem when I am trying to override INSERT, and UPDATE operations in Hibernate. My delete functions works fine, and everything works when i´m not override with my stored procedure, and I have no idea why. When I am trying to make an INSERT, everything seems to be fine but no data is being insert and no excpetion throws.
When I am trying to make an UPDATE following excpetion throws:
Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: could not update: [labb6Hibernate.bil#18]
Here is my hbm.xml file:
<hibernate-mapping>
<class catalog="Cars" name="labb6Hibernate.bil" table="Bil">
<id name="idNum" type="java.lang.Integer">
<column name="idNum"/>
<generator class="identity"/>
</id>
<property name="marke" type="string">
<column length="10" name="Marke" not-null="true"/>
</property>
<property name="modell" type="string">
<column length="10" name="Modell" not-null="true"/>
</property>
<property name="arsmodell" type="string">
<column length="4" name="Arsmodell" not-null="true"/>
</property>
<sql-insert callable="true"> { call insertCars(?,?,?) } </sql-insert>
<sql-update callable="true"> { call updateCars(?,?,?) </sql-update>
<sql-delete callable="true"> { call deleteCars(?) } </sql-delete>
</class>
Here is my UPDATE code:
Session session = MyHibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
int s = Integer.parseInt(idTxt.getText());
bil Bil = (bil) session.get(bil.class, s);
Bil.setIdNum(s);
Bil.setMarke(markeTxt.getText());
Bil.setModell(modellTxt.getText());
Bil.setArsmodell(arsmodellTxt.getText());
session.update(Bil);
session.getTransaction().commit();
session.close();
Here is my INSERT code:
Session session = MyHibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
bil Bil = new bil();
Bil.setMarke(markeTxt.getText());
Bil.setModell(modellTxt.getText());
Bil.setArsmodell(arsmodellTxt.getText());
session.save(Bil);
session.getTransaction().commit();
session.close();
Does anyone have an idea what is wrong in my code? -
LSMW problem with Partner functions in Customer Master
Hi All,
Requirement is to load the Customer Master Data using LSMW.
Loading General data is ok, But when I am planning to load the
partner function using the recording method in LSMW, How do I upload
more than '1' Ship to party partners and more than '1'
Bill to party partners using LSMW.
Normally in table control there is a "+" button at the end of the
table control which when pressed enters one line in table control,In
Partner function screen , there is no such button available, so how
can I determine which line am I supposed to enter data using LSMW.
One partner can have multiple no of BP and SH partners like more than 10
of both types. How do I upload these partner functions in SAP using LSMW?
Regards,
AjayThat a customer master has several business partners is just usual, a customer can have as well several company codes and sales areas. So where exactly is the problem?
Most problems come with recordings, recordings should be the last option, not the first.
What import method do you use? -
Problem with luactivate procedure in Solaris 10 Update 5
We are having some issues with Live Upgrade procedures with Solaris 10 Update 5 on SUN Enterprise T5240 servers.
We have successfully performed those procedures earlier on SUN Fire v240 using Solaris 10 Update 3.
Here is the problem statement:
1. Created a Flar image successfully
2. Installed on a 5240 machine from InstallServer and using jumpstart profile using a sysidcfg and flash_prof
3. The first installation is successful and system picks up configuration information from sysidcfg file on the install server.
4. Now we use lucreate to create another BE (Boot Environment) BE_2.
5. BE_2 is upgraded with luupgrade using the same flar as used in step 2.
6. Issuing command:
luactivate -s BE_2
7. After a init 6, system tries to boot from BE_2. This time instead of copying system files from BE_1 due to -s options specified, it instead runs the sysconfig command that asks for all the configuration options again.
8. When we were using these steps in Solaris 10 update 3 on Sun Fire v240, everything was working fine. The system config was available in BE_2 without any issue.
***************************************************************************************************************************************************iMovie10 only works in and exports 16:9 aspect ratio.
The resolution is set by that of the first video clip put in a project timeline. To change your project to 1080p do the following:
Create a new project
Put any known 1080p video clip in the project (it can be removed later)
Select the old project and then Edit - Select All then Edit - Copy
Select the new project and then Edit - Copy
The new project should now be 1080p. You can remove the first clip if you want.
Geoff.
Maybe you are looking for
-
Not sure if anybody cares, but here are the things I'd love to see happen with the iPhone. The phone is totally ******* and I really like a lot - I just wish it had the following features: 1. Unified email in-box instead of completely separate box fo
-
Can anyone help me if Flex 3 can be seen by search engines. I have a pure Flex 3, database generated web site and have tested many options with no search engine results found. I tried hidden text and found search engine results very quickly before I
-
How to connect to airport extreme
How do I connect to my airport extreme? I need to add a second router to extend the range.
-
Access Manager Failed to Connect to Directory Server
Dear All, I have problem with Directory Server connection in Access Manager. This happened in Production site, all application that integrated with Oracle Access Manager (OAM) for Single Sign On are not accessible after the Directory Server connectio
-
How to execute sapscript programe in SAP
hi i created sapscript programe i want to execute how can i do it please help me thanks in advanced.