ACE - Query VLAN Interfaces Status
Hi,
I am wondering what the status of the query vlan interface means in the command 'show ft peer detail':
Query Vlan IF State : UP, Manual validation - please ping peer
I am pretty sure that I did not see this status when I configured query vlan last time. Current version is A2(2.3).
Unfortunately this status does not seem to be documented anywhere on CCO.
I appreciate any help!
Thanks,
Daniel
Hi Daniel,
The FT Query VLAN interface is an optional, yet very good, feature to be used when using redundant ACE modules or appliances. Without it, if the FT VLAN was to go down, the standby ACE will no longer receive FT heartbeats from the active ACE and therefore take the active role. However, if the active ACE is still running fine in the active role, then you don't want the standby ACE to take over as active because that will put them into an active/active scenario, which may lead to connectivity issues.
This is where the FT Query VLAN interface comes in. If the FT VLAN goes down, the standby ACE will notice this, but before taking the active role, it will ping it's peer IP address configured on the interface that is designated as the FT Query VLAN. If the ping is successful, then it will stay in the standby role, thereby saving you some headaches.
The status that you are seeing is the ACE's way of telling you that the interface is UP, but if you want to know if it can successfully ping the peer IP address, then you would have to manually ping the peer IP address from the CLI. The ACE does not periodically check the ping connectivity through any automatic mechanism. The automatic mechanism is only triggered by the FT VLAN going down.
Does this help?
Sean
Similar Messages
-
I've configured query vlan FT internface as follow:
class-map type management match-any query_VLAN
2 match protocol icmp any
policy-map type management first-match query_VLAN_MGT
class query_VLAN
permit
interface vlan 11
description ##query vlan##
ip address 192.30.3.196 255.255.255.252
peer ip address 192.30.3.195 255.255.255.252
access-group input ANY-ANY
service-policy input query_VLAN_MGT
no shutdown
ft interface vlan 10
ip address 192.30.3.192 255.255.255.252
peer ip address 192.30.3.191 255.255.255.252
no shutdown
ft peer 1
heartbeat interval 300
heartbeat count 10
ft-interface vlan 10
query-interface vlan 11
and when I do "sh ft peer sum" I see following:
sh ft peer sum
Peer Id : 1
State : FSM_PEER_STATE_COMPATIBLE
Maintenance mode : MAINT_MODE_OFF
FT Vlan : 10
FT Vlan IF State : UP
My IP Addr : 192.30.3.191
Peer IP Addr : 192.30.3.192
Query Vlan : 11
Query Vlan IF State : UP, Manual validation - please ping peer
Peer Query IP Addr : 192.30.3.196
Heartbeat Interval : 300
Heartbeat Count : 10
SRG Compatibility : COMPATIBLE
License Compatibility : COMPATIBLE
FT Groups : 5
would you please advise why "Query Vlan IF State " is showing "Manual validation - please ping peer" do I need to configure anything else?
Thanks....You don't need to configure anything further. Your config looks good.
The query interface thing can be a bit misleading. The ACE does not use the query interface until the FT vlan goes down. This is the reason why we added a etxt to request users to manually verify query interface is functioning properly as below :
"Manual validation - please ping peer"
So if you need to check if the query vlan is up, then manually ping the peer ip address. That's what the message means.
- Andrew -
Hi,
I am not able to ping the VLAN interfaces defined on the ACE devices unless directly connected to the subnet.
I tried options - defining Access-list,service-policy.I can ping the servers behind the ACE but i cannt ping the ACE vlan interface.
I captured the traffic on the ACE.I cannt see any traffic on the interfaces if i ping the VLAN ip address.I can see the traffic if i am pinging the host behind the ACE.
Is there any option available to enable icmp on the interfaces.In order to ping the Vlan Interface you just need management policy applied to the vlan interface.
Class-maps used in the management-policy
defines the source addresses from where these management accesses are allowed.
If you can ping the interfaces from locally connected subnets but not from the remote subnets then there could be 2 reasons.
1. Some routing issues
2. Source IPs in Management class maps are not defined.
Following is an example of typical management policy
#Allow telnet & SSH from these ip addresses
#Allow ICMP from any source
class-map type management match-any MGMT-CLASS
10 match protocol telnet
20 match protocol ssh
30 match protocol icmp any
policy-map type management first-match MGMT-POLICY
class MGMT-CLASS
permit
interface vlan 10
ip address x.x.x.x 255.255.255.0
service-policy input MGMT-POLICY
no shutdown
interface vlan 20
ip address y.y.y.y 255.255.255.0
service-policy input MGMT-POLICY
no shutdown
Syed Iftekhar Ahmed -
Alias vlan interfaces on the ACE
I am getting up to speed the ACE module and seeing lots of cases where an alias is configured on both, the client and server side vlan interfaces. Is this a requirement?
Thanks..Hi,
Yes it is. If you have a pair of ACEs in routed mode, you should use aliases on your VLAN interfaces.
This VLAN address should then be used by your servers as default-gateway on the server side, and as next-hop for you upstream routers on client-side.
This way, if the primary ACE fails, the next-hop address and default-gateway of your upstream routers and servers don't have to be changed because the IP Address remains the same.
Take a look at following doc for configuration guidelines: http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A1/configuration/rtg_brdg/guide/vlansif.html#wp1034811
HTH,
Dario -
I'm trying to configure Fault Tolerance on a pair of 4710s. I followed the doc, and configured int gi1/4 as the fault tolerance interface, using vlan 12. However the GUI is saying FT Vlan Down
The troubleshooting wiki said check the physical connectivity, but everything there looks good. Each ACE can ping it's own IP, but not the router on that VLAN, or the peer. They're connected to a dedicated VLAN in a switch, and I even tried a crossover cable to directly connect the two.
Here's our config:
ace1/Admin# show running-config ft
Generating configuration....
ft interface vlan 12
ip address 192.168.12.1 255.255.255.0
peer ip address 192.168.12.2 255.255.255.0
no shutdown
ft peer 1
heartbeat interval 300
heartbeat count 20
ft-interface vlan 12
query-interface vlan 1000
ft group 1
peer 1
peer priority 200
associate-context Admin
inservice
interface gigabitEthernet 1/4
description FT
ft-port vlan 12
no shutdown
Everything looks good, the interface is up/up, but I can't ping the peer. Gui shows FT Vlan Down. Here's a show ft peer...
ace1/Admin# show ft peer 1 detail
Peer Id : 1
State : FSM_PEER_STATE_DOWN
Maintenance mode : MAINT_MODE_OFF
FT Vlan : 12
FT Vlan IF State : UP
My IP Addr : 192.168.12.1
Peer IP Addr : 192.168.12.2
Query Vlan : 1000
Query Vlan IF State : UP, Manual validation - please ping peer
Peer Query IP Addr : 0.0.0.0
Heartbeat Interval : 300
Heartbeat Count : 20
Tx Packets : 0
Tx Bytes : 0
Rx Packets : 0
Rx Bytes : 0
Rx Error Bytes : 0
Tx Keepalive Packets : 0
Rx Keepalive Packets : 0
TL_CLOSE count : 0
FT_VLAN_DOWN count : 0
PEER_DOWN count : 2
SRG Compatibility : INIT
License Compatibility : INIT
FT Groups : 1
Any other ideas on what to check?
Thanks
TomHi Tom,
It looks the vlan and the physical interface are up. You can anyway check the following to confirm:
sh interface gi 1/4
sh interface vlan 12
In "sh interface gi 1/4 counters", do you see the "RX packets" counter increasing?
You should be able to ping 192.168.12.2 from 192.168.12.1 and vice versa. Which ip did you assign to the other peer. Should be:
ft interface vlan 12
peer ip address 192.168.12.2 255.255.255.0
ip address 192.168.12.1 255.255.255.0
no shutdown
You can check as well "sh ft stats" and see if the heartbeats counter are increasing.
Regarding to other interfaces, you mention that you can't ping devices on the ACE adjacent vlans. Are you allowing icmp traffic? For instance:
policy-map type management first-match management
class management
permit
class-map type management match-any management
match protocol icmp any
service-policy input management
Finally, did you check whether you are able to resolve mac addresses?
I hope it helps,
Olivier -
Vlans dhcp status are not received
Hello,
I am configuring vlan on sg300-20 in dhcp mode.
One vlan that is directed connected to the adsl router get ip address and when I connect host to the ports in this vlan they also receive ip address and can go on internet.
The other four vlans dhcp status are not received.
Kindly help me check this. Thanks
Below is the config log:
switch4ba497#sh running-config
config-file-header
switch4ba497
v1.2.9.44 / R750_NIK_1_2_584_002
CLI v1.0
file SSD indicator encrypted
ssd-control-start
ssd config
ssd file passphrase control unrestricted
no ssd file integrity control
ssd-control-end cb0a3fdb1f3a1af4e4430033719968c0
vlan database
vlan 5,10,20,30,40
exit
voice vlan oui-table add 0001e3 Siemens_AG_phone________
voice vlan oui-table add 00036b Cisco_phone_____________
voice vlan oui-table add 00096e Avaya___________________
voice vlan oui-table add 000fe2 H3C_Aolynk______________
voice vlan oui-table add 0060b9 Philips_and_NEC_AG_phone
voice vlan oui-table add 00d01e Pingtel_phone___________
voice vlan oui-table add 00e075 Polycom/Veritel_phone___
voice vlan oui-table add 00e0bb 3Com_phone______________
ip dhcp relay address 192.168.3.1
ip dhcp information option
no boot host auto-config
bonjour interface range vlan 1
hostname switch4ba497
line telnet
exec-timeout 0
exit
no passwords complexity enable
username cisco password encrypted 7af78c911d5b48bea1dc2449d9d89513abeb4be5 privilege
15
ip http timeout-policy 0 http-only
ip name-server 192.168.1.1 192.168.3.1
ip telnet server
interface vlan 1
ip address 192.168.2.254 255.255.255.0
no ip address dhcp
interface vlan 5
name WAN
ip address dhcp
interface vlan 10
name Studio
ip address dhcp
interface vlan 20
name Service
ip address dhcp
interface vlan 30
name Admin
ip address dhcp
interface vlan 40
name Data
ip address dhcp
interface gigabitethernet1
switchport mode access
interface gigabitethernet2
switchport mode access
switchport access vlan 10
interface gigabitethernet3
switchport mode access
switchport access vlan 10
interface gigabitethernet4
switchport mode access
switchport access vlan 10
interface gigabitethernet5
switchport mode access
switchport access vlan 10
interface gigabitethernet6
switchport mode access
switchport access vlan 10
interface gigabitethernet7
switchport mode access
switchport access vlan 10
interface gigabitethernet8
switchport mode access
interface gigabitethernet9
switchport mode access
switchport access vlan 20
interface gigabitethernet10
switchport mode access
switchport access vlan 20
interface gigabitethernet11
switchport mode access
switchport access vlan 20
interface gigabitethernet12
switchport mode access
switchport access vlan 20
interface gigabitethernet13
switchport mode access
switchport access vlan 30
interface gigabitethernet14
switchport mode access
switchport access vlan 30
interface gigabitethernet15
switchport mode access
switchport access vlan 30
interface gigabitethernet16
switchport mode access
switchport access vlan 30
interface gigabitethernet17
switchport mode access
interface gigabitethernet18
switchport trunk native vlan 40
interface gigabitethernet19
switchport mode access
switchport access vlan 5
interface gigabitethernet20
switchport trunk native vlan 5
switch4ba497#sh ip int
IP Address I/F Type Directed Precedence Status
Broadcast
0.0.0.0/32 vlan 10 DHCP disable No Not
received
0.0.0.0/32 vlan 20 DHCP disable No Not
received
0.0.0.0/32 vlan 30 DHCP disable No Not
received
0.0.0.0/32 vlan 40 DHCP disable No Not
received
192.168.2.254/24 vlan 1 Static disable No Valid
192.168.3.102/24 vlan 5 DHCP disable No Valid
switch4ba497#
Also i do not understand why the ip address is 0.0.0.0/32 because the dhcp server ip address is 192.168.3.1Dear Customer,
Thank you for reaching Small Business Support Community.
In Layer 2 system mode, only the management VLAN can be configured with a static or dynamic IP address. In Layer 3 system mode, all the interface types (ports,LAGs, and/or VLANs) on the device can be configured with a static or dynamic IP. Configuring the device to work in either mode is performed in the Administration >System Settings page
When a DCHP Client starts a discovery process, it assigns a dummy IP address 0.0.0.0 before the real address is obtained. This dummy address has the status of “Not Received”.
Pretty much your problem should be solved by changing to Layer3 system mode. Please let me know if anything comes up and/or if there is any further assistance I may help you with.
Kind regards,
Jeffrey Rodriguez S. .:|:.:|:.
Cisco Customer Support Engineer
*Please rate the Post so other will know when an answer has been found. -
Question: ACE FT Track Interface
Hi all,
I have two ACE appliances installed with HA configuration. I have 5 vlans (Vlan1, Vlan2, Vlan3, Vlan4 and Vlan5) come from 1 trunk interface. I have 1 ADMIN context and 1 PRODUCTION context. I have configured FT Interface, FT Group and FT Peer in ADMIN context only. I have allocate Vlan1 in ADMIN Context only and assign VLAN2, VLAN3, VLAN4 and VLAN5 for PRODUCTION context. The L3 Interface of VLAN2, VLAN3, VLAN4 and VLAN5 are all configured in PRODUCTION context.
My question is how can I track the interface for VLAN2, VLAN3, VLAN4 and VLAN5? Should I configure FT Track Interface in ADMIN context or configure FT Track Interface in PRODUCTION context so that any VLAN interface down will trigger the failover.
Appreciate who can help me on this question. ThanksThe FT group can't be configured in a non-Admin context.
switch/User2(config)# ft gr?
% invalid command
All FT groups MUST be configued in Admin and allocated in Admin to a context.
ft group 112
peer 1
peer priority 90
associate-context User2
inservice
switch/Admin#
The only FT commands inside a context are :
switch/User2(config)# ft ?
auto-sync Enable auto sync
track Configure Fault Tolerance tracking for switchover
switch/User2(config)# ft
And, yes, if tracking configured in a context will reduce priority to its associated group configured in Admin.
Gilles. -
I was setting up two VLAN interfaces for my 3550. I had two VLAN interfaces. One for VLAN 10 and one for VLAN 15. After configuring each VLAN Interface, VLAN 15 was down and wouldnt come up. VLAN 10 was up however. After issuing the no shutdown command for VLAN 15, it said VLAN 15 is not shutdown, but, when i checked the interface again, the VLAN interface was up. Now, I would think, if I had to do the no shutdown command on VLAN 15, why didnt I have to do that on the VLAN 10 interface? With switches, is the first VLAN interface automatically always up and all later VLAN interfaces automatically shut down.
A 'feature' of all the newer Catalyst switches and newer IOS is that the logical VLAN interface will remain down until a port in that VLAN is up.
The VTP config/status can also complicate this as a VTP client doesn't have the VLANs that the IOS config actually has because the VTP client hasn't learned the VLANs yet. In other words, the switch is in a state in which the IOS config puts a port in a VLAN that doesn't yet exist because VTP hasn't downloaded the VLAN database.
Keep in mind that VTP requires an operating trunk and if it is 802.1q then the native VLANs must match (so a native VLAN other than 1 will not work if the VLAN database hasn't been dowloaded by VTP or has been corrupted).
Not that you are running into the VTP issue, but in the effort of full disclosure...
Hope that helps... -
Broadcast/multicast counters does not increase on vlan interface
Hi,
on a Cat6500 we try to monitor interface packet statistics via snmp, in detail we want to get information about the relation between unicast, multicast and broadcast packet counter.
What we found out is that while on physical l2 interfaces all counters (ifHCInUcastPkts, ifHCInMulticastPkts, fHCInBroadcastPkts, ifHCOutUcastPkts, ifHCOutMulticastPkts, ifHCOutBroadcastPkts) are filled, on vlan interfaces multicast in/out and broadcast out packets stay zero whole the time. We use arp, hsrp, ospf and other well know broadcast and multicast based protocols.
Does anybody know why this counters do not increase?
Attached you find an excel sheet which shows an example of interface counter vs. vlan counter.
many thanks in advance,
Thorsten SteffenHi jon,
belown the result of sh sdm prefer,so need i a licence ip service to apply the route-maap on the interface vlan,or just entrer the config"sdm prefer routing" and reboot the switch?
SWBB0#sh sdm prefer
The current template is "desktop default" template.
The selected template optimizes the resources in
the switch to support this level of features for
8 routed interfaces and 1024 VLANs.
number of unicast mac addresses: 6K
number of IPv4 IGMP groups + multicast routes: 1K
number of IPv4 unicast routes: 8K
number of directly-connected IPv4 hosts: 6K
number of indirect IPv4 routes: 2K
number of IPv6 multicast groups: 64
number of directly-connected IPv6 addresses: 74
number of indirect IPv6 unicast routes: 32
number of IPv4 policy based routing aces: 0
number of IPv4/MAC qos aces: 0.5K
number of IPv4/MAC security aces: 0.875k
number of IPv6 policy based routing aces: 0
number of IPv6 qos aces: 0
number of IPv6 security aces: 60 -
6500 VLAN Interface (SVI) Throughtput
Guys,
Very quick one, does anyone have any stats on throughputs on a VLAN Interface on a 6500 MSFC2
I just remember the old days where if you had an RSM, and it had a VLAN interface, the throughtput was 400Mbps (or sommat like that)
Can a 6500 MSFC2 SVI run at a full gig?
Sorry if this sounds a little crazy.
Kindest regards,
KenThat makes a lot of sense.
I just did some research, and yes it was 400M on a 5500 and now 1000 for the 6500 with an MSFC 2, so yes, they have not increased it that much becuase As you say, it should all be cef-based MLS or traditional MLS based
Many thx all,
Ken
on a 6500 switch
Switch sh port 15/1
* = Configured MAC Address
Port Name Status Vlan Duplex Speed Type
15/1 MSFC connected trunk full 1000 Route Switch
Port Trap IfIndex
15/1 disabled 5
Port Status ErrDisable Reason Port ErrDisableTimeout Action on Timeout
15/1 connected - Enable No Change
Port Align-Err FCS-Err Xmit-Err Rcv-Err UnderSize
15/1 0 0 0 0 0
Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sen Runts Giants
15/1 0 0 0 0 0 0 -
Port Last-Time-Cleared
15/1 Sat Jul 23 2005, 20:11:34
Idle Detection
on a 5505 switch
Console> show port status
A response, similar to the following, is displayed:
Port Name Status Vlan Level Duplex Speed Type
1/1 connected 523 normal half 100 100BaseTX
1/2 notconnect 1 normal half 100 100BaseTX
2/1 connected trunk normal half 400 Route Switch
3/1 notconnect trunk normal full 155 OC3 MMF ATM
5/1 notconnect 1 normal half 100 FDDI
5/2 notconnect 1 normal half 100 FDDI -
MSFC - cannot ping vlan interface
Hi,
We have several vlans defined on the mfsc. On the msfc we could ping all the vlans interface except 1 vlan. The interface is up and just recently we weren't able to ping it. Any help is much appreciated.
TIA.
PFHi PF,
AFAIK, When you are pinging a particular interface stting on the MSFC the source IP would be of any other available interfaces. If you are pinging vlan 110 it will take source ip of any other available vlan interface and the destination is Vlan 110, but ACL defined on the interface doesnot have any ACE for the same so that packets will be dropped.
Removing the ACL worked as explained above.
regards,
-amit singh -
Gigabit interface status faulty please help
When I do a show interface status on 4500 switch I got a status faulty
I did never see such thing
Port- Name-Status-Vlan-Duplex-Speed Type
Gi2/7-jsh3 faulty 188 full XXBaseSX
Could you please help?
Thanks a lotthis usually indicates the port is faulty (bad; not working; will not work)
this may have been set via the POST of the device. the internal tests failed and the port was marked FAULTY.
this could also be the result of a good port simply went bad for some unknown reason.
try to disable/reEnable the port. will probably still say faulty. (cannot initialize a faulty port)
try to reset the blade the port is on, or the supervisor if it resides on that.
do a "show test" (catOS) to see what the POST found when it did its powerOnSelfTests.
i've seen plenty of FAULTY ports and 99% of the time, the port is simply bad and must be replaced. (usually an ASIC or the likes) -
I am getting "The parameter name [startDate] in the query's selection criteria does not match any parameter name defined in the query" error when querying on interface using TopLink 11g (11.1.3). The interface is implemented by many classes MyImplementationClass being one of them. The query works in TopLink 10g. Is this a bug in 11g? Thanks.
Here is my code:
+// subquery+
ExpressionBuilder subqueryBuilder = new ExpressionBuilder();
ReportQuery subQuery = new ReportQuery(MySubQueryClass.class, subqueryBuilder);
+// Main read query+
ReadAllQuery namedQuery1 = new ReadAllQuery(MyInterface.class);
ExpressionBuilder expBuilder1 = namedQuery1.getExpressionBuilder();
subQuery.addAttribute("primaryKey");
subQuery.setSelectionCriteria(
subqueryBuilder.get("operationDate").between(
subqueryBuilder.getParameter("startDate"),
subqueryBuilder.getParameter("endDate")).and(
subqueryBuilder.get("primaryKey").equal(expBuilder1.get("primaryKey))));
namedQuery1.setSelectionCriteria(expBuilder1.get("valueDate")
+.between(expBuilder1.getParameter("startDate"),+
expBuilder1.getParameter("endDate")).and(
expBuilder1.get("primaryKey").notExists(subQuery)));
namedQuery1.addArgument("startDate", java.sql.Date.class);+
namedQuery1.addArgument("endDate", java.sql.Date.class);+
// Stack trace
DEBUG 15:52:54 - ClientSession(27122014)--Exception [TOPLINK-6094] (Oracle TopLink - 11g Release 1 (11.1.1.3.0) (Build 100323)): oracle.toplink.exceptions.QueryException
Exception Description: The parameter name [startDate] in the query's selection criteria does not match any parameter name defined in the query.
Query: ReadAllQuery(*myPackage.MyImplementationClass*)Local Exception Stack:
Exception [TOPLINK-6094] (Oracle TopLink - 11g Release 1 (11.1.1.3.0) (Build 100323)): oracle.toplink.exceptions.QueryException
Exception Description: The parameter name [startDate] in the query's selection criteria does not match any parameter name defined in the query.
Query: ReadAllQuery(myPackage.MyImplementationClass)
at oracle.toplink.exceptions.QueryException.parameterNameMismatch(QueryException.java:996)
at oracle.toplink.internal.expressions.ParameterExpression.getValue(ParameterExpression.java:227)
at oracle.toplink.internal.databaseaccess.DatabaseCall.translate(DatabaseCall.java:914)
at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:192)
at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:179)
at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:250)
at oracle.toplink.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:583)
at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2483)
at oracle.toplink.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2441)
at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:467)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:445)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1022)
at oracle.toplink.descriptors.InterfacePolicy.selectAllObjectsUsingMultipleTableSubclassRead(InterfacePolicy.java:171)
at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:462)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:674)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:445)
at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1037)Try using the outer query for the parameters,
change,
subqueryBuilder.getParameter("startDate"),
to,
expBuilder1.getParameter("startDate"),
If that does not work, try the query without the sub-query to determine if the sub-query is the cause.
It could be a bug with the sub-query, if you can recreate it on EclipseLink you could log a bug, or contact Oracle support.
James : http://www.eclipse.org/eclipselink/ -
I noticed that Kodo 3.3 supports query on interface - is it part of JDO 2.0
persistent interface support? What else is implemented? Can we associate
Interface with Implementation to do the rest of the staff?>I noticed that Kodo 3.3 supports query on interface - is it part of JDO 2.0
persistent interface support? What else is implemented? Can we associate
Interface with Implementation to do the rest of the staff?We've had querying on interfaces for a long time!
The Kodo implementation is currently different than JDO 2, in that JDO 2
requires you to explicitly list your persistent interfaces in metadata, along
with which classes implement them. Kodo currently just dynamically tracks which
persistent classes implement which interfaces, and turns any query on an
interface into a query on the set of the implementing classes. -
Hi
I have a simple question about querying on Interfaces.
I have an interface called Entity, and 2 implementing classes called Service and ServiceProvider (mapped to tables Services (pk serviceId) and ServiceProviders (pk serviceProviderId)). serviceId and serviceProviderId have independent sequences. In Workbench, both classes are specified as implementing the Entity interface. The Entity interface currently specifies an accessor method getEntityId(), and entityId is a common query key for both classes.
I want to query against the Entity interface to obtain a single instance, by knowing the entityId and class name.
How can I formulate a readObject query so that Toplink generates the appropriate SQL:
select * from services where serviceId = ? or
select * from serviceProviders where serviceProviderId = ?
Sorry for the trivial nature of this question - I can't find any examples of querying against interface descriptors in a search of tutorials or the developers guide. The developers guide simply says "If there are multiple implementors of the interfaces, the query returns instances of all implementing classes." and this sounds like it would translate to a UNION ALL SQL query.
I also have in a separate class a variable one to one mapping where I can specify a class indicator (entityTypeId values). Somehow I feel that I need something like this for the Entity interface descriptor.
JamesFrankly, this just isn't something that is done that often. In the past decade I can only think of a couple of customers who've asked me about this. I always feel a bit uncomfortable with how querying through interfaces really tends to break polymorphism -- it just doesn't seem very natural from an OO perspective. Now, if instead of an interface you had used a common superclass, that makes more sense. I guess the fact that interfaces don't have state makes this whole area a bit of an OOAD research topic. :)
That being said, I don't expect TopLink would do an "or" query like you've shown, but would do a UNION.
My recommendation is to experiement with the queries, perhaps take a look at query-keys (they may be of some help here), and contact support with any feature suggestions you have in this area.
- Don
Maybe you are looking for
-
Hi, i have a dimension which is supplier which has vendor and ultimate Vendor info objects. and when i check the contents of the cube under this dimension i see 3 info objects vendor, ultimate Vendor and also global vendor. i assumed this cud be att
-
How i can change system ECC to ERP in Solman
Dear SAP Colleague, I have configured the service desk in Solman. We have ECC 6 system in the landscape. but i have add these system as SAP ECC system in Solman, and now when i am trying to upgrade these system for EHP4 its showing me the erro that s
-
ABAP API's - URGENT- Tracking of changes in MDM.
Hello Experts, I want to track all the changes made in MDM In ECC. I know that i can do it using ABAP API's tracking feature. I have already established the connection between ECC and MDM. I would want to know all the exact steps to enable tracking
-
Unable to see session logs in session manager since 2 days. I'm using OBIEE 11.1.1.6.0. current log file size is 66MB. Error Log Could Not Be Retrieved Odbc driver returned an error (SQLExecDirectW). Error Details Error Codes: OPR4ONWY:U9IM8TAC State
-
Clearing Purchasing Document costing History !!!
Dear All, While we try to display an invoice it through a time out exception , after debuging i found its loop over table ekbz "History per Purchasing Document: Delivery Costs" it retrn 10000 row i think its the reason for time out ho can i solve thi