Ajax jasf parameters problem
I've set up a test application on very small scale so I won't need third party packages using ajax javascript to pass three parameters to JSF phase listener from pop-up menu created by mouseover event containg some links.
Upon hitting one of these links we set ajax cycle in motion and getting into JSF phase event listener code(via POST). The problem is none of three parameters is being passed to it. Any idea why?
It is fair amount of code that I need to cut and paste (javascript, jsf, phase listner) to supplement and I rather not though I realize it might be necessary.
Thanks a lot for consideration.
I have never worked with the AJAX + JSF combo before, but I know that you can invoke a managed bean action using javascript and the h:commandLink and h:commandButton elements.
<h:form id="form1">
<h:commandLink id="link1" action="#{MyBean.action1}"><h:outputText value="link" /></h:commandLink>
<h:commandButton id="button1" action="#{MyBean.action2}" value="button" />
</h:form>
<f:verbatim><script>
function myFunction() {
document.getElementById('form1:link1').onclick(); // this invokes the #{MyBean.action1}
document.getElementById('form1:button1').click(); // this invokes the #{MyBean.action2}
</script></f:verbatim>I haven't tried other ways yet. But this might give you an idea.
Similar Messages
-
Z77A-GD65 mixing two DDRAM pack, same brand with same parameters problem
Hello. I have question. My mobo is z77a-gd65. I have 16gb of ram. Is it pack of 4x4gb modules from corsair vengeance lp (CML16GX3M4A1600C9). Because one module is damaged (tested in memtest) i buy new pack. This new pack is absolutely the same as previous but only 8gb (2x4gb). Is it same brand and timings (CML8GX3M2A1600C9). My problem is.. i can not enable the xmp profile in bios. This option is not accesible if i use 2x2gb from first pack and 2x2gb from second pack. Next problem.. if i change the ddram frequency manually to 1600mhz (from 1333 - detected whith bios) which is default fq after save settings and restart, bios automatically set frequency to 1333. I try use oc genie but the same and no luck.
Is not possible use two different memory pack from one brand with absolutely same parameters? Why i cant use and is disabled xmp option? Why bios automatically changing ddram frequency?
Thanks.Corsair warns of mixing RAM even with the same exact part numbers. Best thing to do would be to contact Corsair and ask them to replace what you have with a factory matched and tested RAM kit. I have heard they are very good about doing that for the end user.
-
Please excuse the formatting as I am not sure why the forum is bunching everything together and not putting my query in code format.
Hi All,
We are using SAP B1 2007 A SP01 PL05
I am having a problem with getting a query to run in SAP with parameter selections. The query below runs fine as is however once I add date parameters which look like this
AND T2.[DocDate] >= '[%0]' AND T2.[DocDate] <= '[%1]'
I start getting errors. The first error I got was RIGHT.CardCode could not be bound once I removed the parameter and added them again I got an error Conversion failed when converting datetime from character string. I then removed the parameters again and added them once more and got another error An expression of non-boolean type specified in a context where a condition is expected. I saved the query and logged out and logged back in and ran it again and now am getting the error RIGHT.CardCode could not be bound again.
Could someone please have a look at this and try and help me get this running as I want to add more parameters where you can select the Customer Group and the Item Group as well.
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName, T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description', T7.ItmsGrpNam, T1.Quantity, T0.Price AS 'Unit Price (List)', T0.Price * T1.Quantity AS 'Gross Total', T1.LineTotal / T1.Quantity AS 'Unit Price (Doc)', T1.LineTotal AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN
INV1 AS T1 ON T0.ItemCode = T1.ItemCode INNER JOIN
OINV AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
OPLN AS T3 ON T0.PriceList = T3.ListNum INNER JOIN
OCRD AS T4 ON T2.CardCode = T4.CardCode INNER JOIN
OCRG AS T5 ON T4.GroupCode = T5.GroupCode INNER JOIN
OITM AS T6 ON T1.ItemCode = T6.ItemCode INNER JOIN
OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
UNION ALL
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName, T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description', T7.ItmsGrpNam, - (1 * T1.Quantity) AS Quantity, - (1 * T0.Price) AS 'Unit Price (List)', - (1 * (T0.Price * T1.Quantity)) AS 'Gross Total', - (1 * (T1.LineTotal / T1.Quantity)) AS 'Unit Price (Doc)', - (1 * T1.LineTotal) AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN
RIN1 AS T1 ON T0.ItemCode = T1.ItemCode INNER JOIN
ORIN AS T2 ON T1.DocEntry = T2.DocEntry INNER JOIN
OPLN AS T3 ON T0.PriceList = T3.ListNum INNER JOIN
OCRD AS T4 ON T2.CardCode = T4.CardCode INNER JOIN
OCRG AS T5 ON T4.GroupCode = T5.GroupCode INNER JOIN
OITM AS T6 ON T1.ItemCode = T6.ItemCode INNER JOIN
OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
Any help will be greatly appreciated.Try this one:
Declare @d1 datetime
Declare @d2 datetime
set @d2=/*Select T2.DocNum from oinv T2
where T2.Docdate between [%0] and */[%1]
set @d1=[%0]
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName,
T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description',
T7.ItmsGrpNam, T1.Quantity, T0.Price AS 'Unit Price (List)',
T0.Price * T1.Quantity AS 'Gross Total',
T1.LineTotal / T1.Quantity AS 'Unit Price (Doc)', T1.LineTotal AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN INV1 AS T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN OINV AS T2 ON T1.DocEntry = T2.DocEntry
INNER JOIN OPLN AS T3 ON T0.PriceList = T3.ListNum
INNER JOIN OCRD AS T4 ON T2.CardCode = T4.CardCode
INNER JOIN OCRG AS T5 ON T4.GroupCode = T5.GroupCode
INNER JOIN OITM AS T6 ON T1.ItemCode = T6.ItemCode
INNER JOIN OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
and T2.Docdate between @d1 and @d2
UNION ALL
SELECT T2.DocDate, T2.DocNum, T2.CardCode, T2.CardName,
T5.GroupName, T1.ItemCode, T1.Dscription AS 'Description',
T7.ItmsGrpNam, - (1 * T1.Quantity) AS Quantity,
- (1 * T0.Price) AS 'Unit Price (List)',
- (1 * (T0.Price * T1.Quantity)) AS 'Gross Total',
- (1 * (T1.LineTotal / T1.Quantity)) AS 'Unit Price (Doc)',
- (1 * T1.LineTotal) AS 'Nett Total'
FROM ITM1 AS T0 INNER JOIN RIN1 AS T1 ON T0.ItemCode = T1.ItemCode
INNER JOIN ORIN AS T2 ON T1.DocEntry = T2.DocEntry
INNER JOIN OPLN AS T3 ON T0.PriceList = T3.ListNum
INNER JOIN OCRD AS T4 ON T2.CardCode = T4.CardCode
INNER JOIN OCRG AS T5 ON T4.GroupCode = T5.GroupCode
INNER JOIN OITM AS T6 ON T1.ItemCode = T6.ItemCode
INNER JOIN OITB AS T7 ON T6.ItmsGrpCod = T7.ItmsGrpCod
WHERE T0.PriceList = 1
and T2.Docdate between @d1 and @d2
Sometimes SBO does not manage correctly variables in complicated queries and there is a note about the workaround to solve the problem:[Note730960|https://websmp130.sap-ag.de/sap/bc/bsp/spn/sapnotes/index2.htm?numm=730960] -
GP - consolidating structured parameters problem
Hi,
I have a problem when consolidating parameters of the same structure type.
I want to consolidate parameters between two Web Service CO. The output parameter of the first has the same type as the input parameter of the second. They are structures (the parameters are lists of java objects, which themself contain lists of objects and other string objects. That means
List1
List2
String).
So, when I consolidate them (I group the List2 structures), as an input to the second CO I get the Strings matched but only the last list element of List2, the others are overwritten maybe.
I have read in the SAP Help Pages in the consolidating parameter page that :
The Group option is enabled only for:
○ Standard parameters of the same type (for example, String, Integer, Time)
○ Structure (and Structure Template) parameters, regardless of their internal hierarchy
So, I thought that I can consolidate parameters with arbitrary hierarchy.
Do I understand that wrongly or is there any way to make such thing?
Thanks in advance
Best regards,
VeraI don't think GP forgot your changes here.
I assume you don't have any problems with defining the GP interfaces for your 3 actions (implementing GetDescription).
Now when you implement the Execute or Complete method to set or get the GP List structure or array you've defined, you need to:
- make sure that in the A1 callable object, you're passing correctly the content of the Webdynpro array to the GP interface structure.
- make sure that in the A2 callable object, you're passing correctly the content of the GP interface structure to the Webdynpro array.
Your problem is a Webdynpro problem not GP. You can use the mechanism of looping through the first array and add element or row to the second array.
That's a good webdynpro exercise and enjoy it! -
PL/SQL Procedure Parameters PROBLEM
Here's my problem:
When we describe the successfully compiled PL/SQL packaged procedures in SQL*Plus, the parameter order seems reversed. For instance, my PL/SQL source looks like this:
Create Package pkg1...
Procedure func1 (param1 in varchar2,
param2 in number) is
...function body...
end func1;
end pkg1;
After it is successfully compiled in SQL*Plus, when I describe it using the desc command, it shows:
PROCEDURE FUNC1
Argument Name Type ......
PARAM2 VARCHAR2
PARAM1 VARCHAF2
This problem occurs occasionally, if we recompile the source, it goes away. We couldn't quite tell when and how this happens. When the problem occurs, we checked the ALL_SOURCE view and verified that the parameters are in the right order.
We use the Merant Drivers for our client side interfaces and whenever we have this problem on the db server, we get the "wrong number of types or parameters" error.
Any clues, hints, solutions are greatly appreciated.
Thank you for your time.
On a different note, I couldn't find the appropriate forum to post this PL/SQL specific message, wondering why there isn't a PL/SQL forum.
Murthy.Hi Yegneshwar
Can U tell me how to invoke the procedure ? If all it can be invoked the post it or mail me and then I might help U out.
Thank U.
edwin -
RFC Lookup - BAPI-TABLE Parameters problem
Hello All,
I had a scenario where i need to export parameters and am supposed to get import parameters from BAPI between source and target structures.
like -
source --> BAPI execution = result --> target
We had succeeded in getting those but the only problem is with TABLE parameters in that BAPI.
How can we achieve it.
Faster reply would be appreciated.
Thanks & regards
ReddyHi VJ,
Its not a simple source-target mapping .
For Ex :
Source-Bapi-Idoc
Source will send some parameters to BAPI and bapi will execute it and respond with values in table parameter of the bapi and result would be assigned to idoc-field.
For this i am using RFC Look up with sample code as :
String rfcxml ="<ns0:Z_BAPI xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\">" +
" <A>" + A + "</A>" + --- Export parameters
" <B>" + B + "</B>" + --- Export parameters
//" <TABLE><FIELD1>" + FIELD2 + "</FIELD1></TABLE>" +
//" <TABLE><FIELD2>" + FIELD2 + "</FIELD2></TABLE>" +
//" <TABLE><FIELD3>" + KDMAT+ "</FIELD3></TABLE>" +
// "<FIELD1>" + FIELD1 + "</FIELD1>" +
"</ns0:Z_BAPI> " ;
Passing A & B as export parameters and getting TABLE-FIELD1&2&3 as response.
I hope some problem in the syntax.
Regards,
HP -
Navigation and Parameters problem
Hey all,
I'm very new to JSF and we are attempting a very basic test app to try and get our heads round things. The app is basically a list of people, with a link to edit them, and a page which lets you edit the person and a button to save the person, after which, you will go back to the list of people.
I have a personlist.jsp page which obtains a (fixed) list of people from the PeopleDAO, using a h:dataTable to iterate and display each person. Each row has an edit link of the form "......editperson.jsp?PersonID=<number>" where number is the person ID for that person.
In the edit person page, I have a PersonBean which is used to display the person details. The person bean is specified in faces-config.xml as a managed bean, and I hook the PersonID property of the PersonBean up using a managed property linked to the PersonID param.
<managed-bean>
<managed-bean-name>personbean</managed-bean-name>
<managed-bean-class>mypackage.view.PersonBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>personID</property-name>
<value>#{param.personID}</value>
</managed-property>
</managed-bean>
I have the navigation set up to go back to the personlist.jsp page once you click the save button :
<navigation-rule>
<from-view-id>/editperson.jsp</from-view-id>
<navigation-case>
<from-outcome>save</from-outcome>
<to-view-id>/personlist.jsp</to-view-id>
</navigation-case>
</navigation-rule>
On editperson.jsp, I have a commandbutton that has an action="save" (this is for simple testing since we are having problems with it) :
(in the form for editing the person)
<h:commandButton value="Update" action="save"/>
The problem is that when you click the button, it tries to reload editperson.jsp without the personID parameter, which causes an error because it is expecting a parameter as specified in the PersonBean managed bean declaration.
If I set the property to a constant value in the managed bean declaration, everything works fine, but when bound to the parameter, it causes an error.
I can see why it is an error, but I have no idea how to get around it. Am I passing parameters the wrong way, or is there some option to set a default value for the param, or am I navigating incorrectly?
Any help is appreciated,
Cheers,
AndyWell, at last, it seems that after another day of testing, I have found the answer.
I'm posting back here since I found a number of people who had this problem, and none of them received an answer. Hopefully this might help some poor soul in the future.
The problem is data type conversion. When there is no person ID, the parameter is effectively a blank string, which of course cannot be converted to an integer. Even specifying the type in the managed property did not help the conversion process.
I have a mini test app that has a bean with managed int and string properties. The page renders fine when the intValue param is there, but crashes if it is not. The page doesn't give a hoot about whether the textValue parameter is there or not and will always render by substituting a blank string as the value.
I'm sure there must be some way to pass a parameter to a managed property as an integer without having the application crash if it is missing, especially considering most applications use integers for primary keys.
I have seen samples that do this, alas, since many don't compile, deploy and run out of the box, I am unable to verify whether or not they break under the same conditions.
The only thing I can think of is to have the backing bean act as a container for my real objects. I.e. PersonBean has a managed person ID string property which when set, converts the ID to an integer and loads up the person and assigns it to PersonBean.Person .
This is probably actually a better structure all round, especially if the backing bean for a view needs to contain other objects, i.e. a list of orders for that person. By adding the extra layer in there, it will make it easier to add additional model objects to the backing bean. -
Hi
I have small problem here. I worked struts with ajax before. currently. I m trying to work on ajax with jsf, here i m getting the problem. i created one ajaxaction class its extends httpservlets. then i created one manage bean, then i want to call the class using javascript, i dont know how to do. can any one help for me.
ThanksI have never worked with the AJAX + JSF combo before, but I know that you can invoke a managed bean action using javascript and the h:commandLink and h:commandButton elements.
<h:form id="form1">
<h:commandLink id="link1" action="#{MyBean.action1}"><h:outputText value="link" /></h:commandLink>
<h:commandButton id="button1" action="#{MyBean.action2}" value="button" />
</h:form>
<f:verbatim><script>
function myFunction() {
document.getElementById('form1:link1').onclick(); // this invokes the #{MyBean.action1}
document.getElementById('form1:button1').click(); // this invokes the #{MyBean.action2}
</script></f:verbatim>I haven't tried other ways yet. But this might give you an idea. -
Hello,
I've a probem in a binding between a BO->event and a WF.
My event has two parameters one is a char1 and other is a structure. And my workflow has the same parameters one is a char and the other is a structure defined in the container.
The problem is when I try to assign the event's structure with the workflow's structure. The binding doesn't work.
But the other parameters works perfectly. I think that this is a problem with the structure parameter. Does anyone know which could be the problem ?when I try to assign the event's structure with the workflow's structure
This time you create one more time the binding between the Event and WF container , save and run the txn SWU_OBUF and click SHIFT + F1 once the time is updated close it and try to simulate the event from the txn SWUE. -
Hi,
I have created BAPI using the Zfunction Module. Now this is working fine.
Now i have changed the parameteres in Z FM. When I executed the BAPI. It is giving error. So, i have re generated the BAPI. But new parameters are not coming in BAPI.
My doubt is, after changes in FM, in BAPI What steps i have to do. is re generate enough? or any thing i have to do?
Regards,
BaluHi,
Check the source code of the BAPI if it matches with the changed parameters of the Z Function Module. If it was working fine before, the problem must lie in the source code of the BAPI where the Z Function Module parameters are passed.
Regards,
Vik -
Hi All,
I have a report that is submitting data for multiple rows. Each rows contains 16 Apex Items, used to updated data in multiple tables. It is working fine to approx 70-80 rows but when I have more than 100 rows, I am getting following error.
mod_plsql: /pls/apex/wwv_flow.accept HTTP-400 Too many arguments passed in. Got 4261 parameters. Upper limit is 2000
Help me to solve this problem.
Thanks in advance.
Regards.
Ranjanthere is no limit
I think you are confusing what you need to do over time during a session with what you need to do in individual POSTs.
There may be a way to change the upper limit but I don't know if there is a way.
You should focus on reducing the number of rows, thereby the number of parameters in each page that is presented to the user for possible submission.
Scott -
hello,
I was make applet which is using as somelike TELNET client. He has a buttons connect and disconnect . If I open first applet and try connect and disconnect every works done. If I open second applet both using parameters of second of them.
Can someone help me ?
How I start the applets in html :
<APPLET CODE="Applet" ARCHIVE="applet.jar WIDTH="600" HEIGHT="600" BORDER="0">
<PARAM NAME="ip_addr" VALUE="158.196.128.69">
<PARAM NAME="ip_port" VALUE="10000">
<PARAM NAME="id_zar" VALUE="r2@ostrava">
<PARAM NAME="si" VALUE="95cdbd2fbbe598f6428749f697378491">
<PARAM NAME="resid" VALUE="105@ostrava">
<PARAM NAME="lng" VALUE="cze">
<PARAM NAME="tutor_mode" VALUE="off">
</APPLET>
Edited by: Jiri_Sterba on Jan 15, 2008 8:17 AMI have the same problem. In the contrived example below my applet will only work if the EL statement #{row.email} actually gets resolved to the database value, but at the moment the EL text is what is ending up in the applet parameter value. Any further assistance on this would be greatly appreciated.
<af:column headerText="#{bindings.DepartmentsdepartmentCollection.labels.email}"
sortable="false" sortProperty="email"
binding="#{backing_deptEmp.column2}" id="column2">
<af:outputText value="#{row.email}"
binding="#{backing_deptEmp.outputText2}"
id="outputText2"/>
<f:verbatim>
<jsp:plugin type="applet" code="com.atrium.agis.AGISApplet" archive="ATRIUMgis.jar"
height="500" width="750">
<jsp:params>
<jsp:param name="method:init" value="'#{row.email}','basemap','http://192.168.10.8/mapviewer/omserver',524966,322570, 750, 400, 81989, 'devplan_jdbc_datasource', 1250,'http://atriumdev/mapviewer/watermark.gif'" />
</jsp:params>
<jsp:fallback> This browser does not support Applets. </jsp:fallback>
</jsp:plugin>
</f:verbatim>
</af:column> -
Kernel parameters problem (512 mb RAM)
Hi,
I've installed Oracle on RedHat 5.2 (2.0.36) on a machine with
512 mb memory.
First I've recompiled the kernel how Oracle says and basing in
some documents (like
http://jordan.fortwayne.com/oracle/oralinux.html). Of course I've
saved a copy of the old kernel. The linux was ok, the command
ipcs -l shows the new values of the kernel parameters, but Oracle
didn't start. I've restored the copy of the kernel, the ipcs -l
shows the old values and now Oracle is running, with a SGA of
almost 300 mb.
Is there some problem in that? Will the machine loose performance
because the miminum values of the kernel parameters?
Best regards,
Ari
nullAri Arantes (guest) wrote:
: Hi,
: I've installed Oracle on RedHat 5.2 (2.0.36) on a machine with
: 512 mb memory.
: First I've recompiled the kernel how Oracle says and basing in
: some documents (like
: http://jordan.fortwayne.com/oracle/oralinux.html). Of course
I've
: saved a copy of the old kernel. The linux was ok, the command
: ipcs -l shows the new values of the kernel parameters, but
Oracle
: didn't start. I've restored the copy of the kernel, the ipcs -
l
: shows the old values and now Oracle is running, with a SGA of
: almost 300 mb.
: Is there some problem in that? Will the machine loose
performance
: because the miminum values of the kernel parameters?
: Best regards,
: Ari
I have a setup similar to yours (384 MB instead of 512 MB),
and I spent some time looking at the parameters.
You CANNOT use the value for SHMMAX from the Oracle manual!
As it says at http://jordan.fortwayne.com/oracle/oralinux.html
"Should you decided to change these parameters, if you set
the SHMMAX to what Oracle says, you are telling the system
to allow a shared memory segment to grow as large as 4 Gigs.
Many users have reported problems setting the value this
high."
Sounds like you are another one of those users, eh?
If you read on down, the guy who wrote that web page never
used over 128 MB for SHMMAX. I'd take a strong hint from that.
=====
Oracle wants you to use 4GB-1 as the SHMMAX value. That
equates to (1<<32)-1. As we shall see, that is not allowed
without "breaking the rules" for the i386 architecture.
If you carefully read through the header file, you will find
out that the **actual maximum value** for SHMMAX is 256 MB.
You can tell this two ways. Take a look at the file at:
/usr/src/linux/include/asm/shmparam.h
Near the top of the file is:
/* address range for shared memory attaches if
no address passed to shmat() */
#define SHM_RANGE_START 0x50000000
#define SHM_RANGE_END 0x60000000
Note that the above is 256 MB (0x10000000), or (1<<28). This
is one potential source of trouble. I don't know if some other
files someplace else in the kernel specify uses for address
ranges adjacent to the above range, which I take to be the
"practical maximum" without redefining that range. Personally,
I wouldn't want to mess with the above unless I **really**
knew what I was doing (and I'll be the first to admit I don't).
=====
Farther down you will see some more lines (not together)
that look like this:
#define SHMID_BITS 7
#define SHMIDX_BITS 15
* SHMID_BITS + SHMIDX_BITS must be <= 24 on the i386 and
* SHMMAX <= (PAGE_SIZE << SHMIDX_BITS).
#define SHMMAX 0x2000000 /* max shared seg
size (bytes) */
Now, 7 + 15 is 22, so you could go up a couple of bits if you
had to. To avoid making the table any larger, I would suggest:
#define SHMIDX_BITS 17
But, 17 turns out to produce a result larger than the "practical
maximum" (256 MB) above. To see why takes a little more
explaining.
And if you don't change this at all, then the maximum possible
value for SHMMAX is 4096 [the PAGE_SIZE) << 15 [_SHM_IDX_BITS],
or rather (1<<27).
Now, that is exactly half of the (1<<28) "practical maximum" I
mentioned above.
So, if you always want the maximum amount of shared memory,
then change the definition of SHMMAX to the following:
#define SHMMAX (PAGE_SIZE<<_SHM_IDX_BITS) /* max shared seg
size (bytes) */
That gives you 128 MB in and of itself (as compared with 32 MB
as Red Hat 5.2 is delivered).
If you want the full 256 MB that is allowed for in the memory
map, then you need to also change:
#define SHMIDX_BITS 16
The above value is **exactly** what is recommended on the web
page you were following (above).
If you want to keep going up, you will need to change the
memory space allocated for shared memory as defined by
SHM_RANGE_START and SHM_RANGE_END, something I advise against.
=====
Even on a machine with 512 MB of "real" memory, I find it hard
to believe that there would be any substantial benefit to
having a maximum shared memory space greater than 256 MB. The
reason is that Oracle can use multiple shared memory spaces.
It requires a minimum of ten (10), according to the installation
manual, but the Red Hat 5.2 distribution supplies SHMMNI (128)
of them. That will allow each Oracle process to have a total
of up to 32 GB of shared memory (128 times 256 MB) and all it
asks for is 40 GB (10 times 4 GB), so it has plenty, IMHO.
=====
Let me say a few more words about the web page you were using
for configuration advice. That person actually **reduced** the
amount of shared memory segments by specifying **lower values**
for SHMMNI and SHMSEG (not to mention the semaphores).
I'd **STRONGLY** recommend **NOT CHANGING** those other values!
Its my understanding that Oracle can make up for the smaller
maximum shared memory segment size by using more shared memory
segments. So, if you reduce those, you are essentially shooting
yourself in the foot by taking away what you are giving with
increasing the maximum segment size.
=====
Good luck, and may this farce be with you!
null -
Java object XSLT parameters problem. JDK vs Xalan.
Hello all,
I need to create a small application which requires to run some transformation interacting with a number of Java classes.
Small example is below: I have a Java class, which I'm going to use within transformation.
package com.example;
public class Document
private String filename=null;
public String getFilename() {
return this.filename;
}and transformation which extracts some information from the passed parameter object
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:document="com.example.Document">
<xsl:param name="theDocument"/>
<xsl:template match="/">
<example>
<xsl:value-of select="document:getFilename($theDocument)"/>
</example>
</xsl:template>
</xsl:stylesheet>The code which launches transformation is following:
try {
TransformerFactory factory = TransformerFactory.newInstance();
Templates template = factory.newTemplates(new StreamSource(new FileInputStream(transformationFilename)));
Source source = new StreamSource(new FileInputStream(theSourceFilename));
Result result = new StreamResult(new FileOutputStream(theTargetFilename));
Transformer transformer = template.newTransformer();
transformer.setParameter("theDocument", theDocument);
transformer.transform(source, result);
} catch (TransformerConfigurationException e) {
e.printStackTrace();
} catch (FileNotFoundException e) {
e.printStackTrace();
}When I run it I get
ERROR: 'Cannot find external method 'com.example.Document.getFilename' (must be public).'
FATAL ERROR: 'Could not compile stylesheet'at this line
Templates template = factory.newTemplates(new StreamSource(new FileInputStream(transformationFilename)));I made a test with a variable, when Document instance is not a parameter but an instance created within transformation and assigned to an XSLT variable. Everything works fine in variable case, but not with parameter.
Once I've added Xalan-2.7.1 .jars to the classpath it had been fixed. I guess the issue is described here (yep, I'm using 1.5).
XSLTC does not support all the extensions that Xalan does. These extensions are beyond the definition of the JAXP and XSLT specifications. For those users impacted by this, the work around of downloading the Xalan classes from Apache is still available. Also, going forward we expect to be supporting more and more extensions in XSLTC.
However, I'd like to find Xalan free solution. Could someone explain what is the difference and how implement the same behaviour without using Xalan?
Thank you in advance.georgemc, your answer may not have helped the original poster, but it just helped me out. So, thank you very much.
To clarify, for the benefit of anyone else who encounters this issue, it looks as if a possible cause of the 'Cannot find external method' error is that the transformer is defaulting to something - possibly XSLTC - that does not support certain extension methods. Ensuring that a recent Xalan JAR is in the classpath may resolve the problem.
Edited by: slamci on Mar 13, 2010 11:14 AM -
Passing and Retrieving parameters problem...
Hello,
I am very green to Oracle forms builder. I have a multi-form application that I am trying to create a parameter list for on the first form and pass that parameter to a second form via the OPEN_FORM method. I am able to create the parameter, I set a runtime breakpoint and ran the form and verified that the correct value is there. I can then call the second form using the CALL_FORM('form_name',ACTIVATE,NO-HIDE,'params_list_name'). Once the second form pulls up how do I verify that the parameter is indeed there and how do I access that parameter.
The project I am working on is a simple log in screen where a user would enter his or her ID and Password/Pin, this is the first form. The trigger on the "log in" button verifies that the user entered the correct information and calls the next form. I am assuming that passing a parameters list is the most effecient way to do this. I would like to pass the UserID to the second form and use it in the WHERE clause of a SQL expression in order to show the user his or her personal data. Do I need to create a PRE_FORM trigger on the second form to accept the passed parameters list?
Any help would be much appreciated.
Alexon your second form, on object navigator's parameter node, create the parameters having the same names you defined in your first form. then
you can use it as :PARAMETER.your_param_name anywhere in the second form.
Maybe you are looking for
-
NEW 9iAS PORTAL UPGRADE SCRIPTS NOW AVAILABLE
Based on detailed customer and internal feedback, Oracle9iAS Portal Product Development is now making available NEW and significantly IMPROVED versions of the 9iAS Portal Upgrade Scripts as of 4/20/2001. [list] [*]Oracle9iAS Portal Upgrade Scripts (2
-
IChat not connecting properly or reliably to AIM
hi there folks i've read with interest the various problems other people are having with this and the suggestions that have been offered. so far, nothing has improved my situation. here are some relevant details: - iChat will not reliably logon to AI
-
Configure Client-cert with ACL in iPlanet
I need to configure iPlanet with "client-cert" configuration. - It works with this setting (in the console) : [Preference] --> [Encryption Preferences] --> "Require client certificates (regardless of access control):" set to "Yes". - I have a problem
-
Hi guru, my companies do the following operations for a vendor: 1) Invoice: Posting Key: 31 100 eur Posting key : 40 100 eur 2) DOcument: Posting Key: 24 2 eur Posting Key :50 2 eur Bef
-
Sync iphone 4s and outlook 2010
sync iphone 4s and outlook 2010