Unable to set max for cookie
hai <br>
actually i am working on java ee6 web application i tried to set value and max age for the cookie...but i was uanble to set maxage what ever the max age value i give .it shows as -1.but my browser accepts and stores cookie.<br><br>
<i>
Cookie sa=new Cookie("ssample", "welcome");
sa.setMaxAge(120);
response.addCookie(sa);
"</i>
A maxage of -1 indicates that its a browser cookie i.e. the cookie lasts as long as the browser which is usually the preferred approach for sessions. You have a bug somewhere in your code or the application server has some settings which kicks in when the response is sent.
Similar Messages
-
system Windows2003
database Oracle 9
disk space : C(50G)D(80G)E(40G)
"Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/bootstrap_keydb.1.xml to: C:/SAPinst ORACLE SAPINST.
INFO 2014-01-26 16:22:47
Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/bootstrap_keydb.xml to: C:/SAPinst ORACLE SAPINST.
INFO 2014-01-26 16:22:47
Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/CONTROL.DTD to: C:/SAPinst ORACLE SAPINST.
ERROR 2014-01-26 16:22:47
FSL-02010 Unable to set time for file C:/SAPinst ORACLE SAPINST/CONTROL.DTD.
ERROR 2014-01-26 16:22:47
FJS-00012 Error when executing script."
who can help me ..please.....Hello Matthew,
You should also change your temp directory to something woth no spaces, something like C:\temp.
Sapisnt sometimes has problems with the spaces in the temp path, and the Universal Installer nearly always
has a problem with this.
Regards,
David -
Unable to set Labelfield for child element in List
Hi All,
Below is code I am trying to execute
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" verticalGap="0" xmlns:local="*" height="500" creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{list.dataProvider=arr;
]]>
</mx:Script>
<mx:List variableRowHeight="true" wordWrap="
true" id="list" labelField="
chidren.lastName" /></mx:Application>
I basically want to access the children.lastName on my List. Please let me know how exactly can I do it.
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
EIS error - "Unable to set locale for GlobalC"
Hello all!
I'm working with Oracle Performance Scorecard and Oracle Integration Services to generate an Essbase cube. I'm not able no generate my cube from HPS even it doesn't showing any error in the screen but in the HPS log it shows the error message "Unable to set locale for GlobalC". So, i've noticed that the problem isn't with HPS, but EIS. I decided start the EIS shell (olapicmd.exe) and the same error message was showed in the cmd prompt. Could anyone help with this issue?
Regards,
Rafael
Hello!
I've opened a SR on Oracle support. They said that EIS doesn't work on 64 bits machine
At.
Rafael
Please help: unable to set preferences for planning from workspace.
Hi Experts,
unable to set preferences for planning from workspace.(file--->preferences----->planning), when doing this task prompts " An Error occured" preferences works fine with other components IR, FR, WEB ANALYSIS.problem is only with the planning.
1) i restarted the workspace and planning services but even then the same issue.
Please help me out on this issue.
Thanks.
Hi,
Do you get the same problem if you access planning directly ? http://<planningmachine>:8300/HyperionPlanning/
Just trying to understand if it related directly to planning and maybe you will get a different error message.
Cheers
John
http://john-goodwin.blogspot.com/
Illustrator CS4 problem loading: unable to set max files...
Haven't opened AI CS4 in a few months. Used to load just fine. Today it crashes when loading and I get this error message: 'Unable to set maximum number of files to be opened.' I'm running OS 10.4.11 on a MacBook. The rest of the CS4 suite opens just fine. I have already removed the preference file for Illustrator out of the user library and also removed the 'com.adobe.illustrator.plist' file. Restarted computer. Still can't open the program.
Check here esp post 27
http://forums.adobe.com/message/2560663#2560663
Unable to set count for Select Query for BizTalk SQL receive port
Hi All,
Iam using BizTalk server 2009 classic SLQ adapter (using XML clause)for my integration to pull records from DB in to my application.
As per the DB values iam unable to set the record count as this started giving me error below (first it worked for 820 records with select Query.and then 400 and going down with respect to multiple runs).Kindly help .
Thanks in advance.
Hi Abhishek,
iam still getting the same error for 1000 records.
after turning off PreserveBOM aswell in send pipeline.
There was a failure executing the receive pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Pipeline " Receive Port:
"SQLPort" URI: "SQL://XXXXX/OneC_DB/" Reason: An error occurred when parsing the incoming document: "'
', hexadecimal value 0x0B, is an invalid character. Line 188, position 3944.".
SMLets Beta 3: Unable to set DateTime for DateTime property using SetSCSMObject
Hello,
I need to set dateTime for my custom fields for Incidents. I wanted to use Set-SCSMObject for that. But it doesn't work. For other field types it is working fine.
May be I'm doing something wrong, but I don't see it. It would be great if anybody is able to help.
This is the command I'm trying to run: (I used CreatedDate for my tests)
Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObje
ct -Property CreatedDate -Value [datetime]"06/08/2011 14:08"
Set-SCSMObject : String was not recognized as a valid DateTime.
At line:1 char:104
+ Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObject <<<< -Proper
ty CreatedDate -Value [datetime]"06/08/2011 14:08"
+ CategoryInfo : ObjectNotFound: ([datetime]06/08/2011 14:08:String) [Set-SCSMObject], FormatException
+ FullyQualifiedErrorId : Could not assign date ,SMLets.SetSMObjectCommand
Thank you
Oliver
Hello,
You must temporary change locale in your script.
In begin of script you must change locale in "En-Us":
$OldCulture = [System.Threading.Thread]::CurrentThread.CurrentCulture
$OldUICulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
$culture = New-Object System.Globalization.CultureInfo("en-US")
[System.Threading.Thread]::CurrentThread.CurrentCulture = $culture
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
And return locale after script body:
[System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCulture
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldUICulture
This has solved my issue. You have no idea how much this has made my day.
I'm in Australia trying to update/create/close incidents to a canadian server. Nothing else has worked so far, except this. The rest of the support/forums on this issue have been crap to say the least.
It would be nice if MS mainlined the SMLets into SCSM and start actually making their product useful
Unable to set CLASS_PATH for j2ee.jar
Hello all,
I have a peculiar problem. I have included the j2ee.jar path in my XP Home Edition environment variable, but javac is unable to get packages from there. I have echo-ed the CLASS_PATH in DOS command prompt and it reports the correct path of j2ee.jar. What's amazing is that when I type the full javac command with -classpath option (javac -classpath ____/j2ee.jar *.java) everything compiles well. I am lost here. Does someone here has a solution to this?
Thanks for your help in advance.
With XP, I had the same problem even if I had CLASSPATH. AFter lot of headbreaking I realized my J2EE_HOME and JAVA_HOME were part of user variables in the environment. But CLASSPATH I defined in the System variables and CLASSPATH was set with %J2EE_HOME%\lib\j2ee.jar which was the culprit. Once I moved the J2EE_HOME from user variables to system variables ..lo behold ..it was working and I did not have to substitue the j2ee.jar on the command line.
Unable to set parameters for "Act as Prox" in OBI11g
Hi Gurus,
following Mark Rittman's blog I was able to set parameters and I could use this feature in OBI10g.
However, in OBI 11g I was not able.
1. In the init block of Proxyblock I am not able to add SET_RUNAS to Execution Precedence
The Add button is inactive.
2. In the init block of Proxylevel I am not able to add Proxyblock to Execution Precedence .
Only the SET_RUNAS available.
What to do?
Any ideas and help are appreciated!
Thanks
Laszlo
Hi Laszlo,
Check this,
Re: Unable to select Connection pool when creating init block for current_month
Regards,
Dpka
Unable to set max log file size to unlimited
Hi all,
Hoping someone can give me an explanation of an oddity I've had. I have a series of fairly large databases. I wanted the make the database log files 8GB in size with 8GB growth increments with
unlimited maximum file size. So, I wrote the script below. It seems to have worked but the database max size doesn't show as unlimited, it shows as 2,097,152MB and cannot be set to unlimited using a script or in SSMS by clicking on the unlimited radio button.
2TB is effectively unlimited anyway but why show that rather than actually setting it to unlimited?
USE
[master]
GO
--- Note: this only works for SIMPLE RECOVERY MODE. FOR FULL / BULK RECOVERY modes you need to backup the transaction log instead of a CHECKPOINT.
DECLARE
@debug
varchar(1)
SET @debug =
'Y'
DECLARE
@database
varchar(255)
DECLARE
@logicalname
varchar(255)
DECLARE
@command
varchar(8000)
DECLARE
database_cursor
CURSOR LOCAL
FAST_FORWARD FOR
select
DB_NAME(database_id)
as DatabaseName
name
as LogicalName
from
master.sys.master_files
where
file_id
= 2
AND type_desc
= 'LOG'
AND physical_name
LIKE '%_log.ldf'
AND
DB_NAME(database_id)
NOT IN('master','model','msdb','tempdb')
OPEN
database_cursor
FETCH
NEXT FROM database_cursor
into @database,@logicalname
WHILE
@@FETCH_STATUS
= 0
BEGIN
SET
@command
= '
USE ['
+ @database
+ ']
CHECKPOINT
DBCC SHRINKFILE('''
+ @logicalname
+ ''', TRUNCATEONLY)
IF
(@debug='Y')
BEGIN
PRINT
@command
END
exec
(@command)
SET
@command
= '
USE master
ALTER DATABASE ['
+ @database
+ ']
MODIFY FILE
( NAME = '''
+ @logicalname
+ '''
, SIZE = 8000MB
ALTER DATABASE ['
+ @database
+ ']
MODIFY FILE
( NAME = '''
+ @logicalname
+ '''
, MAXSIZE = UNLIMITED
, FILEGROWTH = 8000MB
IF
(@debug='Y')
BEGIN
PRINT
@command
END
exec
(@command)
FETCH
NEXT FROM database_cursor
INTO @database,@logicalname
END
CLOSE
database_cursor
DEALLOCATE
database_cursor
Hi,
http://technet.microsoft.com/en-us/library/ms143432.aspx
File size (data)
16 terabytes
16 terabytes
File size (log)
2 terabytes
2 terabytes
Thanks, Andrew
My blog...
Unable to set status for subscreen
Dear Experts,
In my subscreen, I want to set the fct code for enter.
I am not able to set the status so that i can provide the fct code under the standard function keys.
In my subscreen I have a list of input screen fields, when i enter the first input field and press enter i want to move to the next field.
Please provide me an alternative so that i can set the status and write the relavant code using set/get cursors.
Thanks and Regards,
Kawish.
hi Kawish
You only need set a status for main screen at the output event. In this status, you need assign a function code to 'Function Keys'-> this first function button, it`s 'Enter'. you can debug to see it.
the PAI event of subscreen also will response this function code, then you can control your cursor in PBO, blow code is module of subscreen:
module status_0101 output.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
set cursor field 'LGORT'.
if lv_flag eq 'X'.
set cursor field 'WERKS'.
endif.
endmodule. " STATUS_0101 OUTPUT
*& Module USER_COMMAND_0101 INPUT
* text
module user_command_0101 input.
case sy-ucomm.
when '&ENTER'.
lv_flag = 'X'.
endcase.
endmodule. " USER_COMMAND_0101 INPUT
hope can help you.
regards,
Archer
Unable to set ringtone for each contact
After upgrade to the 5.1.1 iOS I was not able to set individual ringtone to each of contact anymore.
All my contacts are using the same default ringtone when ever anyone calls.
When I go into contact and hit edit I can see the different ringtone already setup for each contact and when I click it I can hear it play just fine. Then I exit and went back to main screen and try to call the phone and it still using the default ringtone.
Any idea how did this happen or how to fix it? I am trying not to reset the phone.
Thanks
When you call your phone from another, is your iPhone picking up the caller ID that is in your Contacts, or does the incoming call just have a number (or maybe "unavailable")?
Also, there should be no harm in Resetting your iPhone, that is not the same as Restoring it (even if you did Restore it, you could back it up first and re-load the backup as long as your Contacts and Camera Roll are backed up somewhere).
Unable to set permissions for archiving
Using G5 iMac, OS 10.4.11 with iDVD 6. I have followed the instructions 1 thru 3 in help for setting permissions to archive a dvd project without any problem. However the last instruction is "Click Apply to enclosed items". I can not find anywhere to do this. Any help will be greatly appreciated. Regards from Ireland.
You are right. There is no place to "click apply to enclosed items". Just ignore that instruction, as it seems to be unnecessary. You already set your permissions by doing steps 1-3.
Unable to set tooltip for item (sap.ui.core.Item)
sap.ui.core.Item does not have the property 'tooltip'. But it borrows 'tooltip' property and setTooltip( ), getTooltip( ) methods from sap.ui.core.Element.
Still, if I set the tooltip for item, it is not reflected. What might be wrong?
Consider the following piece of code for example:
var item = new sap.ui.core.Item({text:'Item'});
item.setTooltip('tooltip');
var oCollection = new sap.ui.ux3.Collection({ items: item
var oCollectionInspector = new sap.ui.ux3.CollectionInspector({
'fitParent' : false,
'collections' : [
new sap.ui.ux3.Collection({
'title' : 'My Accounts',
'items' : [ item]
oCollectionInspector.placeAt('content');
Tooltip is applied on the Item, but it seems Collection Inspector set its own tooltip for the Item. You can do something like this to set your own tooltip,
var item = new sap.ui.core.Item("myItem",{text:'Item'});
var oCollectionInspector = new sap.ui.ux3.CollectionInspector({
'fitParent' : false,
'collections' : [
new sap.ui.ux3.Collection({
'title' : 'My Accounts',
'items' : [ item]
oCollectionInspector.placeAt('content');
oCollectionInspector.onAfterRendering = function(){
sap.ui.ux3.CollectionInspector.prototype.onAfterRendering.apply(this,arguments);
$('#myItem').attr('title','My Tooltip');
Maybe you are looking for
-
Hi All, I have a requirement where about 1000 document numbers are to be used in the info package. I can wite an abap routine at the info package. Since there are many documents numbers, can I create an info object and load the numbers in it and use
-
File Handling (Check for existing file)
now my problems is that i need to have a code that upon a request checks for a file (in the home dir) and if the file exists reads the information and ouputs it. here is an example: check if file TEST.DATA exists? check approved TEST.DATA exists info
-
Problem with re parenting the selected component of a JTabbedDisplay
I have a number of JPanels in a JTabbedPane. I have a mouse listener on the JTabbedPane which displays a popup menu... one of the options on the menu is Dislpay Tab in Own Window. The action of the menu is basically ... Component c = jTabbedPane1.get
-
GRRR - MuVo won't play songs after it's removed from USB P
:robotmad:Just bought a Nomad MuVo for a X-mas gift for my daughter, and I can't get the songs to play after I've removed the player from the USB Port. WMA songs seem to download to player OK, as I can play them from the MuVo through the jukebox soft
-
Hi guys I did use this code to read the html file and it work fine but when i try to add the restriction to it (indexOf) i do get problem as it gives "String index out of range: -1" error i am trying to return the string between any ">" and "<" in th