Flex warning: variable has no type declaration
I need to dynamically create several Form or Panel, called MyForm1, MyForm2, MyPanel1, MyPanel2, ... They are different because of the children in the Form or Panel. I also added some addtional public methods (method1, method2 ...) to the <mx:Form> or <mx:Panel>.
I have a function, called myFactory, that returns the MyForm1, MyPanel1... for me according to the input parameters. It is defined something like:
function myFactory(input:String):DisplayObject {
I tried two ways to call myFactory.
1.
var myViewObj:DisplayObject = myFactory(input:String); // no error. no warning.
myViewObj.method1(); // compilation error because DisplayObject dose not have method1
2.
var myViewObj = myFactory(input:String); // no error, but got warning: variable has no type declaration
myViewObj.method1(); // it works fine.
It looks like the type of myViewObj is the actual type of myFactory retures, which could be one of MyForm1, MyPanel1....
My questions are
1. Is there a way I can declara a type to myViewObj to get ride of warning.
2. what type myViewObj should be called? generic type?
In case your custom Form and Panel components share same method names (with different functionality), you can create an Interface with the common methods declaration and have both components implement it.
This way you can declare the new interface as the returned type and invoke the common methods that it have.
Thia is sort of a Polymorphism technic, a subject where you can read more about in the following page -
http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming
Good luck!
Similar Messages
-
Hello,
We are seeing a lot of log messages like the one below when an MDO select query is run. There is a message for every numeric column. There doesnt seem to be any issue with the queries working properly its just creating a lot of log messages. Has anyone else had this issue?
Exception of type com.sap.sql.log.OpenSQLException caught:
Cannot fetch column 22, which has JDBC type DOUBLE, into a Java variable of type
float..
[EXCEPTION]
com.sap.sql.log.OpenSQLException: Cannot fetch
column 22, which has JDBC type DOUBLE, into a Java variable of type float.
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:83) ...Hi Christian,
You are right. As in your case it is a select query it does not reflect the error automatically. In my case, I had an insert query so it failed then and there, which was easier to debug and fix.
I have one question regarding your case. When you read the MDO using the query, what do you do with the output? Do you assign it to any local/transaction property in the output links of the query block or in a proceeding assignment block?
Because, the error mentions that the assignment of float to double datatype fails. So, in theory there should be some assignment done with the output.
Please check if you could figure out this part in your transaction.
Regards,
Saumya Govil -
Variable has no value when executing a scenario
Hi,
I have a simple package consists of two steps:
1. Refresh a variable "V_FILENAME_D501" to get the value inputted from user. The refreshing statement is "select '#V_FILENAME_D501' and it is running in a SQLServer environment.
2. Execute an interface which loading data from a file (filename from step 1) into an essbase database.
The execution failed at step 1 with the following error message:
java.lang.Exception: Variable has no value: CBS_PRD_PROJECT.V_FILENAME_D501
at com.sunopsis.dwg.dbobj.SnpVarSess.getValue(SnpVarSess.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.bindSessVar(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskPreTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.h.y(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Any Idea what happens?
regards,
James.Hi James,
How are you?
You can't query a file data store so it will error out. You need to build a small logic for that. Please follow the below steps to implement that.
1. In your source data store just give the resource name as #CBS_PRD_PROJECT.V_FILENAME_D501
2. Drag and drop that data store as your source in the interface.
3. Make your variable V_FILENAME_D501 data type as Alphanumeric, Action as Not Persistent.
4. Drag and drop the twice variable in your package make that as a Declare variable and in the second step make that as Refresh Variable then in the third step your interface.
5. Generate a scenario out of that and while executing that scenario give the Value as your desired file name, hit enter once you gave, otherwise it wont take the input and make sure that LAST VALUE is UNCHECKED.
PS: You can still do it without Default Value as *<%=odiRef.getSrcTablesList("", "[SCHEMA]/[RES_NAME]", "", "")%>* :)
Thanks,
G
Edited by: Gurusank on Mar 16, 2009 2:58 PM -
How to use %Type declaration with table residing in a different database
How can I use the %TYPE declaration if the table is from a different database.
E.g
v_business_unit ps_jrnl.header.business_unit%TYPE;
In the above declaration statement,the table 'ps_jrnl_header' resides in a different database(Database A) from the one I am currently in( Database B).(This is because data needs to be extracted from Database A into Database B).1. Create a database link to the other database (this probably already exists since your proc is interacting with that database)
2. Create a synonym for the table in the other database
create synonym foo for ps_jrnl.header@database_a;3. Reference the synonym in your variable declaration:
v_business_unit foo.business_unit%TYPE; -
XSLT Mapping: Namespace for prefix 'ns0' has not been declared
Hello, I am working on a synchronous SOAP call and having some trouble with the response message. The web service has its own namespace and I am trying to convert this to my custom data type in PI. PI wants the message to be in format of having ns0 prefix and namespace like we have defined (http://foo for example).
I have an XSLT mapping (see below) which works fine with my test response payload (pulled from SXMB_MONI source) on this online XSLT test site:
http://www.freeformatter.com/xsl-transformer.html
However when I import this archive to PI and test with operation mapping it always says "Namespace for prefix 'ns0' has not been declared."
This is very confusing because when I test it online, I see both prefix and namespace declaration perfectly. Is there a way to see the results in the PI test tool? After this XSLT java error it doesn't give me the output even in Trace Level All mode.
Please advise on this issue or if you know an easier way (such as altering my datatype/message type to match the inbound SOAP message). I tried working with the 3rd party WSDL but the response message types show a different root level node than what PI is receiving so I gave up to make my own matching datatype. I just have to solve this last inbound namespace issue and should be finished.
FYI I have refreshed all PI caches and activated all objects.
Thanks for your ideas!
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ns0="http://foo"
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/*">
<xsl:element name="ns0:{local-name()}">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>
<xsl:template match="/">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@* | node()" />
</xsl:element>
</xsl:template>
</xsl:stylesheet>Some additional info, here is an example payload which goes through the XSLT mapping perfectly, but in PI I get the error about missing ns0 declaration.
XML input:
<bar xmlns='http://irrelevantnamespace'
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<foo/>
</bar>
XSLT mapped output using test tool and XSL above:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:bar xmlns:ns0="http://foo">
<foo />
</ns0:bar> -
SOAP-ERROR: Parsing Schema: element has both 'type' attribute and subtype
Hi,
i have created web service link which deals with calling a Pl/sql procedure with the help of DBAdapter in jdev 10.1.3.4 .here i am trying to insert a row in tables.my webservice is working fine from BPEL console
my collegue who is working on PHP is trying to access the the wsdl link with the help of Appcelator and php
code for php
<?php
//include("general.php");
$wsdl_url = 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/CreateRepairOrder/1.0/CreateRepairOrder?wsdl';
//$wsdl_url = 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl';
$client = new SoapClient($wsdl_url,array('trace' => 1,'exceptions' => 0));
print_r($client);
exit;
class CreateOrderNd
var $PARTY_ID="";
var $CUST_ACCOUNT_ID="";
var $INVENTORY_ITEM_ID="";
var $SERIAL_NUMBER="";
var $UNIT_OF_MEASURE="";
var $QUANTITY="";
var $ITEM_CROSS_REFERENCE="";
var $PROBLEM_DESCRIPTION="";
function CreateOrderNd($PartyNam,$AccountId,$ItemId_requestdata,$SerialNumber_requestdata,$uom_requestdata,
$quantity_requestdata,$ItemCrossReference_requestdata,$ProblemDescription_requestdata)
$this->PARTY_ID=$PartyName;
$this->CUST_ACCOUNT_ID=$AccountId;
$this->INVENTORY_ITEM_ID=$ItemId_requestdata;
$this->SERIAL_NUMBER=$SerialNumber_requestdata;
$this->UNIT_OF_MEASURE=$uom_requestdata;
$this->QUANTITY=$quantity_requestdata;
$this->ITEM_CROSS_REFERENCE=$ItemCrossReference_requestdata;
$this->PROBLEM_DESCRIPTION=$ProblemDescription_requestdata;
$parm = new CustomerNd($PartyName_requestdata,$AccountId_requestdata,$ItemId_requestdata,$SerialNumber_requestdata,$uom_requestdata,
$quantity_requestdata,$ItemCrossReference_requestdata,$ProblemDescription_requestdata);
$parm = new CustomerNd('Bus%','');
$parm = new CreateOrderNd(4429,1608,6761,'0722AB05','Ea',1,'abc123','Network error');
$ret=$client->process($parm);
print_r($ret);
?>
when she/he access it they are facing a error
SOAP-ERROR: Parsing Schema: element has both 'type' attribute and subtype
and some times it will give
Warning: SoapClient::SoapClient(http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl) http://function.SoapClient-SoapClient: failed to open stream: HTTP request failed! in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6
Warning: SoapClient::SoapClient() http://function.SoapClient-SoapClient: I/O warning : failed to load external entity "http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl" in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl' in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6Hi,
i have created web service link which deals with calling a Pl/sql procedure with the help of DBAdapter in jdev 10.1.3.4 .here i am trying to insert a row in tables.my webservice is working fine from BPEL console
my collegue who is working on PHP is trying to access the the wsdl link with the help of Appcelator and php
code for php
<?php
//include("general.php");
$wsdl_url = 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/CreateRepairOrder/1.0/CreateRepairOrder?wsdl';
//$wsdl_url = 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl';
$client = new SoapClient($wsdl_url,array('trace' => 1,'exceptions' => 0));
print_r($client);
exit;
class CreateOrderNd
var $PARTY_ID="";
var $CUST_ACCOUNT_ID="";
var $INVENTORY_ITEM_ID="";
var $SERIAL_NUMBER="";
var $UNIT_OF_MEASURE="";
var $QUANTITY="";
var $ITEM_CROSS_REFERENCE="";
var $PROBLEM_DESCRIPTION="";
function CreateOrderNd($PartyNam,$AccountId,$ItemId_requestdata,$SerialNumber_requestdata,$uom_requestdata,
$quantity_requestdata,$ItemCrossReference_requestdata,$ProblemDescription_requestdata)
$this->PARTY_ID=$PartyName;
$this->CUST_ACCOUNT_ID=$AccountId;
$this->INVENTORY_ITEM_ID=$ItemId_requestdata;
$this->SERIAL_NUMBER=$SerialNumber_requestdata;
$this->UNIT_OF_MEASURE=$uom_requestdata;
$this->QUANTITY=$quantity_requestdata;
$this->ITEM_CROSS_REFERENCE=$ItemCrossReference_requestdata;
$this->PROBLEM_DESCRIPTION=$ProblemDescription_requestdata;
$parm = new CustomerNd($PartyName_requestdata,$AccountId_requestdata,$ItemId_requestdata,$SerialNumber_requestdata,$uom_requestdata,
$quantity_requestdata,$ItemCrossReference_requestdata,$ProblemDescription_requestdata);
$parm = new CustomerNd('Bus%','');
$parm = new CreateOrderNd(4429,1608,6761,'0722AB05','Ea',1,'abc123','Network error');
$ret=$client->process($parm);
print_r($ret);
?>
when she/he access it they are facing a error
SOAP-ERROR: Parsing Schema: element has both 'type' attribute and subtype
and some times it will give
Warning: SoapClient::SoapClient(http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl) http://function.SoapClient-SoapClient: failed to open stream: HTTP request failed! in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6
Warning: SoapClient::SoapClient() http://function.SoapClient-SoapClient: I/O warning : failed to load external entity "http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl" in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://sfhyd1.softforce.com:8888/orabpel/DepotExtnDev/UpdateROStatus1/1.0/UpdateROStatus1?wsdl' in C:\xampp\htdocs\DepotExtensions\version9\app\services\CreateOrderNd.class.php on line 6 -
Hi all,
I have created one SP for sending mail with formatting the HTML code inside script whenever i am individually declaring it and printing its expected but the problem at time of executing SP its giving error like this
Msg 132, Level 15, State 1, Line 47
The label 'http' has already been declared. Label names must be unique within a query batch or stored procedure.
what is the possibilities to overcome this problem follwing is my stored procedure code
ALTER PROCEDURE [dbo].[USP_DataLoadMailsend_essRules]
AS
BEGIN
SET NOCOUNT ON;
SET XACT_ABORT ON;
BEGIN TRY
---BEGIN TRANSACTION T1
DECLARE @packagelogid INT
DECLARE @batchlogid INT
DECLARE @packagestatus CHAR(2)
select @batchlogid =19870
--print(@batchlogid)
DECLARE @script VARCHAR(MAX)
DECLARE @tableHTML VARCHAR(MAX)
DECLARE @mailheader VARCHAR(50)
DECLARE @count INT
DECLARE @recipients1 VARCHAR(50)
DECLARE @subject1 VARCHAR(200)
DECLARE @sql VARCHAR(MAX)
Declare @UserId varchar(Max)
Declare @Information varchar(max)
Declare @TableHTML1 varchar(max)
Declare @TableHTML2 varchar(max)
SET @mailheader = ''
SET @mailheader = (select case
WHEN FileUpload = 'F'
THEN 'BussinessRules is Aborted'
WHEN (InRule = 'S')
AND (
SELECT sum(isnull(ErrorRecords, 0)) tot
FROM abc.FileUploadSummary z
WHERE z.BatchId = bts.BatchId
GROUP BY BatchId
) > 0
THEN 'BussinessRules is Processed with Errors'
WHEN InRule = 'F'
THEN 'BussinessRules is Failed'
WHEN (InRule = 'S')
AND (
SELECT sum(isnull(ErrorRecords, 0)) tot
FROM abc.FileUploadSummary z
WHERE z.BatchId = bts.BatchId
GROUP BY BatchId
) = 0
THEN 'BussinessRules is Succeeded'
end
from abc..BatchStatus bts where BatchId=@batchlogid)
/* Selecting Person Mail as Recipient */
SELECT TOP 1 @recipients1 = EmailId FROM abc.PersonEmail
WHERE PersonId = ( SELECT TOP 1 personid FROM abc.FileUploadSummary WHERE BatchId = @batchlogid )AND EmailTypeId = 1
/* Selecting UserId*/
select top 1 @UserId=loginid from abc.FUS where BatchId=@batchlogid
/*Selecting Information about the Status */
Set @Information=
(select case
WHEN FileUpload = 'F'
THEN 'BussinessRules is Aborted'
WHEN (InRule = 'S')
AND (
SELECT sum(isnull(ErrorRecords, 0)) tot
FROM abc.FileUploadSummary z
WHERE z.BatchId = bts.BatchId
GROUP BY BatchId
) > 0
THEN 'BussinessRules is Processed with Errors'
WHEN InRule = 'F'
THEN 'BussinessRules is Failed'
WHEN (InRule = 'S')
AND (
SELECT sum(isnull(ErrorRecords, 0)) tot
FROM abc.FileUploadSummary z
WHERE z.BatchId = bts.BatchId
GROUP BY BatchId
) = 0
THEN 'BussinessRules is Succeeded'
end + N' <br> <B>BatchId= '+ convert(varchar(250),(select @batchlogid)) +'</B>'
from abc..BatchStatus bts where BatchId=@batchlogid )
/*Selecting the Error Reason*/
if exists (select 1 from BatchStatus where BatchId=@batchlogid and ( InRule='f'))
begin
set @TableHTML1 = '<table border=1><tr><th>Sr.No.</th><th><P>Error Reason :</th></tr>'+
cast((select td= ROW_NUMBER()over (order by (select 1)),'',
td=isnull(e.ErrorDescription, '')
from abc.x.tbPackageErrorLog e --50594
join abc.x.tbPackageLog p -- 10223
on p.PackageLogID=e.PackageLogID
where p.BatchLogID= @batchlogid FOR XML PATH('tr'), TYPE )
as NVarchar(max)) +'</table>'
-- print @tableHTML
if not exists (select 1 from BatchStatus where BatchId=@batchlogid and ( InRule='f'))
set @TableHTML2 = 'Error Reason :N/A'
end
-- insert into #tmp values ( @TableHTML1)
--select * from #tmp
Set @tableHTML= 'Hello '+@UserId+', <br>Information:'+isnull(@Information,'') +
'<Table Border=1><Tr><th>Sr No</th><th>Uploaded files </th>:'+
CAST ((select td= ROW_NUMBER()over(order by f.FileUploadId), '',
td = f.TableName , ''
from abc.FileUploadSummary F where BatchId=@batchlogid
FOR XML PATH('tr'), TYPE ) AS NVARCHAR(max) )
+'</table>'+
'Error Reason :'+isnull(isnull(@TableHTML1,'')+ isnull(@TableHTML2,''),'N/A')+ --concat (isnull(@TableHTML1,''),isnull(@TableHTML2,'')
'<br> Please login to Your Account for further Details..!'
+'<br>@Note: This is system generated message, Do not reply to this mail. <br>Regards,<br>'+
'Admin'
print @tableHTML
SET @sql = ' EXEC msdb.dbo.sp_send_dbmail @profile_name = ''DBA_mail_test''
,@recipients = ''' + isnull(@recipients1,'''') + ''',@subject = ''' + isnull(@mailheader,'''') + ''',
@body = ''' +isnull(@tableHTML,'''')+ ''',
@body_format = ''HTML'''
Exec(@sql)
END TRY
BEGIN CATCH
PRINT error_message()
-- Test whether the transaction is uncommittable.
-- IF (XACT_STATE()) = - 1
-- ROLLBACK TRANSACTION --Comment it if SP contains only select statement
DECLARE @ErrorFromProc VARCHAR(500)
DECLARE @ErrorMessage VARCHAR(1000)
DECLARE @SeverityLevel INT
SELECT @ErrorFromProc = ERROR_PROCEDURE()
,@ErrorMessage = ERROR_MESSAGE()
,@SeverityLevel = ERROR_SEVERITY()
--INSERT INTO dbo.ErrorLogForUSP (
-- ErrorFromProc
-- ,ErrorMessage
-- ,SeverityLevel
-- ,DateTimeStamp
--VALUES (
-- @ErrorFromProc
-- ,@ErrorMessage
-- ,@SeverityLevel
-- ,GETDATE()
END CATCH
END
please help me to solve this problem
Niraj SevalkarThis is no string http in your procedure. Then again the error message points to a line 47 outside a stored procedure. I can't tell it is outside, since there is no procedure name.
But I see that you have this piece of dynamic SQL:
SET @sql = ' EXEC msdb.dbo.sp_send_dbmail @profile_name = ''DBA_mail_test''
,@recipients = ''' + isnull(@recipients1,'''') + ''',@subject = ''' + isnull(@mailheader,'''') + ''',
@body = ''' +isnull(@tableHTML,'''')+ ''',
@body_format = ''HTML'''
Exec(@sql)
Why is this dynamic SQL at all? Why not just make plain call to sp_send_dbmail?
EXEC msdb.dbo.sp_send_dbmail @profile_name = 'DBA_mail_test'
,@recipients = @recipients1, @subject = @mailheader, @body = @tableHTML
Erland Sommarskog, SQL Server MVP, [email protected] -
Revision: 11548
Author: [email protected]
Date: 2009-11-06 16:35:27 -0800 (Fri, 06 Nov 2009)
Log Message:
MXFTEText.css now has a type selector for FTEDataGridItemRenderer that matches the one for DataGridItemRenderer in the MX default.css file. Both set paddingLeft to 5.
QE notes: None
Doc notes: None
Bugs: SDK_22741
Reviewer: Alex
Tests run: ant checkintests
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/MXFTEText.css
flex/sdk/trunk/frameworks/spark-manifest.xmlAN UPDATE ON MY ISSUE:
It appears to be limited to Dreamweaver. When I upload the files to my server and use BrowserLab or Microsoft SuperPreview the pages are rendering properly in all versions of IE. It's only broken when viewing in Design view within Dreamweaver or when using BrowserLab from within Dreamweaver. So at least I know my website works, which is a huge relief, but does anyone have any idea why Design view would complete ignore my styles? It's very annoying. -
Global Type declaration/definition of name duplicated error
Hi, All,
We have two EJB exposed as the Webservice , so WS-1 and WS2, When I insert these two WS into the SOA Application to used by BPEL process. I get the compile error from jdev(11.1.1.1.3) like this:
Global Type declaration/definition of name '{http://mynamespace-here/oracle}SearchParameter' are duplicated at the following locations:
EJB WS1 xsd line ***
EJB WS2 xsd line ***
SearchParameter is bean SearchRequest‘s property, this bean is shared using in two EJB method interfaces.
Our class design like this:
@XmlRootElement
@XmlType(name = "SearchRequest",
namespace = " http://mynamespace-here/oracle ")
public class SearchRequest
implements Serializable
private SearchInterface searchCriteria;
@XmlElements(value =
{ @XmlElement(name = "SearchParameter",
type = SearchParameter.class) })
public SearchInterface getSearchCriteria()
return searchCriteria;
At here SearchInterface is an empty interface and SearchParameter is a class implement this interface.
I feel @XmlElement in fact cause this duplicated error.
So in this case, how can we expose this SearchInterface/SearchParameter through the XML properly?
Thanks .
wayne
Edited by: user782942 on Feb 8, 2011 11:37 PMIf the message type in the external service and the one using in your local are using the same schema, could you check whether the external service has changed the schema in any way? Adding new fields, changing the field name, or changing the namespace? We had faced this issue before, and it was because the schema in our mds is different from the schema from OSB, which they changed it after we get the artifacts and we didn't have the updated schema in our mds.
-
Error:Invalid reference to variable 'PARTS1.PNUM%TYPE' - how to resolve
error:
ERROR at line 29:
ORA-06550: line 29, column 39:
PLS-00487: Invalid reference to variable 'PARTS1.PNUM%TYPE'
ORA-06550: line 29, column 4:
PL/SQL: SQL Statement ignored
DECLARE
cursor c1 is select pnum from parts1;
TYPE NumTab IS TABLE OF parts1.pnum%TYPE INDEX BY PLS_INTEGER;
TYPE NumTab1 IS TABLE OF parts1.pnum%TYPE INDEX BY PLS_INTEGER;
--TYPE NameTab IS TABLE OF parts1.pname%TYPE INDEX BY PLS_INTEGER;
pnums NumTab;
pnums1 NumTab1;
-- pnames NameTab;
--iterations CONSTANT PLS_INTEGER := 500;
t1 INTEGER;
t2 INTEGER;
t3 INTEGER;
l_num_index integer := 0;
BEGIN
FOR j IN 1..50000 LOOP -- load index-by tables
insert into parts1 values(j);
END LOOP;
commit;
t1 := DBMS_UTILITY.get_time;
/* FOR i IN 1..iterations LOOP -- use FOR loop
INSERT INTO parts1 VALUES (pnums(i));
END LOOP;
select pnum bulk collect into pnums from parts1;
t2 := DBMS_UTILITY.get_time;
open c1;
loop
l_num_index := l_num_index + 1;
fetch c1 into pnums1(l_num_index).pnum;
EXIT WHEN c1%notfound;
end loop;
close c1;
t3 := DBMS_UTILITY.get_time;
DBMS_OUTPUT.PUT_LINE('Execution Time (secs)');
DBMS_OUTPUT.PUT_LINE('---------------------');
DBMS_OUTPUT.PUT_LINE('FOR loop: ' || TO_CHAR((t2 - t1)/100));
DBMS_OUTPUT.PUT_LINE('FORALL: ' || TO_CHAR((t3 - t2)/100));
COMMIT;
END;
thanks,
vinodhThe line number in the error message is nearly always a good clue.
fetch c1 into pnums1(l_num_index).pnum;should be
fetch c1 into pnums1(l_num_index); -
Revision: 3571
Author: [email protected]
Date: 2008-10-10 11:07:09 -0700 (Fri, 10 Oct 2008)
Log Message:
Update SWFLoader ASDoc comment to remove &emdash and data type declaration. ASDoc adds that automatically.
Doc the new types in IndexChangedEvent.as
Checkin Test Passed: Yes
QA: No
Bug:
Doc: No
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/controls/SWFLoader.as
flex/sdk/trunk/frameworks/projects/framework/src/mx/events/IndexChangedEvent.aslunke you shoude change svn update http://svn.foo-projects.org/svn/xfce/modules/trunk to svn up $startdir/src/trunk
hers a PKGBULID for thunar
pkgname=thunar
pkgver=0.0.2.r17470
pkgdesc="Thunar is a file manager designed for Xfce. It is currently under development."
url="http://thunar.xfce.org/wiki/"
depends=('exo-svn')
makedepends=('subversion')
source=()
md5sums=()
build() {
if [ ! -d $startdir/src/thunar ]; then
echo "Fetching sources..."
svn checkout http://svn.foo-projects.org/svn/xfce/thunar/trunk/ /thunar
else
echo "Updating sources..."
svn up $startdir/src/thunar/
fi
cd $startdir/src/thunar
./autogen.sh --prefix=/opt/xfce4-svn
make || return 1
make DESTDIR=$startdir/pkg install
find $startdir/pkg -name '*.la' -exec rm {} ;
you will need exo from svn as well
pkgname=exo-svn
pkgver=r17470
pkgdesc="Extensions to Xfce by os-cillation"
url="http://libexo.os-cillation.com/"
conflicts=(exo)
provides=(exo)
depends=('xfce4-svn')
makedepends=('subversion')
source=()
md5sums=()
build() {
if [ ! -d $startdir/src/trunk ]; then
echo "Fetching sources..."
svn checkout http://svn.foo-projects.org/svn/xfce/libexo/trunk/
else
echo "Updating sources..."
svn up $startdir/src/trunk
fi
cd $startdir/src/trunk
./autogen.sh --prefix=/opt/xfce4-svn
make || return 1
make DESTDIR=$startdir/pkg install
find $startdir/pkg -name '*.la' -exec rm {} ;
"Operation libtool-slay" compliant -
Hi,
I need to declare a variable in OO envinroment what is a same type like MD5_FIELDS-HASH_RAW8 (RAW 8).
I cannot use "like" reserved word in OO.
Can anybody advice a right type declaration ?
Thanks.
MarianHi Marian,
Try this out:
TYPES: type1 TYPE md5_fields-hash_raw8.
DATA: var1 TYPE type1.
Now you can use var1 of type md5_fields-hash_raw8.
Thanks & Regards,
Kingshuk Dutta. -
How to set Document Type Declaration of xml Document?
Hi,
I am referring to "org.w3c.dom.Document".
How can we set the Document Type Declaration (DTD) of a document?
Thanks.Hi,
But when we have to create a document(org.w3c.dom.Document) dynamically, and that document has to be validated against a DTD......How can we do it?
I am using the following code
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
DOMImplementation domi = builder.getDOMImplementation();
DocumentType docType = domi.createDocumentType("query", null, "c:\\queryDtd.dtd");
Document doc = domi.createDocument(null, "query", docType);But this code is not working. Resulting document is not having <!DOCTYPE...> tag
I have to build a Doument object (not xml file) whose content is as below
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE query SYSTEM "queryDtd.dtd">
<query id="abc123">
<data-source-name>EmployeeDB</data-source-name>
<fields>
<field>id</field>
<field>name</field>
<field>salary</field>
<field>joindate</field>
</fields>
<fetch-limit>10</fetch-limit>
</query> -
Correct use of Type declaration?
Hello,
I have a type declaration in a package like so:
type get_rec_type
IS
record
( upl_id table_name.id%TYPE
, doc_id table_name.eff_from%TYPE
);I have refered to this type in my procedure declaration like so:
PROCEDURE bulk_upload_prc
( p_rec OUT get_rec_type
);Is this correct?
The reason I ask is because I am getting the following error.
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'BULK_UPLOAD_PRC'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredThank You
Ben
Edited by: Benton on Nov 3, 2010 12:01 PMHi Toon,
I am attempting to run it by doing the following:
EXEC schemName.new_bulk_upload_pkg.bulk_upload_prc;And I am not supplying it any variables, because it should be getting them from the cursor that I have opened.
and here is the cursor
CURSOR c_get_rec_type RETURN get_rec_type;This is the package so far, I hope I am not giving you too much information ...
SPECIFICATION
CREATE OR REPLACE
PACKAGE NEW_BULK_UPLOAD_PKG
AS
-- DECLARE TYPES
type get_fbt_bulk_upload_rec_type
IS
record
( upl_id tableName.upl_id%TYPE
, doc_id tableName.doc_id%TYPE
, atr_id tableName.atr_id%TYPE
, reference tableName.reference%TYPE
, filename tableName.filename%TYPE
, mime_type tableName.mime_type%TYPE
, eff_from tableName.eff_from%TYPE
, eff_to tableName.eff_to%TYPE
, title tableName.title%TYPE
, comments tableName.comments%TYPE
-- DECLARE CURSORS
CURSOR c_get_fbt_bulk_upload_rec_type RETURN get_fbt_bulk_upload_rec_type;
PROCEDURE bulk_upload_prc
( p_rec OUT get_fbt_bulk_upload_rec_type
, p_blob OUT BLOB
, p_srcfile OUT BFILE
, p_max_rec OUT NUMBER
END NEW_BULK_UPLOAD_PKG;BODY
CREATE OR REPLACE
PACKAGE BODY NEW_BULK_UPLOAD_PKG
AS
CURSOR c_get_rec_type
RETURN get_rec_type
IS
SELECT upl_id
, doc_id
, atr_id
, reference
, filename
, mime_type
, eff_from
, eff_to
, title
, comments
FROM schemaName.tableName
WHERE status = 'NOT LOADED';
-- Bulk upload procedure.
PROCEDURE bulk_upload_prc
p_rec OUT get_rec_type ,
p_blob OUT BLOB ,
p_srcfile OUT BFILE ,
p_max_rec OUT NUMBER
IS
BEGIN
LOOP
FETCH c_get_rec_type INTO p_rec;
EXIT WHEN c_get_rec_type%NOTFOUND;
DBMS_LOB.CreateTemporary(p_blob, TRUE);
DBMS_LOB.Open(p_blob, dbms_lob.Lob_ReadWrite);
p_srcfile := Bfilename('UPLOAD_DIR', p_rec.filename);
DBMS_LOB.FileOpen (p_srcfile, dbms_lob.File_ReadOnly);
DBMS_LOB.LoadFromFile(p_blob, p_srcfile, DBMS_LOB.GetLength(p_srcfile));
INSERT
INTO dev_fbt_doc
filename ,
mime_type,
blob_content
VALUES
p_rec.filename ,
p_rec.mime_type,
EMPTY_BLOB()
-- Remark required
UPDATE schemaName.TableNameB
SET blob_content = p_blob
WHERE filename
LIKE p_rec.filename;
-- Get the DOC_ID of the record that was just inserted into TableNameB.
EXECUTE IMMEDIATE 'SELECT MAX(doc_id) FROM schemaName.TableNameB'
INTO p_max_rec;
-- Update the column named STATUS with the text UPLOADED to distinguish it from
-- those records that have not been uploaded (NOT LOADED).
UPDATE schemaName.tableName
SET status = 'UPLOADED'
WHERE upl_id = p_rec.upl_id;
-- Update the column named DOC_ID to record the assigned DOC_ID for the record
-- that was uploaded.
UPDATE schemaName.tableName
SET doc_id = p_max_rec
WHERE upl_id = p_rec.upl_id;
DBMS_LOB.FileClose(p_srcfile);
COMMIT;
END LOOP;
END bulk_upload_prc;
END NEW_BULK_UPLOAD_PKG;Thank You
Ben
Edited by: Benton on Nov 3, 2010 1:24 PM -
I migrated my bpel process manager from Version 2.1.2 [oc4j linux] to 10.1.2.0.0 [using jboss as application server].
The orabpel schema for 10.1.2.0.0 seems to be a bit different.
I installed the new schema and then dumped all the data from my previous schema. I also successfully deployed the 2.1.2 processes onto 10.1.2 version.
I can initiate a new instance of the process, however , the previously completed instances or not completed instances fail with the following error,
16:28:06,061 INFO [STDOUT] <2006-01-31 16:28:06,061> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "instance manager": Variant not found.
The variant "_$$audit-event-count" has not been declared in the current scope. All variants must be declared in the scope before being accessed.
Any advice is greatly appreciated. Thanks.JScript is JavaScript.
Ah, now there's part of the confusion :)
If you're asking about a Windows Script Host (WSH) script, you don't have to declare stdin because it's part of the host.
Ok... So if I understand you correctly, I'm actually programming in J(ava)Script on windows for WSH. Simply trying to call ReadLine fails as well, as it is not defined according to the compiler.
Be specific: What are you trying to do? Tell what you want to do, not
how you think it needs to be done.
which brings me to my current issue: attempting to ReadLine() (in order to get the program to pause for a moment, from
this example)
I know I put up a pretty big wall of text back there, sorry about that.
EDIT: Well, I think I've learned
about J*script. It sounds like JScript and Javascript are more just versions of ECMAScript.
Maybe you are looking for
-
Error in Sender SOAP Adapter on XI 3.0 SP13
Hi All. I have an application that sends a SOAP message to XI SOAP Adapter, to reach a synchronous interface. I've generated the .wsdl file from the Integration Directory, within the URL: http://sapbox:59800/XISOAPAdapter/MessageServlet?channel=:BS_P
-
Help me with flash player!
my falsh player does not automatically update for some reason-recently when I have tried to manually update it I have no sucess even though I see a message page from Adobe saying that flash player has successfully been updated it still will not run!
-
could someone please provide a sample code of how to upload a text "|" delimited file into SAP internal structure? i used GUI_upload with field_separator but didn't work. many thanks.
-
Need TCL for the "Use Global Names" checkbox when creating Location(s)
We have a TCL script that creates OWB locations as part of our automated install and build process. Recently we switched to using GLOBAL NAME = TRUE on our databases (to implement Oracle Streams). In order to create a location and successfully regist
-
Considering a MBP - Can I get audio out of miniDisplayport for Sharp Aquos?
I need a laptop that I can hook up to my 52" Sharp Aquos TV. With HDMI I know I could feed video + audio. I've heard that mini DisplayPort doesn't give audio when the technology offers it. Why does Apple prohibit this? I'm considering a MBP and this