Why uiEngine inputscreen is null
Have not touch Java for blackberry for a while,
I'm entercounting a new problem. Please help me solve this problem...
What I do is:
Once the user press a button on the screen, it will start a thread to crawl content, then push the new screen on top.
However, once a new screen is pushed, it is said
Focus - target lost, prev = null, input = null
so I debug him: what I have found is:
When my new screen is pushed in stack, uiEngine, inputscreen become zero.
It is very wired, I used
_APP.invokerLater (new Runnable() {}
}) to update my screen.
This will cause the uiEngine.inputscreen is null?
Thank you
The f
The information you gave are not really sufficient to analyze your problem.
The code that you use with UiEngine is usually necessary only when you run a background application (ui less), i.e. using the Application class. You run a foreground app using the UiApplication class. So I suspect that you use wrong a mechanism along the way.
Putting this another way, if your code is running in a Thread that was started by a UiApplication, you can revisit the event using
UiApplication.getUiApplication (), invokeLater (...).
You shouldn't have to use UiEngine.
Tags: BlackBerry Developers
Similar Questions
-
Why is user_indexes.blevel NULL?
Hello
I created an index of function based as follows:
CREATE INDEX < INDEX NAME > < TABLE > (lower (< Column1 >), less THAN (< Column2 >)) TABLESPACE < TABLESPACE >;
I wonder now why this index has NULL values in the columns blevel, leaf_blocks, distinct_keys in the table user_indexes. Other indexes on the same table have values there.
When running
ANALYZE the INDEX < INDEX NAME > VALIDATE the STRUCTURE;
SELECT * from index_stats;
the same index height = 3, distinct_keys ~ 700000 and lf_blks ~ 3500.
The Oracle documentation explains the value 0 in blevel, but not the NULL value. I have found no documentation about it. Can you explain this to me?
Thank you and best regards.Gasparotto N wrote:
834749 wrote:
...
The version I use is 9.2.0.6.0. Create the index with CALCULATING STATISTICS solved the problem.Just also and you do knowledge, adding the CALCULATE STATISTICS to the CREATE INDEX statement also updates the statistics for the underlying table.
I tested it 9.2.0.6 to 9.2.0.8 earlier:
http://Gasparotto.blogspot.com/2009/03/create-index-with-compute-statistics.htmlNicolas,
Thank you for this - interesting and potentially nasty.
I just ran some quick tests. It seems that the approach is: If the number of entries in the index exceeds the known current number of rows in the table, then update the table num_rows with index num_rows and blocks of the table with the table hghwater brand. The raison d'etre for this probably refers to an abnormality of the optimizer I cam across once, which may occur if the number of rows in an index seems to exceed the number of rows in the table when Oracle is the calculation of the selectivity of the table with indexed access. (My solution to the problem was to run a script that has copied the num_rows user_indexes to num_rows on user_tables whenever the index statistics are created and the value of the table was less than the value of the index!). I could have written a blog post about it.
Inerestingly, this does not occur when the index is an index based on a function; and, of course, this does not introduce the overhead of a search to generate statistics on the table - so there is no overhead I/O.
Just to make things clear to the OP - the detail described by Nicolas is on the table-level stats - it does not cover the column-level stats, which are empty after the creation of a function-based index.
Concerning
Jonathan Lewis
http://jonathanlewis.WordPress.com
http://www.jlcomp.demon.co.UKA general reminder on "Forum label / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
If you mark never questions answers people decide later that it isn't worth trying to answer you because they never know if yes or no, their response has been of no use, or if you even bothered to read it.
It is also important mark responses that you thought useful - again once it leaves other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching on the same issue, also means that when you mark a bad or wrong the useful answer someone can be invited to tell you (and the rest of the forum) which is so bad or wrong on the answer that you found it useful.
-
Why the username is null V$ session?
Hello
I'm working on oracle XE installed on XP. Connected to the DB using SQL * more. When I ask what follows.
Select the user name from V$ session;
Output:
Username
SYS
15 selected lines.
Why it shows the values null for the username. I opened one time SQL * more. No other session or connection to the DB.
can someone please suggest?Username is null for background processes http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref106
Edited by: P. Forstmann on 16 September. 2010 19:05
-
Why are there several "null" on my site of Muse?
When we use the test pingdom speed Web site (http://tools.pingdom.com/fpt/), 1-3 "null" see as a file request.
on the site. When you click it, you'll see this error:
Not found
The requested URL /null was not found on this server.
Additionally, a 404 not found error was encountered while trying to use an ErrorDocument directive to manage demand.
What is the cause to appear, and what that means? How can solve us this problem there is no more NULL values on the site?
Thank you
Theresa
This can be ignored. Please see Re: Firebug shows always GET NULL - 404 not found> for explanation.
-
Why the cfreturn is null?
I have mandated a call to a cfc which is a ftp get into a local temporary file. Then he reads the file and is supposed to return the content of the file as a string cfreturn. I know the code works, when I remove CFC in a file usually cfm, it does exactly what is expected
However, in my proxy callBackHandler, the return of cfc is null.
< cfajaxproxy cfc = "ftpfunc" jsclassname = "jsobj" / >
function getFTP() {}
...
var instance = new jsobj();
instance.setCallbackHandler (ftpSuccess);
instance.setErrorHandler (ftpError);
instance.setReturnFormat ('plain');
instance.getJCL (lpar, remoteFile, userName, password);
}
function ftpSuccess (ftpReturn)
{
If (ftpReturn.length == 0)
Here thrown error: "ftpReturn is Null".
{
Alert ("your FTP get returned an empty file");
}
}
ion says:
Can I prevent it from executing onLoad?
Hi ion,
You're welcome and Yes. Can you please try this:
Application.CFC
----------------------
component {myIdName = "TestCFAjaxproxyCFC" ;}
Text.txt
----------------------
my text
MyCFC.cfc
----------------------
component {remote string function myCFCFunction (string required myArg) {return fileRead(expandPath("./text.txt")) & '-' & ARGUMENTS.myArg ;}}}}
index.cfm
----------------------
function myCallbackHandler(result) {
alert(result);
}
function myErrorHandler(statusCode, statusMsg) {
alert('Status: ' + statusCode + ', ' + statusMsg);
}
function myJSFunction() {
var instance = new myCFCJSObj();
instance.setCallbackHandler(myCallbackHandler);
instance.setErrorHandler(myErrorHandler);
instance.setReturnFormat('plain');
instance.myCFCFunction(document.getElementById("myfield").value);
}
//myJSFunction();
By clicking 'submit' should attract the attention of "my text-foobar.
Thank you
-Aaron
-
I created a table and partitioned on the date of the entry and added a local partitioned index.
Now, I use a query to extract "num_rows" of user_tab_partitions to know the number of rows in each partition.
Getting this value as null num_rows, wonder why?
After looking to explain the Plan after interrogation ("select * from my_table1 where entry_date = 1 January 2015" ;))
to find out if she actually partitioned table and its data in different partitions, I interpreted in effect because the query plan had a line like Partition_range (Single).
My Question is:
(a) is actually partitioned data (have I misinterpreted the Explain plan)
(b) why is the num_rows null column in the query (Pasted below)
(c) also in addition what difference it would have been if I had created a Global Index instead of the Local Index in my case?
The following code Snippet:
----------------------------------------------------------------------------------------------
create the table my_table1
(
roll_no number constraint my_table1_pk primary key,
date of entry_date
)
partition of range (entry_date)
(
PARTITION data_p1 VALUES LESS THAN (TO_DATE (December 31, 2014 ',' DD-MM-YYYY ""));
PARTITION data_p2 VALUES LESS THAN (MAXVALUE)
);
create an index only my_table1_indx on my_table1 (entry_date) local;----------------------------------------------------------------------------------------------
I now insert two lines:
insert into my_table1 values (1, to_date ('01-01-2015', ' dd-mm-yyyy'));
insert into my_table1 values (2, to_date('01-02-2015','dd-mm-yyyy'));----------------------------------------------------------------------------------------------
These have been inserted successfully, now using the query below shows num_rows column as null. I don't know why?
SELECT table_name, num_rows, high_value, nom_partition
Of user_tab_partitions
where table_name = 'MY_TABLE1 '.
ORDER BY table_name, nom_partition;----------------------------------------------------------------------------------------------
(a) is actually partitioned data (have I misinterpreted the Explain plan)
Yes, it is partitioned. You can query this particular partition SELECT * FROM my_table1 (data_p1) PARTITION to check that.
(b) why is the num_rows null column in the query (Pasted below)
As already mentioned that you have not collected statistics.
(c) also in addition what difference it would have been if I had created a Global Index instead of the Local Index in my case?
In fact, you have created two types of indexes without knowing (can be)! One is not partitioned (although this column is not partition key) and another is partitioned (LOCAL). They are MY_TABLE1_PK and MY_TABLE1_INDX. You can check that USER_INDEXES.
You can read this article to get an early jump on the partitioning of decision. Partition: Partition decisions
-
Why the JTable getTableCellRendererComponent parameter can be null?
Hello
I have a class that implements TableCellRenderer.
TableCellRender interface has a single method:
and this method accepts JTable as null - http://download.oracle.com/javase/1.3/docs/api/javax/swing/table/TableCellRenderer.html.getTableCellRendererComponentender (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
Why can we get null JTable?
When I run my program in the getTableCellRendererComponentender method, I run
But this code is failed because the table is null.this.size = table.getColumnModel().getColumn(column).getWidth();
The table is defined in fact but I do not know why is not not passing as a parameter to getTableCellRendererComponentender.
Thank you.In case it wasn't clear enough: what happens is that Swing tent paint the header that you have already removed the table (replacing it with a new one). This is the table of this header removed which is null parameter.
The new header is not added to a hierarchy of visible components, so it is not rendered.
DB
-
Eception TypeError: Cannot read property 'edge_authoring_mode' null
I get the following error message and I don't know how to correct:
Eception TypeError: Cannot read property 'edge_authoring_mode' null
I searched for 'edge_authoring_mode ', but have not been able to find anything. Can someone point me in the right direction and I would like to know why this would be null?
Hi, I just wanted to mention that this error has been be bound to use the Composition of municipalities of edge charger. Apparently, my variable "thestage" (which was used in the scene that you noted above) was occasionally (based on load time) still reference the old stadium which had been replaced by using the charger of the Composition. Thank you for taking the time to try to help him with this.
-
module_data - field = 'attributes', returning null
No idea why this appears 'attributes': null, what other data is returned. Attributes have been added.
Is this a bug or am I missing something.
{module_data resource = 'products' version = 'v3' fields = "id, name, smallImage, attributes, custom1, canonicalUrl" Skip = "0" limit = "10" order = 'id' where = "\ {"createDate": {"$lt"\:'2015-10-01T23:00:00'\}} \" collection = "firstData"} "}
'firstData': {}
"ModuleName": "data."
'moduleDescriptor': {}
'templatePath': null,
«'settings': ' resources =------"products\", version =------"v3\", fields =------'id, name, smallImage, attributes, custom1, cano nicalUrl\', skip =------'0', limit =------"10", order =------"id\", where =------"------{"createDate":------{'$lt':'2015 - 10-01 T 23: 00:00'------}------} \",collection=\"firstData\"»»
"apiEndpoint": "/ api/v3/data."
"objectType":-1,.
'objectId':-1.
'adminUrl ':
},
"items":]
{
"id": 9570356,
"name': 'Protection earmuffs."
"smallImage": "/ Images/store/KCP9VOMBE3/ProtectiveEarmuff_Black_01_v1.jpg"
"attributes ': null,
"custom1:" ","
"canonicalUrl": "/ store/boys/protection-hearing protection.
},
{
"id": 9818505,
"name': 'Mini sleeves earmuffs."
"smallImage": "/ Images/store/S85YLGVVT4/MiniMuffsEarmuff_Lilac_01_v1.jpg"
'attributes': null,
"custom1:" ","
"canonicalUrl": "/ store/boys/resulting-earmuffs.
}
At soon Daniel
Hello
The attribute 'attributes' is obsolete and has the value null , but with the arrival of the attributes product | Developers of enterprise catalyst
You can access the data you need.
I'll update the documentation and push it live soon about this deprecated attribute.
Thank you
Mihai
-
Please help: why my variables are not displayed in the subtemplate?
Hi all
We use BEEP 11.1.1.6 (build 5.12.110)
We have several models of rtf and some with templates.
In this case, I declared a variable var1 in the upper part of the main model.
I also said variable var2 in the subtemplate.
In the subtemplate, I added this command:
var2 always displays normally.var1:<?xdoxslt:get_variable($_XDOCTX, 'var1')?> var2:<?xdoxslt:get_variable($_XDOCTX, 'var2')?>
var1 is always null (RC = NaN when I pass it as a parameter to the submodel)
The value appears correctly the second main folder of XML data.
Is there something wrong in my code?
Is there a reason why the variable is NULL in the first record of the main loop?
Please find attached an example with different variables and params:
https://FTS.Capgemini.com/pubpwd/66814124735400/XML_Publisher_test.zip link is valid until 2013-05-13 13:00 UTC (access with local public password)
Username: ijtzggnrz
Password: uP8YrdRPKc
I hope my explanation is clear.
Thanks in advance,
OlivierLook at the response of amri in Obtaining Variable in footer of RTF
>
Variables when declared in the body section are not available in the scope of the header/footer.
So you can't put in the body section and see the same thing in the header/footer.I think you want to have the header/footer conditional for some sets of pages. If you can explain your condition here we offer if this is possible.
>and the response of the Vetsrini in the use of variables within a foot of the RTF template
>
Footer is in a different context,If you will not be able to use the variable declared in the page inside the footer,
try to create a sample footer variable is assign a value and displays
you will be able to display that correctly... -
Get "null" when I call getCurrentRow
Hello
I have a request from 10g to Oracle ADF and I'm having a problem. I'm in a servlet get an Application Module and executing a ViewObject:
So far, everything works fine. After this code, the servlet insert a record into a table (make a commit with the module of the application) and then try to recall the same front displayed view data:BindingContext context = (BindingContext) session.getAttribute("data"); DCDataControl dc = context.findDataControl(MvcDefs.DATA_CONTROL_PEOPLE); InfoImpl service = (InfoImpl) dc.getDataProvider(); ViewObjectImpl dataView = service.getDataView(); dataView.setNamedWhereClauseParam("documentCode", documentCode); dataView.executeQuery(); Row data= dataView.next(); String dataColumn= (String) data.getAttribute("dataColumn");
But I don't know why "dataView.getCurrentRow ()"; return null, if I get a NullPointerException when running "data.getAttribute".ViewObjectImpl dataView = service.getDataView(); Row data= dataView.getCurrentRow(); String dataColumn= (String) data.getAttribute("dataColumn");
All the code shown in this post is run in the same call to the servlet.
Why I am not getting null in the call "data.getCurrentRow"?
Thank youThe problem is that you make a commit after calling next(). This will reset the iterator and if no row is selected a current line.
You will need to run the query again (not sure if you get the new line otherwise) and do the navigation to get what you want, or go with Suresh advise.Timo
-
Exception of null pointer so that he was trying to get the view inside the AM object
Hi all
I use jdev 11.1.2.2
I try to create the session of the application
but the view object is thrown null pointer exception even if the view object is available within the impl classprotected void prepareSession(Session session) { LOGGER.log(ADFLogger.TRACE, "Preparing the user session..."); super.prepareSession(session); String emailId = ADFContext.getCurrent().getSecurityContext().getUserName(); LOGGER.log(ADFLogger.TRACE, "Setting the user-context - app_user_lang on the database...");*/ ViewObjectImpl UserAuthentionEVO = this.getUserAuthenticationEVO(); UserAuthentionEVO.setNamedWhereClauseParam("The_EmailId", emailId);//Throws null pointer exception UserAuthentionEVO.executeQuery(); Row row= UserAuthentionEVO.first(); if (row != null) { getSession().getUserData().put("USER_ID", row.getAttribute("UserId")); getSession().getUserData().put("ROLE_ID" , row.getAttribute("RoleId")); }
this.getUserAuthenticationEVO () returns nullpublic ViewObjectImpl getUserAuthenticationEVO() { return (ViewObjectImpl)findViewObject("UserAuthenticationEVO"); }
Why is what is throwing the error?
No idea why its pointing to null?
Thanks in advance,
Rakesh
Published by: Rakesh on July 4, 2012 07:22Because of the hierarachy?
Your test case shows apparently so.
What I am doing wrong?
I wouldn't say that you're doing something wrong, just that ADF BC apparently does not support your use case. Use straight JDBC (even to call a stored procedure if you want to instead of using the SELECT statement) and problem solved.
John
-
UNDO_SQL in FLASHBACK_TRANSACTION_QUERY is null
Hello
does anyone know why FLASHBACK_TRANSACTION_QUERY give me null values in UNDO_SQL and the OPERATION has the value "UNKNOWN"? I read in Oracle Database 11g Administration Expert that: "If you see the UNKNOWN value in the column of the OPERATION, it means that there is not enough information to cancel your undo tablespace to correctly identify the exact type of operation of the transaction.» The transaction is still cease at the time of executing the query on FLASHBACK_TRANSACTION_QUERY, so it should available all the necessary CANCELLATION.
The database is a 2 node RAC on AIX 11.2.0.1.
Any ideas?
Thanks in advance,
SwearNo, it's not that it wasn't enough to undo, but it was not connected because of additional logging off. It is a change that is starting from 11 g. To ensure that completel information are saved in the FLASHBACK_TRANSACTION_QUERY view, you must activate it. You can do this by,
alter database add supplemental log data;
HTH
Aman... -
getAttribute() method of a view object returns NULL
Hello
I am currently implementing PPR in one of my OFA page and I took the following approach.
I stated the Boolean attribute transitional follwing in the VO() outside of the existing attribute 'sense '.
1 MfgEnttity
2 MfgAcct
3 MfgSubAcct
4 MfgCc
5 MfgProj
In the page I used these attributes in the property made in the form "${oa." XXR2RMfgproSegVO.MfgSubAcct}' like that.
Now, in the central, I wrote the following code.
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
am.invokeMethod ("initializeXXR2RMfgproSegVO");
}
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
Event string = pageContext.getParameter (EVENT_PARAM);
Source of the string = pageContext.getParameter (SOURCE_PARAM);
Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
am.invokeMethod ("handleSegmentChangeEvent");
}
}
And the AM code is as follows:
Public Sub initializeXXR2RMfgproSegVO()
{
OAViewObject vo = getXXR2RMfgproSegVO();
If (!) VO.isPreparedForExecution ())
vo.executeQuery ();
Line = vo.createRow ();
vo.insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
}
Public Sub handleSegmentChangeEvent()
{
PVO OAViewObject = (OAViewObject) findViewObject ("XXR2RMfgproSegVO");
OARow hdrRow = (OARow) pVO.getCurrentRow ();
String status = (String) hdrRow.getAttribute ("Meaning").
System.out.println ("poRow" + hdrRow.toString ());
System.out.println ("value of the State is" + status);
If ("Entity". Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.TRUE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ("Account". Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.TRUE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ("Subaccount". Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.TRUE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ("cost Center".equals (status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.TRUE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
} else
If ('Project'. Equals (Status))
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.TRUE);
}
on the other
{
hdrRow.setAttribute ("MfgEnttity", Boolean.FALSE);
hdrRow.setAttribute ("MfgAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgSubAcct", Boolean.FALSE);
hdrRow.setAttribute ("MfgCc", Boolean.FALSE);
hdrRow.setAttribute ("MfgProj", Boolean.FALSE);
}
}
}
Now when I change in the value of the attribute "Meaning" page that he can always get into the else part, which is where all the attributes are 'False'.
The two System.out.Println statements return the following values.
03/10/22 15:41:08 poRow xxr2r.oracle.apps.gl.coam.poplist.server.XXR2RMfgproSegVORowImpl@3
03/10/22 15:41:08 state value is null
Can you please why this 'status' returns NULL and how I can get the current selected line in the page?
Thank you
LucileHello
you set the attributes of PVO, based on a condition, your old code is just the question is from where you can get the status, you may get this page, but you must pass this value to AM.
thanx
Pratap -
ALTER Table Add column not null, no default
I want to add two columns in a table with not null, and the default value 0 for two columns
Can I write everything in a single statement or do I have to divide the declaration
I tried, but didn't work
ALTER table DWSODS01. DWT00301_ORD_DTL_OMS add)
COMB_ORD_FLG NUMBER (5.0) default null, 0
COMB_ORD_NO NUMBER (12.0)
by default, 0 not null);
How can I change the code?user10390682 wrote:
OK, so if it is NOT NULL, while there should be a value.Yes.
So, when I set these two columns as NOT NULL will only future data must be NON NULL.
What of the old and present data if I defined as NOT NULLNOT NULL mean value of eachcolumn + line (current or future) _ must not be null. That's why always adding NOT NULL column to a non-empty table fails - the column value for existing lines will be NULL which does NOT violate the constraint nullability. If you add the NON NULL column with a default value, the column will be added and all lines existing column value will be defined by specified default (0 in your case). As a result Oracle will be able to settle forced to null for this newly added column from the value of this column in all the existing lines will be not not null (0 in your case).
SY.
Maybe you are looking for
-
I had problems with Firefox 4.0 locked pretty much since I installed it. I have add a few Add-ons and all I can think to do is to remove them. I can't figure how to get rid of them.
-
I bought a R7000 now a week ago. My other router continues wobbly on me, could not take any charge for an amount of time and was generally an unhappy experience. Now to my problem with the R7000: I keep having random disconnects. Meanwhile, the inter
-
Pavilion dx6000: hp pavilion dx6000
Hello My screen cracked and I still love my flag so I need gto know how I can pay for it and the new battery?
-
I had to reinstall the OS on my PC vista home, but I lost my product key:
How can I get an another vista product key to replace the one I lost and get my PC up and running again?
-
How to find the frequency in the cureent network band to blackberry.
Hello How to find the frequency in the cureent network band to blackberry.