Problem with WebStart & applicaton parameters or properties..
Ok. I have a WebStart application which is supposed to be launched from a website only (not offline-allowed - even though you seem to be able to launch it offline! grr) and the application needs to take TWO parameters from the website. I am currently using Properties to accomplish this. The website (using Enhydra) dynamically generates a .jnlp file that specifies the correct properties. I can confirm this by DOWNLOADING the .jnlp file and viewing it in notepad. However, when WebStart actually runs this, it's caching the very first JNLP my app was ever launched with, and using THOSE parameters. My question is.... WHY AND HOW DO I MAKE IT STOP. ^_^ This is just another twist in my way-too-complicated-and-painful quest to simply pass some parameters to my application. (another other suggestions on how to simply pass two strings are also appreciated.)
Thanks,
-xanatos
Hi,
the short answer is leave jnlp.href empty and Web Start won't reload/cache you startup file.
For more details check out the Unofficial JNLP/Web Start FAQ at http://www.geocities.com/vamp201/jwsfaq.html
- Gerald
Similar Messages
-
Problem with SET GET parameters
Hi all,
I am facing a problem using SET and GET parameters.
There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
SET PARAMETER ID 'QLS' FIELD lv_prueflos.
Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
Example: Inspection Lots : 4100000234
4100000235
4100000236
Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
Could you pls help me in solving this issue.
Thanks,
AravindHi,
Problem with SET GET parameters
Regarding on your query. Follow this below link.
It will help you.
Re: Problem with Set parameter ID
Re: Problem in Set parameter ID
I Hope it will helps to you.
Regards,
Sekhar -
Problem with passing date parameters in cursor
Is there any problem in passing date parameters and like clause as below
CURSOR eftcursor(start_date DATE, end_date DATE, where_clause varchar2) IS
select * from r_records
where created_date between start_date and end_date and description like where_clause;
and in the open statement
select to_date('01/06/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into startDate from dual;
select to_date('01/07/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into endDate from dual;
str := '%something%aaaaa%';
open eftcursor(startDate ,endDate , str);
Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.Almora wrote:
Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.No, your code looks correct -- ou're passing a date to the cursor.
You might consider whether you really need an explicit cursor though. An implicit cursor is easier to code and performs better. -
Problem with IN OUT parameters whiloe calling procedure from Form 6i
Hi
Could some help please? I have the following scenario.
I am calling a stored procedure from form 6i by pressing a button on the form. Procedure has two IN OUT parameters, and I am passing these two IN OUT parameters and have declared them the way they are declared passed to the procedure. But I get an error when calling that procedure with these IN OUT parameters. the procedure works fine if parameters are IN only. The error says:
PLS:00363: Expression '1' cannot be used as an assigment target.
NO matter I pass some value or leave it blank, I get the same error message persistenetly.
Please help.
Thanksmake sure you are calling your procedure with variables as parameters,
i.e.
l_v1 := 1 ;
l_v2 := 'hello world' ;
your_proc(l_v1, l_v2)
not
your_proc(1,'hello world') -
I am having trouble launchng this webstart:
http://ajmas.dyndns.org/webstart/applications/gpsviewer.jnlp
I trust the certificate but I get a security exception. This JNLP references another JNLP, which contains native binaries. I have signed all the jars in both JNLPs. I have been testing on MacOS X.
The exception is:
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.rxtxSerial)
I am new to native libs with webstart, so any help would be appreciated.With a little help the issue was resolved. Basically I was missing the security/all-permissions section from my main jnlp. Below is what it should be like.
The first JNLP is (gpsviewer.jnlp):
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://ajmas.dyndns.org/webstart/applications"
href="gpsviewer.jnlp">
<information>
<title>GPSViewer</title>
<vendor>ajmas</vendor>
<homepage href="http://jogl-demos.dev.java.net/"/>
<description>Program displaying data from NMEA compatible GPS device</description>
<description kind="short">Displays data from a NMEA GPS device</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
<jar href="geonavapps.jar" main="true"/>
<jar href="geonav.jar" main="false"/>
<extension name="rxtx" href="http://ajmas.dyndns.org/webstart/rxtx/rxtx.jnlp" />
</resources>
<application-desc main-class="osj.geonav.gpsviewer.GPSViewer"/>
</jnlp>and the second is (rxtx.jnlp):
<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://ajmas.dyndns.org/webstart/rxtx/"
href="rxtx.jnlp">
<information>
<title>RXTX</title>
<vendor>ajmas</vendor>
<homepage href="http://www.rxtx.org"/>
<description>Java API for serial port communication</description>
<description kind="short">Java API for serial port communication.</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="rxtx-comm.jar" />
</resources>
<resources os="Windows" arch="x86">
<nativelib href="rxtx-comm-natives-windows-i586.jar" />
</resources>
<resources os="Linux" arch="i686">
<nativelib href="rxtx-comm-natives-linux-i686-32.jar" />
</resources>
<resources os="Linux" arch="i386">
<nativelib href="rxtx-comm-natives-linux-i686-32.jar" />
</resources>
<resources os="Linux" arch="x86">
<nativelib href="rxtx-comm-natives-linux-i686-32.jar" />
</resources>
<resources os="Mac OS X" >
<nativelib href="rxtx-comm-natives-macosx-universal.jar" />
</resources>
<component-desc />
</jnlp> -
Problem with empty report parameters when passed to PL/SQL function
Hi,
We have come across what appears to be a bug in the JRC. When passing a report parameter to a PL/SQL function as a parameter, empty parameters are changed before being sent to the function. More specifically, an empty string "" ends up as the value "(')" in the PL/SQL function parameter. In our report we print the report parameters on the first page so we know that the parameters are OK before being passed to the database.
The problem exists for version 12.2.203, 12.2.204 and 12.2.205 of the JRC.
We have identified a workaround, but it is not exactly elegant: Before executing the report we modify all empty parameters ("") to " " . In the PL/SQL function, we trim all parameters before using them.
We call the function using a command object with a sql syntax like this example:
select * from table (qa_batch_release.get_qa_br('{?p_report_id}','{?p_reg_set_number}','{?p_cr_number}','{?p_change_id_decode}','{?p_country_id}','{?p_mfg_item_no}','{?p_4_no}','{?p_5_no}','{?p_7_no}'))
The PL/SQL function is a table returning function.
Best regards, ThorHi Kishore,
using #COLUMN_VALUE# would probably not make much sense, because normally a report has multiple columns and not just the numeric column which you want to verify if it's negative. But APEX will fire the template condition for each column, because the report template is a column cell template.
What you can do to make it more generic is to use for example
#CHECK_AMOUNT#
in the template and provide a not displayed column in your SQL statement which contains your value which is named CHECK_AMOUNT. For example:
SELECT NAME
, BALANCE
, BALANCE AS CHECK_AMOUNT
FROM XXX;Because this CHECK_AMOUNT column would be a generic name, you can use this template in all your reports as long as you provide this column.
Thope that helps
Patrick -
Problems with XY Graph "forgetting" plot properties
I am having trouble with an XT Graph in my loop.
The graph has 10 plots which at any time can have anything from 0 to ~1000 points, often some plots will have significantly less ploints than others. There is a user selectable option to display all points or just the most recent set.
My problem is that I want the graph to reflect the input data by plotting a single point at the time of an update, so I have a string of points rather than a line.
When I right click the graph and go into properties, I change the point style to solid circle and turn off line interpolation. I then click save these values as default, and save the vi.
However, once I run the vi, the graph always reverts plots 1 to 9 (not plot 0, this stays as I want it) to have no points displayed and line interpolation on.
Has anyone had this problem before? Ho did you fix it?
I know it can be fixed, as I had this probelm a few months ago on a similar vi and after weeks of struggle I solved it, however I just cannot remember how I did it.
Thank you for any help, at the moment I can't post any code. Note that the data the graph shows is all perfectly fine, just the plot properties are being forgotten.
Solved!
Go to Solution.HI DarraghCorrigan,
In relation to the problem expressed in your initial post:
"once I run the vi, the graph always reverts plots 1 to 9 (not plot 0, this stays as I want it) to have no points displayed and line interpolation on"
This is due to a bug in the LabVIEW software whereby any changes that are made to the plot properties (e.g. to change the colour of a plot) will not be retained, except in plot 0 which is unaffected. Our R&D department are currently investigating this problem so that it can be fixed in future version of the software. The recommended workaround for this problem is to pragmatically set the plot settings at the beginning of the code using property nodes.
As I understand it, this is not the main problem that you are experiencing. If you set up the properties for a plot (using some of the described property nodes) which is subsequently removed or rewritten on an XY Graph, my understanding is that there is no way that LabVIEW can remember and retain these properties.
As you rightly suggested, one way of conveniently overcoming this problem would be to set default plot properties so that when you remove/rewrite a plot and then add it again, it will always default to those properties. Unfortunately, it is not currently possible to do this though it has been recommended as a product suggestion so it is a feature that is under consideration for implementation in future releases of LabVIEW.
I think the issue you need to be addressing is the fact that you are at some point resetting the graph by sending an empty array to it such that all of your properties are lost. If you can find and remove this section in your code, you should be able to overcome your problem.
I hope this helps.
Best Regards,
Christian Hartshorne
NIUK -
Problem with OWA_UTIL.IDENT_ARR parameters through mod_plsql in 9iAS
Hi!
We discovered very strange bug in our Oracle environment. We're using the following configuration: Oracle8i (8.1.6), OWA-packages (from 9iAS), 9iAS (Release 1).
Suddenly some procedures stopped working. mod_plsql reports the following
---start-------------------------------------------------------------------------
Thu, 27 Jun 2002 04:42:32 GMT
ORA-06550: line 7, column 2:
PLS-00306: wrong number or types of arguments in call to 'INDICATORS_REPORT1'
ORA-06550: line 7, column 2:
PL/SQL: Statement ignored
DAD name: owh8i
PROCEDURE : htm_client_indicators_leshik.indicators_report1
USER : dwh
URL : http://ntw:80/pls/owh8i/htm_client_indicators_leshik.indicators_report1?monthes_=200206&monthes_=200205&monthes_=200204&client_id_=8175682&division_id_=0&type_balance_=morning&mail_=N&rs_without_rs_=on&rs_without_deposit_=on&rs_without_credit_=on&rs_without_veksel_=on
PARAMETERS :
============
monthes_:
200206
client_id_:
8175682
division_id_:
0
type_balance_:
morning
mail_:
N
rs_without_rs_:
on
rs_without_deposit_:
on
rs_without_credit_:
on
rs_without_veksel_:
on
ENVIRONMENT:
============
PLSQL_GATEWAY=WebDb
GATEWAY_IVERSION=2
SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.19 (Unix) mod_perl/1.25 mod_oprocmgr/1.0
GATEWAY_INTERFACE=CGI/1.1
SERVER_PORT=80
SERVER_NAME=ntw
REQUEST_METHOD=GET
QUERY_STRING=monthes_=200206&monthes_=200205&monthes_=200204&client_id_=8175682&division_id_=0&type_balance_=morning&mail_=N&rs_without_rs_=on&rs_without_deposit_=on&rs_without_credit_=on&rs_without_veksel_=on
PATH_INFO=/pls/owh8i/htm_client_indicators_leshik.indicators_report1
SCRIPT_NAME=/pls
REMOTE_HOST=
REMOTE_ADDR=172.16.1.36
SERVER_PROTOCOL=HTTP/1.1
REQUEST_PROTOCOL=HTTP
REMOTE_USER=
HTTP_CONTENT_LENGTH=
HTTP_CONTENT_TYPE=
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
HTTP_HOST=ntw
HTTP_ACCEPT=*/*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-us
HTTP_ACCEPT_CHARSET=
HTTP_COOKIE=
Authorization=Basic ZHdoOnlmbGp2eWp1aiQ=
HTTP_IF_MODIFIED_SINCE=
HTTP_REFERER=
HTTP_SOAPACTION=
---end---------------------------------------------------------------------------------
here you can see that URL contains substring "monthes_=200206&monthes_=200205&monthes_=200204" but in "parameters" section there's only one "monthes_".
This procedure is part of a package. I tried to create empty package with this procedure alone. And it works. But the original package doesn't work.
Similar things has happened in some other packages. It seems that the problem is somehow connected with IDENT_ARRs.
I can send you configuration files for app server and the problem package.Check for procedure name overloading for the procedure you
are trying to run
If you still have problems, please provide a simple testcase
which shows the procedure signature and how you are attempting
to call it -
Problems with Webstart installer
In our Windows 2000 workstation configuration normal users are not allowed to install programs, which modify the registry. Thus, administrator priviledges are required to install Java Webstart.
The problem is that when the normal user logs into the machine the webstart icon does not show up on the user's desktop (because the admin has installed it).
Therefore, I assume that the desktop icon is written to the installing user's desktop folder (the admin). I assume that the icon should be stored in the All Users desktop folder to avoid the problem.
Of course, it is not difficult to create the shortcut for other users, however, if you have to do a lot of webstart installations, it is better if this is already accomplished by the installer.
I would appreciate, if the JWS Team could address this issue soon.
Kind regards
Thomas G�lden
[email protected]In our Windows 2000 workstation configuration normal
users are not allowed to install programs, which
modify the registry.Sounds typical. I hope such issues will be solved, because many people will try to use Web Start for deployment in medium to larger companies. These have full time admins, who will enforce stricter security permissions than the usual user is admin mess. :)
It would be interesting to check the available Web Start sources regarding to what registry entries are set/modified by Web Start installation.
The ones I am aware of have to do with the MIME registration of Web Start, thus that mechanism that will
activate the Web Start client, when a link to a .jnlp URL is hit from the web browser.
Thus I wonder what will happen if you try two Web Start installations:
1. admin installation that will do the mime registrations
2. user installation that will perhaps notice that the mime registration has already been done and just set up the user specific stuff, like user cache and user desktop icons
Regards,
Marc -
Problema with strings as parameters
I'm facing a curious problem. I have already downloaded a few classes that encode special characters into html entities. All of them receive a string paramter and return the encoded string.
The problem is that if i pass an actual string as paramater, the result is ok. But if i pass a string variable as parameter, the functions don't work.
I mean, if i use this:
String str = HTMLTools.encode("Usu�rios");
The result in str is "Usuários" -> Correct
On the other hand, if i use
String str1 = "Usu�rios";
String str = HTMLTools.encode(str1);
The result in str is "Usu�rios" -> WRONG!!!!
This is freaking me out!!! I'm going nuts. It's happened with almost ten different classes the same thing. Idon't know how to fix that.
Does anybody has any clue?
Thanks a lot to all.I mean, if i use this:
String str = HTMLTools.encode("Usu�rios");
The result in str is "Usu�rios" -> Correct
On the other hand, if i use
String str1 = "Usu�rios";
String str = HTMLTools.encode(str1);
The result in str is "Usu�rios" -> WRONG!!!!Um... this may be an accident of encoding it for a web
page, but the value you assign to str1 appears to be
wrong?You're right. This is a problem of encoding for a web page. That's why i have to encode the html entities, but i'm having no success on that. -
Problems with the print parameters of REUSE_ALV_GRID/LIST_DISPLAY
Hello,
I would like to put the printing parameter IS_PRINT of the REUSE_ALV_LIST_DISPLAY. I can fill the structure but it doesn't work.
I've try the following cases:
- get the default print parameters, change this, set the print parameter (GET / SET_PRINT_PARAMETERS)
- set the structure print_cntrl of the parameter is_print
Additional I've test the programm BCALV_TEST_LIST_PRINT2. I can fill the selection parameter for pages, for the printer, etc. - when I debug, the structure is_print is filled, but it hasn't any effect.
I need this function to change the field armod to put the list into the archive.
Just, I haven't an idea. Perhaps has anyone this problem too.
Best regards
tkaessHi,
from the docu of parameter IS_PRINT in the fm's docu (REUSE_ALV_LIST_DISPLAY):
Prerequisite: Before you use these parameters, you must call the function module UNSET_PRINTPARAMETER. This initializes the required parameters. Value range Default
Regards,
Klaus -
Urgent: problem with getting itresource parameters
Hi all experts,
I have problem getting it resource parameter, for ex, I have ADITResource, now i want to get details like administrator id, password, ssl etc for this i am using this code
ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
Hashtable env = config.getAllSettings();
tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
tcUtilityFactory utilFactory = new tcUtilityFactory(env, moSignature);
tcBaseUtility mBaseUtil = (tcBaseUtility) utilFactory.getUtility("Thor.API.Base.tcUtilityOperationsIntf");
tcDataProvider db = mBaseUtil.getDataBase();
Hashtable resourceHash = tcUtilXellerateOperations.getITAssetProperties(db, "ADITResource");
But i end up getting this error......
Thor.API.Exceptions.tcAPIException: Thor.API.Base.tcUtilityOperationsClient
Thanks,
satHi dost,
I had tried that database approach but it still gives me same error
ERROR,06 Jul 2009 21:20:20,093,[XELLERATE.ACCOUNTMANAGEMENT],Class/Method: tcUti
lityFactory/getRemoteUtility encounter some problems: Thor.API.Base.tcUtilityOpe
rationsClient
java.lang.ClassNotFoundException: Thor.API.Base.tcUtilityOperationsClient
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic
ClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
Loader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:176)
Coming to the other approach
Earlier I tried using " tcITResourceInstanceOperationsIntf"
and i used this code but it always give null pointer exception
itIntf = (tcITResourceInstanceOperationsIntf) utilFactory.getUtility("Thor.API.Operations.tcITResourceInstanceOperationsIntf");
Hashtable resHash = new Hashtable();
resHash.put("IT Resources.Name","ADITResource");
tcResultSet resultSet = itIntf.findITResourceInstances(resHash); // at this point it gives null pointer exception However the itresource Exists
my email ID: [email protected]
Thanks,
sat -
Problem with accessing init parameters from JSP file
Hi,
I have my init parameters and Jsp configured in web.xml
<servlet>
<servlet-name>TestJsp</servlet-name>
<jsp-file>/Test.jsp</jsp-file>
<init-param>
<param-name>username</param-name>
<param-value>Balboa</param-value>
</init-param>
</servlet> How do I access 'username' field from JSP file.
Kindly help.
Thanks.you can do this in the jsp
<%=config.getInitParameter("username")%>or do it in the jspInit method in the jsp:
<%! String userName = null;
public void jspInit() {
ServletConfig config = getServletConfig();
userName = config.getInitParameter("userName ");
%>
Hello <%=userName%> -
Problem with scrollable resultset of oracle
I encountered problom like this:
when I use
s=createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);
and getString of a resultset,I get the right data.
However ,when I use
s= createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
and getString of a ResultSet ,
if the type of the field is Date,then get right data.
if it is char or varchar2,then i get some thing like
0x313233,
all has been found in win2000&solaris
with oracle 8.1.6
thanks a lot!Hello,
We've got the same problem.
It comes from the National Character Set of Oracle Database.
With WE8ISO8859P1, no problem with using this parameters.
But with WE8ISO8859P9, we have some hexadecimal return.
I don't know if it's works with another Character set, but with this, It doesn't work.
We're trying to find a solution. Because change the character set is not one.
Good luck. -
Recursive & Loadable WD-Tree-Tutorial: Problems with parameters; NullPointe
Hello all, it's me again
This time I have a problem with the Tutorial called "Constructing a Recursive and Loadable WD-Tree". I followed each step in detail, but when I deploy it all I see several errors/mistakes in my resulting App:
1. I can click on the "directories" in this example and the directory-text is displayed in the InputForm. Normally it should only display "filenames", not directory-names... I checked the bool-properties in the addChildren-method and they are set as it's said in the tut.
2. When I try to expand any of the two nodes (C or Games; D is already expanded and includes "Games") I get a NullPointerException for the addChildren()-method in the first line (parent.nodeChildNode();). So the parameter "parent" is null or does at least not contain what it's expected to.
3. I have some Warnings: "TreeNodeType 'onAction.onAction': Parameters of action 'Select' and event 'onAction' are not compatible" and the same again for the second action (LoadChildren). So perhaps problem 2 can be solved by solving no 3?!
I'm stuck. Can anyone help me please?
I doublechecked that everything is as said in the tutorial.
Regards
MichaelHi
I realized I had an "Warning"-Message at my View-Context-Root-Node, where it said "Migrate Context". After I did this I get an "internal server error", Failed to process request.
Hmm, it seems as if there were a lot of changes from NW2004 to NW7.1, cause when I try to deploy the ready-to-deploy-tutorial (downloadable along with the Initial project template from SDN) I get deployment errors.
So I'll stop it now or perhaps try my own implementation (with java.io.File and recursive methods and loadable tree) to get familiar with the tree-thing in WD/Java
Thanks so far for the help, it's greatly appreciated.
Michael
Maybe you are looking for
-
Can't burn more than 2 hours using DVDSP 4
I am having trouble burning my project to a DVD. I have created 2 Quicktime.dv movies, in iMovie, that are approximately 1 hour 10 minutes each. I have taken the bitrate, in Preferences, all the way down to 2.0, using One Pass, and all I get is the m
-
Essbase system9 Shared Services configuration
Hi posting again.... :-) I was wondering if someone could shed some light on a few strange things that have been happening in my wonderfull world of migratin from Essbase 7.1.5 to sys 9.3.1. I have installed of the foundation server software on one s
-
Hello; Could anyone tell how to use the insert command in jdbc My code write as following, but it does not work. it complains that i could not use the varible of a, if i write like that (3333, 'ghg','jhjh'), then it work. String myString="assdsdf";
-
Hi Guys, I know that there are quite a few posts on here and other sites for URL Retrieval however I am having a few problems and I was hoping someone on here could shed some light on the situation. Basically what Im trying to do is to fetch prices f
-
Hi, When i want to export my table or something;Oracle Enterprise Manager gives an error message at the jobs/history as: 'The system cannot find the file specified.couldn't open "C:/ORACLE/ORADATA/DB1/EXPORT.LOG": no such file or directory' I think t