Trying to find an object actual class
i have an object "object" that might have been a boolean (simple boolean, not Boolean),
i want to find out if it is a boolean and if so get the value of it (true or false)
how do i do it?
806208 wrote:
yes that did the trick (i guess it wall Boolean)
anyway i know that the code sucks (its not mine!)
but i cant do anything about it because the entire program works like thatOooof. I predict many instanceofs in your future; and a lot of vomit.
and changing a fundamental thing like that will be almost impossible.Not necessarily, and it may be possible to tackle it piecemeal. Or write middleware. Or simply rewrite the whole darn thing. But whatever you decide, you need to do a proper analysis. Trying to shoehorn crappy code to make it work is not often the right way to go.
Winston
Similar Messages
-
I'm trying to find when I actually created an entry/event in my iCal.
I'm trying to find when I actually created an entry/event in my iCal.
So you previously turned on FIndMyiPod on the iPod in Settings>iCloud? That message sounds like you did not. Are you using the same Apple ID used in Settings>iCloud on the iPod?
- To find wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
- You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
- If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
- Change the passwords for all accounts used on the iPod and report to police
- There is no way to prevent someone from restoring the iPod (it erases it) using it.
- Apple will do nothing without a court order
Reporting a lost or stolen Apple product
- iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number -
PTSpy - trying to find an object in the Portal
Hello,
PTSpy is throwing this error:
-2147024891 - Current User does not have sufficient permission to object with id = 202
(full error at the end)
I looked above to the sql and ran the query - of course nothing is found:
Create query: '/* QUERY_USER_ACCESS:ANSI */ SELECT DISTINCT(b.ACCESSLEVEL) FROM PTOBJECTSECURITY b, PTVGroupMembership gm WHERE b.groupid = gm.groupid AND gm.userid=? AND b.classid=? AND b.objectid=? ORDER BY b.ACCESSLEVEL DESC'
setInt, index: 0, value: 4762.
setInt, index: 1, value: 47.
setInt, index: 2, value: 202.
How do I find the object that does not have permission it is looking for - in the Portal?
Thanks,
V
Display: The following error occured when trying to display the HTML:
com.plumtree.server.marshalers.PTException: -2147024891 - Error in function PTBaseObjectManager.Open (nObjectID == 202, bLockInitially == false): -2147024891 - Current User does not have sufficient permission to object with id = 202
com.plumtree.server.marshalers.PTException: -2147024891 - Error in function PTBaseObjectManager.Open (nObjectID == 202, bLockInitially == false): -2147024891 - Current User does not have sufficient permission to object with id = 202
at com.plumtree.openfoundation.util.XPException.GetInstance(String strErrorMsg, Exception e)
at com.plumtree.server.impl.core.PTBaseObjectManager.Open(Int32 nObjectID, Boolean bLockInitially)
at com.plumtree.portalpages.browsing.directory.DirModel.GetWebService(Int32 _nDataSourceID)
at com.plumtree.portalpages.browsing.directory.DirModel.SupportsUpload(Int32 _nDataSourceID)
at com.plumtree.portalpages.browsing.directory.documentsubmitsimple.DirCardSubmitSimpleView.DisplayJavascript()
at com.plumtree.portalpages.browsing.directory.documentsubmitsimple.DirCardSubmitSimpleDP.DisplayJavaScriptFromChild()
at com.plumtree.uiinfrastructure.form.AFormDP.Display(IWebData pageData)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Redirect myRedirect, RequestData tempData)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(IXPRequest request, IXPResponse response, ISessionManager session, IApplication application)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(IXPRequest request, IXPResponse response, ISessionManager session, IApplication application)
at com.plumtree.uiinfrastructure.web.XPPage.Service(HttpRequest httpRequest, HttpResponse httpResponse, HttpSessionState httpSession, HttpApplicationState httpApplication) in e:\buildroot\Release\httpmemorymanagement\6.1.x\dotNET\src\com\plumtree\uiinfrastructure\web\XPPage.cs:line 82
at com.plumtree.portaluiinfrastructure.activityspace.PlumHandler.ProcessRequest(HttpContext context) in e:\buildroot\Release\portalui\6.1.x\ptwebui\portal\dotnet\prod\src\web\PlumHandler.cs:line 37
at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.ResumeSteps(Exception error)
at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
at System.Web.HttpRuntime.ProcessRequest(HttpWorkerRequest wr)
at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)
Caused by: com.plumtree.server.marshalers.PTException: -2147024891 - Current User does not have sufficient permission to object with id = 202
at com.plumtree.server.impl.core.PTBase.ThrowException(String message, Int32 errorCode)
at com.plumtree.server.impl.core.PTBaseObjectManager.VerifyObjectAccess(Int32 minAccessLevel, Int32 lObjectID)
... 18 moreHey Vivek, I couldn't agree with you more. It is definitely a hassle to try to find the broken object in statements like "Current User does not have sufficient permission to object with id = 202"
I created a ticket with Plumtree about this 2 years ago and they informed me that because object IDs are not unique and have to be used in conjunction with a class ID that they can't perform a reliable search.
Instead you must test each class ID and match it against the object ID to find your problem.
Its a bit labor intense but there are only about 15 different class ID's to run through.
I posted a list of our ID's in our portal team collab project and each time this situation comes up we just scan through the list using a URL -
Finding out the actual Class of an Object
I have an AdvancedDataGrid (ADG) where the top level items
are instances of my custom valueObject Class "State". The second
level items are instances of another custom valueObject Class -
"City". When I select an item in the ADG, I want to know which
Class each item is - "State" or "City". Is there some way to find
this out? I'm not looking for how to capture the event, I'm wanting
to find out if there is some function or utility for finding out
the Class of an Object.
FYI, when I capture the event, and pop an Alert with the
following code...
Alert.show(item.constructor.toString());
...I see either "[class State]" or "[class City]". So, I feel
like I'm close...
Thanks.This link might be of interest:
http://onrails.org/articles/2007/02/24/flex-introspection-api-describetype-value-xml
http://ajaxandbeyond.blogspot.com/2008/04/object-introspection-in-flex.html
http://livedocs.adobe.com/flex/2/docs/00000460.html#225061
In generally, you might wish to goole for
flex introspection -
Trying to find ALL objects that point to one column...
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
I have multiple schemas, all which have tons of objects that point to one column of one table.
I tried to look at v$sqltext, and v$sqlarea, but it doesn't seem to show as expected.
Is there a view that I can look at that will show me all the objects that relate to one column?
my situation. Had to change the data structure of this one column. Changed the default value from a Y to an L. I have packages, functions, triggers...etc... that deal with this one column. I need to ensure that I go through EACH one and edit them to reflect the change to the table column. And again, this spans multiple schemas that point back to it.
I can't overlook any objects. Is there any one place to find this?
Thanks.Use view - DBA_DEPENDENCIES
select * from dba_dependencies
where type= 'TABLE'
and name = '<TABLE_NAME>';Another crude way...
select * from all_source
where lower(text) like lower('%<TABLE_COLUMN_NAME>%')
group by owner,name,type;But, this 'll not search in Views & MView queries.
HTH
Ranit B.
Edited by: ranit B on Oct 15, 2012 11:09 PM
-- added -
Finding an Object named (thisStr)???
Hi,
Im trying to find an object (specifically a jscrollpane) with the name of a string variable.... for example...
String[] array = {"myStr","another","andanother"};
JComboBox fileList = new JComboBox(array);
fileList.addActionListener(this);
JScrollPane myStr = new JScrollPane();
JScrollPane another= new JScrollPane();
JScrollPane andanother= new JScrollPane();
public void actionPerformed(ActionEvent evt) {
if (evt.getSource() == fileList) {
JComboBox cb = (JComboBox)evt.getSource();
JScrollPane selItem = (JScrollPane)cb.getSelectedItem(); //won't cast here
// sets other scrollpanes to not visible
for (int j=0;j<3;j++){
JTable desItem = (JTable)cb.getItemAt(j); desItem.setVisible(false);
//makes selected scrollpane visible
showTable(selItem);
protected void showTable(JScrollPane selItem){
selItem.setVisible(true);
}I simply want to select a scrollpane with the combobox and make that one visible, and the other not visible... I currently have the list inside the combobox with the same names as the actual scrollpanes....
How do I get it to work?? Now it gives me some cast error?I am unsure what you are doing exactly but I can only hope that the line
where you attempt to cast a JTable as something which inside your
combo box is just a silly error and not a true reflection of your GUI. -
How to find an object from its ID in Integration Repository
When trying to import a package, I get an error
"Internal error when importing object 553afdf1-c83d-11d9-871d-0007e9102256....
I have tried to find the object using the Object->Find... menu item, but selecting Object ID in the attributes field and entering this string does not return any hits.
Am I doing this right, or is there another way to find the object?
Kind Regards,
Tony.I am using PI7.0, If i get your question very well: I think there is no option to get an object with Id, all options are:
Name,Changed on, Changed by,... etc.
Pls check again.
BR,
Alok -
Find/Change object size width
Hi guys,
So this is the problem:
I have over 900 pages long catalog and I made a little changes to a textframe options and other object styles, but bottomline is that now I have to change all the textframes width to 62 mm (its now 61 mm). I have tried the Find/Change "Object" options, but I just can't find the right way to do it. Is it even possible to do it with the Find/Change Object? I have to change over 6000 textframes manually if this dosen't work :/
Do I have to do this with Grep scripting and how is that possbile if I have to do it with it?
Thanks beforehand if you reply to this problem!Ha!
I found the solution(ish), basically it's possible to change object dimensions with the "Find/Change Object". Thanks Bart Van de Wiele for the "Columns Fixed width" tip.
."Find Object Format" -> What kind of "Object style" you are looking for and then put "Text Frame Options" -> Width (exp. 55 mm)
"Change Object Format" -> go to "Text Frame General Options" -> "Columns: Fixed width" -> width (exp. 56 mm, I have 3 mm inset spacing left&right so 56 + 6 is 62 mm).
Change the desired textframes, BUT THEN you have this kind of problem where you can not change the textframes width sizes because they are "fixed sized".
Click one of the changed textframes and go to "Style options" where you get that "+" -sign. Click in the options "Clear overrides".
Now you have changed the all desired textframes and you can change the width too. -
I'm trying to find the plugin for camera raw, but all I can find is the page with the cameras that are supported. But I don't find how to find and install the actual plugin. The end name is ARW, and all I need is to find WHERE I can download it. Thanks.
cr is installed by updating your app. use help>update, or update manually
pre cc updates: http://www.adobe.com/downloads/updates/
cc updates: http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
cc 2104 updates: http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html -
Trying to find action class that acts behind the search button in a jsp
Hi all,
I am trying to change the Search Functionality of Standard B2B Web Shop. In B2B Web shop , if we click on Products tab on left hand side, we get a search box and if we search for a product, in standard system the search will return duplicates. If a product is assigned to more than one area in the catalog, it will show up on the results of the search more than one time.
But my requirement is that I have to filter out the duplicates and display the link for the first instance found. For that I figured out the jsp and it is b2b/organizer-content-product-search1.jsp and now I want to find out which action class it is calling. Does anyone know which action class is it calling?
Regards,
Jessica SamHi Jessica,
File b2b/organizer-content-product-search1.jsp call action="<isa:webappsURL name="b2b/nextquicksearch.do" />" you can find which class is calling in config.xml file. Below is the entry from config.xml file.
<action path="/b2b/nextquicksearch" input="/b2b/organizer-content-product-search1.jsp" type="com.sap.isa.isacore.action.QuickSearchAction" name="quickSearchForm" validate="true">
<forward name="success" path="/b2b/organizer-content-product-search1.jsp"/>
<forward name="failed" path="/b2b/organizer-content-product-search.jsp"/>
</action>
It is calling com.sap.isa.isacore.action.QuickSearchAction Action class. To get more idea and clear picture about how search is working in ISA please refer [Dev and Ext guide|https://websmp206.sap-ag.de/%7Esapdownload/011000358700000469462006E/SAP_ISA50_DevAndExtGuide.pdf]
Please Goto Page 101-Generic Search It will give you more detail about how search is working in ISA.
I hope this inofrmation will help you.
eCommerce Developer -
I have a new computer and I am trying to find a link to download photoshop elements premier 11 the link I was sent by the tech only shows what I need...what I need is an actual download button
This is actually the Photoshop forum. Premiere Elements forum is here
Premiere Elements
I assume you realise that 11 is not the current version, which is now up to 12
http://www.adobe.com/cfusion/tdrc/index.cfm?product=premiere_elements&loc=us
And if yes, that you had 11 installed on your last computer? Did that come on a disk or download? If disk, have you now lost that disk?
If yes, and you registered your software, log on to your Adobe account, and find My Orders (or similar). You may find the download link and your serial number there. -
I am trying to find a tool that gives coupling for each class
Hi,
I am trying to find a tool that gives coupling for each class and not each package. I already generated the coupling at package level with tools like pmd, classycle, jdepend and metrics. Please let me know of any other tool that would do coupling at class level.
Thank youwithout the space!
http://forum.java.sun.com/thread.jspa?threadID=633089&messageID=3666280#3666280 -
I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see the date. the sidebar no longer has the option for date. the most recent only shows the time.
If you only see the time then that would mean that you see an entry of the current day (today).
History items from past days should have the date as well in the Most Recent Visit column.
You should be able to see this changing if you open the last 7 days folder and scroll down. -
How to find objects and classes
hi
any notes or path on objects and classes on crm?Hi Kumara
I beleive your talking about the Classification system.
To get to this go here: SPRO->IMG->Cross-Application Components - -> Classification System - -> Classes - -> Maintain Object Keys
This will give a list of Tables which are currently set with Object Keys, you may need to add a new table and configure.
Next
To get to this go here: SPRO->IMG->Cross-Application Components - -> Classification System - -> Classes - -> Maintain Object Types and Class Types
Here you assign a Class Type to Link your Table from the previous step, this class new Class Type will be used with a New Class to created in the following steps.
Goto Transaction CT04 - Create Characteristics
Here you create effectively attributes of a Class (Fields)
Goto Transaction CL01 - Create New Class
or CL02 - Maintain Class
Create a new class linked to your Class Type from previous steps
On the Char.. Tab you can add the new Characteristics created in the previous step to your new Class.
Based on the Object Key from the first step, these new attributes shoulds all now link together. If the key is of type 'RAW' (Binary) it may not be possible to link correctly, therefore some ABAP maybe required to create the link, depending on your application.
Hope this helps.
<b>Reward with points if useful.</b>
Regards
Arden -
Keeps finding a "Object" not the real type.. I am really lost.. :D
The calls to other objects work fine, I have testing all of them.. but! when I compile I get a error about finding a "object" type and not a String type at
for(String blackStone : blackUnits.keySet())
if( getSetLib(blackStone) == 0 ) { removeSet.add(blackStone); }
} this is the whole class
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
public class Stat
private Token[][] board;
private int bSize;
private HashMap<String, HashSet> unitsWhite;
private HashMap<String, HashSet> unitsBlack;
double last;
public Stat(Token[][] goBoard, int size)
board = goBoard;
bSize = size;
unitsWhite = new HashMap< String , HashSet>();
unitsBlack = new HashMap< String , HashSet>();
last = bSize -1;
* Delimiter is /
public HashSet getLib(int x , int y)
HashSet liberties = new HashSet<String>();
//error catch
if(board[x][y] == null){return liberties;}
int tempX = x;
int tempY = y;
//error catch for out of rage if size ect..
for(int i = 0 , liby = y ,libx = x ; i <= 3; i++)
if(i == 0){libx = -1; liby = 0;}
if(i == 1){libx = 0; liby = -1;}
if(i == 2){libx = 1; liby = 0;}
if(i == 3){libx = 0; liby = 1;}
tempX = x+libx;
tempY = y+liby;
if(tempX >= 0 || tempY >= 0)
if( tempX <= last || tempY <= last )
if( (tempX < 0 || tempY < 0) || ( tempX >= last || tempY >= last ) )
tempX = 0;
tempY = 0;
else
if( board[tempX][tempY] == null) { liberties.add(tempX+"/"+tempY); }
return liberties;
public void getTer()
public void checkForCaptured()
Token black = null;
Token white = null;
HashMap blackUnits;
HashMap whiteUnits;
HashSet removeSet ;
removeSet = new HashSet<String>();
//look for a Token on the board and if you find one look for any dead Tokens
//looks for a Token
for(int x=0; x < bSize;x++)
{ for(int y=0 ; y < bSize ;y++)
{ if(board[x][y] != null)
if (black == null)if( board[x][y].getColor().equals("black") ) black = board[y][x];
if (white == null)if( board[x][y].getColor().equals("white") ) white = board[y][x];
System.out.println("this is black tokens color" +black.getColor());
//looks for a dead unit
if(black != null)
{ blackUnits = black.getUnits();
System.out.println("black :" +blackUnits.keySet().size() ) ;
for(String blackStone : blackUnits.keySet())
if( getSetLib(blackStone) == 0 ) { removeSet.add(blackStone); }
if(white != null)
{ whiteUnits = white.getUnits();
System.out.println(" white: "+whiteUnits.keySet().size() );
for( String whiteStone : whiteUnits.keySet() )
{ if( getSetLib(whiteStone) == 0 ) { removeSet.add(whiteStone); } }
board.removeUnitsSet(removeSet);
public int getSetLib(HashSet Units)
return 0;
}someone point me in the correct direction PLZ! I don't mind RTFM if you give me a FM and page/line to look at.
THANKS!
Message was edited by:
monji112000The compiler doesn't know that you're only putting Strings in as keys. HashMap takes references to Object as keys and hence returns references to Object in keySet(). Note, however, that the object itself is still what you put in there. But the compiler only has the declared return type of the method to look at.
// pre 1.5
for (Iterator iter = set.iterator(); iter.hasNext();) {
String key = (String)iter.next(); // cast Object to String. Only works if you actually put a String in
// do stuff with key
// 1.5, if you don't use generics
for (Object obj : set) {
String key = (String)obj;
// do stuff with key
// 1.5, with generics
Set<String> set = ...;
for (String key : set) {
// do stuff with key
}Since you have a Map, you'll have Map<String, SomeValueType>.
http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf
Maybe you are looking for
-
Inconsistancies in S_ALR_87013558 Report
Hi Guys, Please help me out sort out the following issue: I have a Project A; WBS Elements A-1, A-2, A-3 in the 2nd level, WBS Elements A-1-1, A-1-2, A-1-3, A-1-4 in the 3rd level. When I am executing the S_ALR_87013558 report for project I have a v
-
Hi, I had Firefox version 19.0, and it occurred an error which caused Firefox to crash. I followed the troubleshot steps, and started it up on Safe mode, and I got a message saying "The connection has timed out". I browsed the forums for a while for
-
I traveled abroad this summer right after I bought my computer. Before I left I could get perfect reception on my computer's wireless from anywhere in my house, and I could pick up other wireless at coffeeshops and such. Upon returning I've found I c
-
Hello I have just been given a new hd box by sky to replace the old sky+ box. In the instructions is says i can connect via hdmi cable if i have an hd ready tv, or skart lead if not. (It is not hd ready) However my old sky box connected with an aeria
-
Trying to migrate SQL Server 2000 to Oracle 10g.
Hi. I´m trying to migrate from Sql Server 2000 to Oracle 10g and I got some troubles. I have connected both databases with my Oracle Sql Server, after that I went to the Menu--> Migrate--> Fast Migration and then fill all the steps necesary. I can se