" ? extends Classifier " not assignable to Classifier
I am just trying to understand this
My method is like this
public List<? extends Classifier> getClassifiers(){
Now if I use the loop like this I get the error "Type mismatch: cannot convert from element type ? extends Classifier to Classifier"
for( Classifier c : getClassifiers()){
I was hoping that a subtype of Classifier is assignable to Classifier.
bounded wildcard is useful as an argument type so for example a method that processes List<Shape> can be passed a List<Rectangle>
-- quote -- from http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf
Any drawing will typically contain a number of shapes. Assuming that they are
represented as a list, it would be convenient to have a method in Canvas that draws
them all:public void drawAll(List<Shape> shapes) {
for (Shape s: shapes) {
s.draw(this);
}[i]Now, the type rules say that drawAll() can only be called on lists of exactly Shape:
it cannot, for instance, be called on a List<Circle>. That is unfortunate, since all
the method does is read shapes from the list, so it could just as well be called on a
List<Circle>. What we really want is for the method to accept a list of any kind of
shape:public void drawAll(List<? extends Shape> shapes) {
}[i]There is a small but very important difference here: we have replaced the type
List<Shape> with List<? extends Shape>. Now drawAll() will accept lists of
any subclass of Shape, so we can now call it on a List<Circle> if we want.
-- end quote --
But for a return value, I cannot see any benefit of using a bounded wildcard List.
But there is a problem, because you cannot do the assignment you are expecting. Here's why http://blogs.sun.com/roller/page/ahe/20040610
I would suggest making your method signature
public List<? extends Classifier> getClassifiers()
Similar Messages
-
SAP System is not assigned to the leading
Hi,
I am trying to configure JOB DOCUMENTATION in "Solution Manager / JSM", under tab "SYSTEMS" when assigning "Logical Components" on the bottom of this screen there is a table "Systems", when in this part trying to ativate "Monitoring" getting following error:
1. System is not assigned to the leading
Can someone pl. help to understand how to assign a system as "Leading:
2. Under tab "Contact Person" I am not able to assign "email, and Telephone**" fields under "communication" are gray, and cannot be modify.
Please help
sahmadHi
have you properly configured smsy and maintain the PRD etc roles in it ......pls chk this tutor
http://service.sap.com/~sapidb/011000358700001911452008E.sim
Pls check this notes and links
Note 1054005 - FAQ: Job Scheduling Management with SAP Solution Manager
Note 1117355 - Job Scheduling Management: Work Center
Note 1111310 - Job Scheduling Management: Extended Configuration
Links:-
Scheduling
/people/martin.lauer/blog/2008/01/03/job-scheduling-management-with-sap-solution-manager
Usage Tutorials (http://service.sap.com/rkt-solman)
Job Import
http://service.sap.com/~sapidb/011000358700001975402008E/index.htm
Job Request
http://service.sap.com/~sapidb/011000358700001975952008E/index.htm
Job Documentation
http://service.sap.com/~sapidb/011000358700000332842009E/index.htm
Job Documentation Templates
http://service.sap.com/~sapidb/011000358700001911082008E.sim
Job Scheduling
http://service.sap.com/~sapidb/011000358700001911452008E.sim
Job Monitoring
http://service.sap.com/~sapidb/011000358700001976052008E/index.htm
Work Center
http://service.sap.com/~sapidb/011000358700001975932008E/index.htm
http://service.sap.com/~sapidb/011000358700001911442008E.sim
Hope it helps
regards
Prakhar -
Conversion of value 'blank' to # (Not assigned)
Hi,
We have extended the DataSource 0CA_TS_IS_1 with the field ZZAWART att/abs type. The component type is AWART and domain is AWART. This domain has no Conversion routine.
We have created a filter on this field in the dtp from one DSO to another DSO. In this filter we would like to add the value # (not assigned). Our problem is that when this field has no value in the source system, it is not converted to #.
I changed the conversion routine in the DataSource in BW to ALPHA and also changed the format from internal to external but this did not solve the problem.
How can we get the blank value converted to #?
Thanks.
Best regards,
LindaHi Linda,
It is a bit strange that you dont have the posibility to filter by equal to blank.
Don't choose the value from the match code in DTP, try the following:
1.- Press on the arrow (Multiple selection).
2.- In the "Select Single Value" tab you will have 2 fields (a) Options pushbutton (b) Single Value.
3.- Click on the PushButton for the first row, ther you will have some option: (a) = Single Value; (b) >= Grather than or equal to; (c) <= Less than or Equal to; (d) > Greater than; (e) < Less than; (f) <> Not Equal to.
4.- Choose (a) = Single Value, and leave the Select Value column in blank.
Regards, Federico -
Extended but NOT polymorphic Entity Object ?
Hi,
We are trying to implement the OO features of ADF BC, i.e : Inheritance and Polymorphism, to reuse the logic in EO. I need some confirmation below to make sure we apply it correctly :
1) We can Extend Entity Object WITHOUT assigning any discriminator, can't we ?
(this is what I call Extended but NOT polymorphic )
If the answer is yes , then I have further question :
2) In our Order Processing module of our ERP application, there are following entity object : SalesOrder, Invoice, SalesReturn, CreditNote
And there are four underlying database tables : SalesOrder, Invoice, SalesReturn, CreditNote.
They are surely DIFFERENT transaction BUT they have COMMON attributes (and validation), This is why I call it "Extended but NOT polymorphic".
The common attributes are :
- DocID (PK)
- DocNumber
- DocDate
- Warehouse
- Customer
- Salesman
- TermOfPayment
- DueDate
So I create one BaseOrderEntity as super class entity. Then I create four entity objects that extend the base entity :
Entity : SalesOrder, Extend : BaseOrderEntity, Database Object : SalesOrder
Entity : Invoice, Extend : BaseOrderEntity, Database Object : Invoice
Entity : SalesReturn, Extend : BaseOrderEntity, Database Object : SalesReturn
Entity : CreditNote, Extend : BaseOrderEntity, Database Object : CreditNote
Is this the correct way to apply it ?
In other word, is this the correct use case ?
Thank you very much,
xtanto.Starting in JDeveloper 10.1.2, the ADF runtime throws an error if it detects that you have a superclass and subclass entity objects without properly-configured discriminator attributes. If you do not intend to instantiate the superclass, just assign it a descriminator attribute with a value that will never occur in real-life, like NULL or 'x' or whatever.
It will be simplest if all your family of subclasses were stored in the same table, although that is not required. It simply makes the polymorphic queries easier.
If you want to avoid the runtime check for the discriminator's being properly configured, because you know that your application will never run the chance of loading the same row into the entity cache as two different entity definition types, then you can get a property jbo.abstract.base.check in your configuration (or as a System property) to the value false and then the check is not performed. -
Ship to party not assigned to sales area
Hi everybody
When I am creating sales order for a customer in the sales area into which it's CMR is maintained eg. 1000, 10 , 00. I get an error message ' ship to party...is not assigned to sales area 1000, 10, 01.'' Here SP is also SH.
I checked the common Distribution Channel & common Division Master Data & the ref dc & ref dv are properly maintained. I don't know from where system is taking division 01.Hi,
Please check VOV8(Sales documet type control).Here in the document type which you are using,check if Item condition field is marked.If it is marked then system is checking the division of the material you are using.
Extend the customer to 1000/10/01 and then try creating the order.
Reward points if useful
Regards,
Amrish Purohit -
Configuring the time capsule airport wlan function as "connect to wlan", the time capsule gets a correct IP adress from the other wlans IP range, but does not assign this to the ethernet ports. With Airport express it worked, the single Ethernet port got the IP Parameters passed through!
My setup is a Vodafon Esaybox connected to ISP. Time Capsule is not able to extend the wlan of the easybox, neither airport express can do.
Only the option "connect to wlan" is succesful.
With airport express I was able to connect my Sony Bravia TV to the lan via ethernet to stream pictures, the TV set got an IP adress from the easybox.
With the time capsule the easybox dosn't find devices connected to the ethernet ports to submit IP adresses. The TV set get another IP adress (169.xxx.x.x.) in subnet mask 255.255.0.0 and I don not now where from.
My notebook is a MacBook pro.
Any idea????
Thank a lot in advance!
Kind regards
IngoNeverthe less, could there be the chance, that this feature could be implemnented with an firmware update?
That would appear to be a question for Apple to answer. You can make suggestions to Apple here:
Apple - AirPort Extreme - Feedback
If the AirPort Extreme and Time Capsule are configured to "extend a wireless network" they will provide additional wireless coverage....and...the Ethernet ports are enabled in this type of setup.
The "catch" here is that you must have an Apple router providing the network to be extended. -
In our enterprise MPLS network we are using 192.168.20.0/24 subnet, in this subnet we have not assigned the IP 192.168.20.200/30 & 204/30, But still these subnets are reachable . Are these NNI IP ...Please explain.
I have checked with ISP, there response is like below:
Those are the NNI to GBNET IPs for Dominican Republic. They are Network IPs. You should be able to ping them-that means they are working.
WANRT01#show ip route | include 192.168.20.20
B 192.168.20.200/30 [20/0] via 192.168.20.226, 02:18:29
B 192.168.20.204/30 [20/0] via 192.168.20.226, 02:18:29
Here its shows from any of our MPLS site we are able to trace the IP and it seems like, 192.168.20.204/30 is one more site but in actual its not.
INMUMWANRT01#ping 192.168.20.205
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.205, timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 224/232/260 ms
INMUMWANRT01#trace
INMUMWANRT01#traceroute 192.168.20.205
Type escape sequence to abort.
Tracing the route to 192.168.20.205
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.20.226 24 msec 24 msec 24 msec
2 192.168.20.206 [AS 8035] 232 msec 232 msec 252 msec
3 192.168.20.205 [AS 8035] 224 msec 224 msec * -
Adobe Photoshop CS6 Extended Could not complete your request because of a program error.
When starting Photoshop CS6 I get this error message, Adobe Photoshop CS6 Extended Could not complete your request because of a program error (-- OK --). This happens on the main screen immediately. Once I click OK the program seems to be alright. But some part of it, that I haven't discovered yet, may not function properly.
I am running Windows7 Professional Service Pack 1 64 bit with Intel i7-4770k CPU and 16 GIG Ram.
This problem just started recently, everything has been fine up till now. I must have done something when trying to defragment the Registry or get rid of temp files.
I have uninstalled Photoshop CS6 and reinstalled it with no effect. I have tried to run Photoshop CS6 32 bit in Safe Mode, but it will not run. It hangs up on Reading Memory.
Is there any kind log file that would tell me what is causing this to occur?
Does anyone know what might cause this?
Thank you in advance for any helpful information.
J. J. PattersonDid you reset your Preferences and Photoshop tools. Photoshop Preferences are not removed with an un-install and an Install does not install preferences. Preferences are created for a user id when a user ID start Photoshop and there are no preferences for the user ID.
-
Error while trying to run Bex Query -------- Field symbol is not assigned.
Hello Every body,
I am facing the following error after giving some value in Selection screen and trying to run the Bex Query
ERROR : Field symbol is not assigned.
Thanks in advance,
Praveencan u plz give details of variables, what it is build on and the value u r inputing,
also is thr any dump.
double click on the error message it shows u. it will give u the detailed error message. post that too -
Reporting Issue "Opening Balance values are going to Not Assigned Values"
Hi Friends,
Closing Balance values are perfectly showing but opening balance values are going to Not Assingned Values? I am not able to find it out.
our query is built on PCA Daily Multiprovider.
Pls Help.
Thanks
AsimHi Ravish,
Here are the details
Stock values and quantities in the PCA cube of BW never show correctly at an article level due to an opening balance issue. This reduces our ability to report on stocks at moving average price, i.e. anything that actually matches the financial values in the system. The issue arises because stock at the beginning of the year (quantity and value) for any site is only shown against an article of "Not assigned." Stock movements during the year are shown against the appropriate article.(If you have a new site, the will have stock assigned against an article up until 31 December and then the 31 December values are shown against "not assigned" for the next year).
Thanks
Asim -
Pdf form created in Acrobat 9 Pro Extended does not function properly when viewed by Reader
Hello all-
I have created a form in Acrobat 9 Pro Extended and have an issue because when others view the form in Adobe Reader some of the functions do not work- such as the attach a file button I created, or the save, print buttons (all are execute a menu item). These work on my Acrobat 9 Pro Extended but not on Reader.
I have tried saving many different versions- with security (password) and made sure to allow printing and commenting, editing, digital signatures etc...
Without any security...
Even tried extending features in Adobe Reader!
The response from others is that it all works, except the ATTACH A FILE button- when they click on it it compresses, but, nothing happens!
I don't know what else to do! (I guess people could just attach things to the e-mail that is generated from the submit button, but worried people might forget at that step once they are past that section on the form and they jump to email to submit).
Help please!
A.I've already extended the rights and made sure to save to activate that... as well as password protected the docs etc... still nothing...
I am aware that those with Basic Adobe Reader need rights extended to be able to use functions available to Adobe Pro. -
How to pass # (Not Assigned) in open doc url ??
I am unable to pass # (Not Assigned) in open doc URL. I am also try %23 ( encoded form of #) but it show MDX error and when i supply directly # then my WebI report pull all the data i.e. my filter doesn't work. Please give me some way to pass # in opendoc..
http://boseimdev60:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AQgEkeXDfo5PpR_IFC.rse0&sIDType=CUID&sType=wid&sRefresh=Y&mode=full&sRefresh=Y&lsSCalendarYear%2fMonthTo=032010&lsSCalendarYear%2fMonthFrom=032010&lsSInfoprovider (Multiple Required)=ZPUR_C15&lsSPlant(SelectionOptions%2cOptional)From=&lsSPlant(SelectionOptions%2cOptional)To=&lsSPur Doc Category (Optional)=K&lsSPlant=%23
Here Plant=%23 i.e. in last i increase this prompt in WebI level so its work. -
Hi All,
In the bex analyzer report, I am seeing values as NOT ASSIGNED and # in text and key columns when there is no data.
I want to see them as blank instead of them,
Can anyone tell where can I make that setting or change.
Thanks In advance!Hi Pallavi,
I think you can find some VB macro code posted here that will help you to do this...there is no option set in the query designer to blank out the records.
Hope this helps... -
Hello All,
We are using a two tier architecture.
Our Corp server calls the refinery server.
Our CORP MII server uses user id abc_user to connect to the refinery data server.
The user id abc_user has the SAP_xMII_Dynamic_Query role.
The data server also has the checkbox for allow dynamic query enabled.
But we are still getting the following error
Error has occurred while processing data stream
Dynamic Query role is not assigned to the Data Server; Use query template
Once we add the SAP_xMII_Dynamic_Query role to the data server everything works fine. Is this feature by design ?
Thanks,
KiranThanks Anushree !!
I thought that just adding the role to the user and enabling the dynamic query checkbox on the data server should work.
But we even needed to add the role to the data server.
Thanks,
Kiran -
How can I find photos that are not assigned to any collection?
Hi !
I'm using LR 5.7.1 on a Mac.
When I've retouched raw pictures with PS CC (and do not need the PSD file any longer) I export the PSD (that is in my catalog) as JPG and let it add to my catalog automatically. After that I delete the PSD file. That works fine.
But .... the new JPG file is not assigned to any collection. That's no problem unless I forget to do it manually after that export (and import).
That brings me to my question.
How can I find photos that are not assigned to any collection?
I tried it with a smart collection after I found nothing suitable in library filter. The search criteria I tried are Source -> Collection with any of the conditions. One with an empty value field, then with just a space and so on.
Has anybody a good hint for me?
ThomasYou can also add numbers if you have collections that don't use alphabet characters.
Maybe you are looking for
-
Web application (ADF-application) and Scanner (device that optically scans images, printed text) how to implement a scan from a web application and the ability to preview the scanned document (in the ADF-application) before uploading to the server.
-
Hi Experts, In SAP GUI, if we see the properties of the uploaded documents in the product catalog, you can see and edit properties like name, visible in search, keyword, filesize, version number, etc. On the Web UI , in product catalog management, if
-
Error handling for inbound function module
Dear all, I have written my custom function module for matmas idoc extention.In the begining of function module i have used IDOC_INPUT_MATMAS01 and then have coded my BDC.For handling errors in caese BDC fails i am filling table idoc_status. wih s
-
I have looked all over but can't find any games for my ipod. Some older questions from 2010 say that it's under the apps list. Well it's not there anymore. I'm starting to think they don't sell the games anymore. I would love it if somone could tell
-
I've got a G5 1.6Ghz being used as a very basic server, hosting Filemaker and sharing a couple of HP printers (laser and inkjet). It's crashing on printing. Not everytime, not on one or the other printer - in fact it's very hard to do anything which