Class binding do not support Children?
In Java i have:
class Application {
public Party party;
class Party {}
class PartyChild extends Party {
public String somethingMore;
and code:
application.party = new PartyChild();
on Flex side are similar classes. Problem is, that after remote call party attribute is null. Using BlazeDS 4, Flash 10. What is wrong?
[RemoteClass(alias="Application")]
[Bindable]
class Application {
public Party party;
[RemoteClass(alias="Party")]
[Bindable]
class Party {}
[RemoteClass(alias="PartyChild")]
[Bindable]
class PartyChild extends Party {
public String somethingMore;
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
I'm not current on NBAR (or NBAR 2), but NBAR used to support loadable modules (PDMs?). Sometimes Cisco would provide those so you could add match protocols without upgrading your IOS.
Otherwise the "fix" would be to upgrade your IOS.
Lastly, depending on what it matching SSL really means to you, using port based ACLs might suffice (in fact, some NBAR match protocol is only really that, but some NBAR matches regardless of the port usage).
PS:
Also on the subject of SSL, don't forget much can use it. I once matched on it for the purposes of providing secure shell higher queuing priority, worked great for SSH, not so great when secure copy (SCP) also matched against it.
Similar Messages
-
ERROR: RUL-00025:fact class multiple inheritance not supported
I am receiving this erro message when trying to invoke a rule (assert, execute ruleset,retrieve results) on a XML Fact structure that has demo element as parent with a ref to two child elements: invoice and po.
I simply used the wizards to deploy the decide activity so I have no clue what this might be.
The rule session EVALUATEAPPROVAL:230011 failed to execute step assert
RUL-00025:fact class multiple inheritance not supported
oracle.rules.rl.exceptions.RLRuntimeException: fact class multiple inheritance not supported
at oracle.rules.rl.exceptions.ExceptionFactory.createRuntimeMultipleInheritanceException(ExceptionFactory.java:467)
at jess.DefinstanceList.autoDefclass(DefinstanceList.java:996)
at jess.DefinstanceList.assertObject(DefinstanceList.java:570)
at jess.Rete.assertObject(Rete.java:1557)RL only supports single inheritance, either from an interface or a class. JAXB 1.0 generates a set of classes that inherit and implement each other. If the RL code is generated in the wrong order and child classes are generated before parent classes, then you get the indicated exception. In most cases, not importing the element class will prevent this from happening, and in the rest not importing the ObjectFactory class will prevent it (or unchecking the "supportsXpath" option). You can't use the element class in the rules anyway since the properties it inherits from it's parent don't show up in lists.
So, it's not the complexity of the XSD that matters in processing, only that a single inheritance chain is specified. If you follow the original instructions with your complex XSD, I believe you will see it work correctly.
This has been fixed in the as-yet-unreleased 10.1.3.4 version, but the only workaround for released versions is above. -
RUL-00025:fact class multiple inheritance not supported
Hi Everyone,
I am creating a rule for a order schema which accepts OrderTotal and CustomerType and based on both response back if the Approval is required or not. When deploying the process I am getting the "RUL-00025:fact class multiple inheritance not supported." Below is the schema which I am using.
<?xml version="1.0" encoding="windows-1252"?>
<schema targetNamespace="http://www.OrderRequest.com" xmlns:or="http://www.OrderRequest.com" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
<element name="OrderDetailsRequest" type="or:OrderRequestT"/>
<element name="OrderDetailsResponse" type="or:OrderResponseT"/>
<complexType name="OrderRequestT">
<sequence>
<element name="OrderTotal" type="int"/>
<element name="CustomerType" type="string"/>
</sequence>
</complexType>
<complexType name="OrderResponseT">
<sequence>
<element name="ApprovalRequiredFlag" type="string"/>
</sequence>
</complexType>
</schema>
This is what the error is:
The rule session RulesTest:90002 failed to execute step assert
RUL-00025:fact class multiple inheritance not supported
oracle.rules.rl.exceptions.RLRuntimeException: fact class multiple inheritance not supported
at oracle.rules.rl.exceptions.ExceptionFactory.createRuntimeMultipleInheritanceException(ExceptionFactory.java:467)
at jess.DefinstanceList.autoDefclass(DefinstanceList.java:996)
at jess.DefinstanceList.assertObject(DefinstanceList.java:570)
at jess.Rete.assertObject(Rete.java:1557)
at jess.AssertObject.call(ReflectFunctions.java:1198)
at jess.FunctionHolder.call(FunctionHolder.java:30)
at jess.Funcall.execute(Funcall.java:280)
Caused by: oracle.rules.rl.exceptions.MultipleInheritanceException: fact class 'DemoPackage.OrderDetailsRequestImpl' cannot extend both 'DemoPackage.OrderRequestT' and 'DemoPackage.OrderDetailsRequest'
at oracle.rules.rl.exceptions.ExceptionFactory.createMultipleInheritanceException(ExceptionFactory.java:443)
at oracle.rules.rl.common.ClassSymbol.setFactClass(ClassSymbol.java:187)
at oracle.rules.rl.common.ClassSymbol.initialize(ClassSymbol.java:280)
at jess.DefinstanceList.getProperties(DefinstanceList.java:1168)
at jess.DefinstanceList.autoDefclass(DefinstanceList.java:992)
... 33 more
Execution plan for RulesTest:90002
assert fact DemoPackage.OrderDetailsRequest
Please help me!!!
Thank You.For the class DemoPackage.OrderDetailsRequest, either don't import it into the datamodel or set the visibility of it to false. This should fix the issue.
-
Class-map does not support match protocol ssl
I have several 1941/k9's that do not have the class-map command: to suppot ssl. System image is c1900-universalk9-mz.SPA.152-1.T.bin.
class-map match-any af31
match protocol ssl <-- missing.
I did some google searches but come up with nothing.
Is the fix to upgrade IOS? I have found it on other routers running c1900-universalk9-mz.SPA.152-4.M4.bin. I would just upgrade and check but have an extensive change review board with questions before doing so.
Thanks for advice,
HaydnDisclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
I'm not current on NBAR (or NBAR 2), but NBAR used to support loadable modules (PDMs?). Sometimes Cisco would provide those so you could add match protocols without upgrading your IOS.
Otherwise the "fix" would be to upgrade your IOS.
Lastly, depending on what it matching SSL really means to you, using port based ACLs might suffice (in fact, some NBAR match protocol is only really that, but some NBAR matches regardless of the port usage).
PS:
Also on the subject of SSL, don't forget much can use it. I once matched on it for the purposes of providing secure shell higher queuing priority, worked great for SSH, not so great when secure copy (SCP) also matched against it. -
Keyword not supported AttachDbFilename od database
hi guys '*** the Public SQLC ...... is the error line. I tried several ways allgive the same error as shown below after '*** this line. I'm trying to save datain a datagridview. All the code is below. Appreciate any helpJereTheBearImports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlServerCe
Public Class SQLcontrol
'*** keyword not supported "AttachDbFilename" ***
Public SQLCon As New SqlCeConnection("Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\Jere\Documents\Visual Studio 2012\Projects\LeftFieldBaseball2015\BaseballGame.mdf;Integrated Security=True")
'*** keyword not supported "database" ***
'Public SQLCon As New SqlCeConnection("Data Source=(LocalDB)\v11.0;databse =C:\Users\Jere\Documents\Visual Studio 2012\Projects\LeftFieldBaseball2015\BaseballGame.mdf;Integrated Security=True")
Public SQLCmd As SqlCeCommand
Public SQLDa As SqlCeDataAdapter
Public SQLDs As DataSet
Public Params As New List(Of SqlCeParameter)
Public recordCount As Integer
Public exception As String
Public Sub ExecQuery(Query As String)
Try
SQLCon.Open()
SQLCmd = New SqlCeCommand(Query, SQLCon)
'ce
Params.ForEach(Sub(x) SQLCmd.Parameters.Add(x))
Params.Clear()
SQLDs = New DataSet
SQLDa = New SqlCeDataAdapter(SQLCmd)
recordCount = SQLDa.Fill(SQLDs)
SQLCon.Close()
Catch ex As Exception
exception = ex.Message
End Try
If SQLCon.State = ConnectionState.Open Then SQLCon.Close()
End Sub
End ClassPublic Class frmMainField
Private SQL As New SQLcontrol
Private Sub frmMainField_Load(sender As Object, e As EventArgs) Handles MyBase.Load
SQL.ExecQuery("select * from teams")
LoadGrid()
btnSave.Enabled = False
End Sub
Private Sub LoadGrid()
If SQL.recordCount > 0 Then
DGVData.DataSource = SQL.SQLDs.Tables(0)
DGVData.Rows(0).Selected = True
SQL.SQLDa.UpdateCommand = New SqlServerCe.SqlCeCommandBuilder(SQL.SQLDa).GetUpdateCommand
End If
End Sub
Private Sub btnSave_Click(sender As Object, e As EventArgs) Handles btnSave.Click
SQL.SQLDa.Update(SQL.SQLDs)
LoadGrid()
btnSave.Enabled = False
End Sub
Private Sub DGVData_CellValueChanged(sender As Object, e As DataGridViewCellEventArgs) Handles DGVData.CellValueChanged
btnSave.Enabled = True
End Sub
Private Sub DGVData_RowsRemoved(sender As Object, e As DataGridViewRowsRemovedEventArgs) Handles DGVData.RowsRemoved
btnSave.Enabled = True
End Sub
End ClassHi guys;
Phew, I figured it out. using imports.Data.SqlServerCe "note ce on the end"
I deleted Imports System.Data.SqlClient
new connection string
Private SQLCon As New SqlCeConnection("Data Source = MyNewBaseball.sdf;")
That was it.
thx for your help this was a hard one for me. -
Web Deploy error - "This method is not supported by this class"
I have an MVC project which I am trying to deploy to one of our internally-hosted web front end servers via a TFS build process. Our server hosts the MS Deploy service, and other solutions deploy without problems to the same box. The parameters for the build
process are as follows:
/p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:MSDeployPublishMethod=WMSVC /p:MsDeployServiceUrl=https://<server>:8172/msdeploy.axd /p:DeployIISAppPath="<internal.site.com>" /p:username=<username> /p:password=<password>
/p:IncludeIisSettingsOnPublish=false /p:AllowUntrustedCertificate=True /p:OutputPath=bin\ /p:SkipExtraFilesOnServer=True /p:VisualStudioVersion=11.0
The error message I receive at the point the build reaches the deployment activity is:
Web deployment task failed. (Could not complete the request to remote agent URL 'https://<server>:8172/msdeploy.axd?site=<internal.site.com>'.)
Could not complete the request to remote agent URL 'https://<server>:8172/msdeploy.axd?site=<internal.site.com>'.
The request was aborted: The request was canceled.
This method is not supported by this class.
We've found
this StackOverflow post which describes the same error we're experiencing, however the suggested solution is something we already do in our server configuration, so this doesn't resolve the issue for us.
Has anyone seen this error before, or is able to make any suggestions why it is happening?Hi Matt,
You have to have a look in the build log then copy the command that is under Run MSBuild node and executed it on the build agent.
You should find something like below:
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\MSBuild.exe /nologo /noconsolelogger "C:\Builds\....sln" /nr:False /fl /flp:"logfile=C:\Builds\...log;encoding=Unicode;verbosity=normal" /p:SkipInvalidConfigurations=true /p:CreatePackageOnPublish=true /p:DeployOnBuild=true /p:SkipExtraFilesOnServer=True /m /p:OutDir="C:\Builds\...\bin\\" /p:Configuration="DEV" /p:Platform="Any CPU" /p:VCBuildOverride="C:\Builds\....sln.Any CPU.DEV.vsprops" /dl:WorkflowCentralLogger,"C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;BuildUri=vstfs:///Build/Build/31630;IgnoreDuplicateProjects=False;InformationNodeId=14;TargetsNotLogged=GetNativeManifest,GetCopyToOutputDirectoryItems,GetTargetPath;LogProjectNodes=True;LogWarnings=True;TFSUrl=http://...-tfs:8080/tfs/...;"*WorkflowForwardingLogger,"C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\Microsoft.TeamFoundation.Build.Server.Logger.dll";"Verbosity=Normal;" /p:BuildId="aa2d3857-27e9-4854-b44f-4ca625ccd786,vstfs:///Build/Build/31630" /p:BuildLabel="..._2015.02.27.2" /p:BuildTimestamp="Fri, 27 Feb 2015 11:16:41 GMT" /p:BuildDefinition="..."
Daniel -
Name() not supported XSLProcessor class?
Hi,
XSLProcessor doesn't seems to support the node set function name(). Is this true? Or is there something wrong with my code segment below?
<xsl:template match="*">
<TD>
<INPUT>
<xsl:attribute name="NAME">
<xsl:value-of select="name()"/>
</xsl:attribute>
<xsl:attribute name="VALUE">
<xsl:value-of select="."/>
</xsl:attribute>
</INPUT>
</TD>
</xsl:template>
Can someone please advise? Thanks a lot!!!Hi all,
I found the answer already!!! The name() function is not supported in a previous version of the XSLProcessor class! Thanks for your time! Cheers... :)
regards,
Jerry -
Is SPEL binding not supported on TableSelection Buttons ?
Hi
I have an AdvancedTable with multiple selection Checkboxes.
I have a button 'AddToCompare' which adds the selected items into a list
which compares those items.
we have set a limit that the CompareList can contain a max of 5
items,so whenever the 'AddToCompare'
is pressed we add the item and check if the CompareList now has five
items then we hide the button and
if no. of items in the list is less than five then let the button be
displayed.
For hiding the button we have attached a SPEL binding and the
corresponding PVO attribute is set to true
or false as required .
When I place this 'AddToCompare' button as a TableAction button the
SPEL is working fine but if I put it
as a TableSelection button the SPEL is not working.
Is SPEL binding not supported on TableSelection Buttons ?
Thanks,
NaveenSelection buttons are generated automatically. If your UI allows poplists or messageChoice in the place of selection buttons, you can add handle this.
-
Error "This class does not support SAAJ 1.3" in oim 11g
hai all,
i have error "This class does not support SAAJ 1.3" when i running create user.
i already tried added in startWeblogic.cmd and in setDomainEnv.cmd :
-Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl and -Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
step like this site (http://blog.xebia.com/2009/07/14/jax-ws-cxf-and-saaj-on-oracle-weblogic-103/)
i already too set path for = saaj-impl-1.3.jar but the error still same "This class does not support SAAJ 1.3"
i used weblogic 10.3.5, i'm generate soap message used rt.jar (import javax.xml.namespace.QName; etc)
any idea to solving this error ?
thank's
darvesth
Edited by: darvesth on Mar 19, 2013 4:08 AMthank you darvest, i follow your step before.
but i added any steps after that.
1. include saaj-impl-1.13.jar and saaj-api.jar in project adapter
2. add parameter "SOAPConstants.SOAP_1_2_PROTOCOL" in line code, MessageFactory mf= MessageFactory.newInstance()
-> MessageFactory mf= MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
so, my problem already resolve..
i hope this solution usefull to resolve our problem, darvest.
thanks,
Tim BENGA -
So I'm getting the dreaded "does not support directory connections encrypted with ssl" error when attempting to bind clients (10.5) to the server (10.5).
I followed the Apple KB article, but it did not help...double-checked permissions and the config files.
Binding works fine w/o SSL...but evidently SSL does not.
Any news on this?
Thanks.
jHmmm...still running into the same issue...do I need to give the cert reference text file certain permissions in order to work?
I have followed the advice on afp548, and have a self-rolled CA with a self-assigned cert for the server, which is also the dns name of the server. I copied the CA hash and pointed to that instead of the self-signed cert hash, but still...no dice.
-j -
Address family not supported by protocol family: bind
Over the past few days a number of users have reported connection issues with our application. We've been able to track the problem to this line of code:
ServerSocketChannel sc = ServerSocketChannel.open();
sc.socket().bind(new InetSocketAddress("localhost", 0)); <- error thrown
The following error is thrown:
java.net.SocketException: Address family not supported by protocol family: bind
sun.nio.ch.Net.bind(Native Method)
sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
I've read this is something to do with an IPv4 / IPv6 issue. But what I don't understand is that our users have had this working fine for months and we've never had any problems in the past, but within the last couple of days 10 people have contacted us, all with the same issue. We've not released any patches so we've not introduced the problem. Does anyone know what might have changed in the past few days? Did Microsoft release a patch to modify the IPv 4 / 6 protocols?
Apparently the issue might be resolved in Java7, but we have thousands of users, and rolling out a new version of Java is a big upheaval.
Any ideas???
BBBIt uses a JRE that is isolated for our application, so Java updates 'shouldn't' affect it. I have a sneaking suspicion that a Vista update may have changed something, but I can't be sure.
I'm working through the problem with one of our users, and I've changed the code from:
ServerSocketChannel sc = ServerSocketChannel.open();
sc.socket().bind(new InetSocketAddress("localhost", 0));To
ServerSocket sc = new ServerSocket();
sc.bind(new InetSocketAddress("localhost", 0));This works and I'm able to get an available port. However, later in the code it runs this section of code to connect the socket:
void connect() throws IOException, InterruptedException {
int retry;
for (retry = 0; retry < MAX_RETRY; retry++) {
try {
channel = SocketChannel.open();
channel.configureBlocking(false);
//connect to server
channel.connect(serverAddr);
//register events to listen
channel.register(selector, SelectionKey.OP_CONNECT);
while (!channel.isConnected()) {
if (selector.select(1) > 0) {
Set readyKeys = selector.selectedKeys();
Iterator i = readyKeys.iterator();
while (i.hasNext()) {
SelectionKey key = (SelectionKey) i.next();
i.remove();
SocketChannel keyChannel = (SocketChannel) key
.channel();
if (key.isConnectable()) {
if (keyChannel.isConnectionPending()) {
keyChannel.finishConnect();
break;
break;
} catch (Exception e) {
channel.close();
channel = null;
try {
Thread.sleep(150);
} catch (Exception ex) {
if (retry == MAX_RETRY) {
throw new InterruptedException("Maximum retry number reached!");
channel.register(selector, SelectionKey.OP_READ);
}It's now falling over on this line:
channel.connect(serverAddr);
java.net.SocketException: Address family not supported by protocol family: connect
serverAddr is a InetSocketAddress, channel is a SocketChannel, which appears not to be supported on the machine that are having these connection issues.
I'll be honest, I have little or no experience of implementing Sockets, and since I can't replicate the actual problem that our users are having it makes it even hard to fix it or try to code a workaround. The code above is from an OpenSource project, i.e. it's not something I wrote. In other words, I'm kinda up the 'proverbial creek'!
Could anybody be kind enough to steer me in the right direction for a workaround that doesn't use a SocketChannel? It really would be appreciated!
BBB -
QOS: egress police command not supported in non-leaf classes
Hello,
I have issue with egress policers on EFP (Service instance).
When configure two egress policers on EFPs (on one physical interface), I received a message:
ME-3600X(config-if-srv)#service-policy output VLAN-50M
QOS: egress police command not supported in non-leaf classes
QoS: Policy attachment failed for policymap VLAN-50M
The configuration looks easy:
policy-map VLAN-50M
class VLAN
police cir 50000000
exceed-action drop
class-map match-all VLAN
match protocol ip
interface GigabitEthernet0/11
description TEST
switchport trunk allowed vlan none
switchport mode trunk
mtu 1998
load-interval 30
service instance 199 ethernet
encapsulation dot1q 199
rewrite ingress tag pop 1 symmetric
service-policy output VLAN-50M
xconnect 82.119.245.231 3291 encapsulation mpls
service instance 500 ethernet
description L2MNG-SWITCHE
encapsulation dot1q 500
rewrite ingress tag pop 1 symmetric
bridge-domain 500
I tried to attach the same policy-map to Service Instance 500, with the messages above mentioned.
I am not sure if this is correct behaviour, and what means term "non-leaf class".
IOS version is 15.2(4)S2 with AdvancedMetroIPAccess.
Best regards,
JosefPlatform supports three level hierarchy - Port, VLAN and Class.
Class is the leaf level.
Queuing is done only at the leaf level.
You need to attach your policy to the port level policy so that it can be a two level policy.
Three Level Class-default Policy Example:
policy-map leaf
class class-default
queue-limit xxxxx bytes
policy-map logical
class class-default
service-policy leaf
policy-map root
class class-default
service-policy logical
Invalid Queue-Limit Policy Configuration Example:
This case "class-default" is being considered as the port level.
Following QOS policy configuration failed because the configuration check assumes user is trying to apply the queue-limit at the vlan level which is not supported.
policy-map child-1
class class-default
queue-limit 256 packets
policy-map VLAN-OUT
class class-default <<< Class default is being assumed at the port level , Child policy at the second level
shape average 5000000
service-policy child-1
interface GigabitEthernet0/5
switchport trunk allowed vlan none
switchport mode trunk
service instance 2 ethernet
encapsulation dot1q 60
rewrite ingress tag pop 1 symmetric
bridge-domain 60
3600-HL-2-N(config)#interface GigabitEthernet0/5
3600-HL-2-N(config-if-srv)#service-policy output VLAN-OUT
QOS: queue-limit command not supported in non-leaf classes
QoS: Policy attachment failed for policymap VLAN-OUT
*Feb 13 09:55:28.700: %QOSMGR-3-QLIMIT_LEVEL_ERROR: Qlimit command not supported in non-leaf classes -
PanelGrid with binding attribute not rendering when event on page fires
I am having a similar issue with my components not being rendered from a dynamic binding attribute as described by this post:http://forum.java.sun.com/thread.jspa?threadID=671672 but for different reason. I have combed the forum and other sources for a week now, tried numerous variations of this based on suggestions I've read for rendering dynamic components and am unable to find the problem. I would appreciate guidance as I don't know what else to do and I imagine there is something basic about the JSF flow layout or component classes I am not doing correctly.
From a high level, I have a page with two panel groups. The first contains a list of command links (like a menu) that have an actionlistener that populates a list of QueryVariable objects called filterCriteria in the backing bean based on the selection made and then calls a function to update components in the second panel. The second panelGroup contains a panelGrid with a binding attribute that constructs a dynamic set of input fields based on the content of the filterCriteria list. When I first naviagate to this page from another page, the fields are rendered properly. However, if I then select a commandLink from the menu, the panelGrid disappears and is not rendered.
I've stepped through the code in a debugger and my actionlistener is called when I select a command link. However, the binding attribute method is not called at this time, so I added a direct call to it from the action listener. I know the actionlistener is working because I've verified it in the debugger and if I navigate away and come back to the page, then the binding method is called and the new selection is reflected in a rendered panelGrid. Why is it not rendering though when I first select the commandLink and the page is updated. Also, fyi, there is an action method for the commandlinks but it returns null;
FWIW, I'm using MyFaces and Facelets in my application.
Below is my code. This is inside a managed session bean:
JSF Snippet:
<h:panelGrid id="inputVarsTable" columns="3" binding="#{query.table}"/>
public HtmlPanelGrid getTable() {
if(table == null)
table = new HtmlPanelGrid();
return constructSearchInputTable();
public void setTable(HtmlPanelGrid table) {
this.table = table;
// Updates table component to reflect filterCriteria
public HtmlPanelGrid constructSearchInputTable()
HtmlOutputLabel outLabel;
HtmlOutputText outText;
HtmlInputText inText;
HtmlMessage message;
List<UIComponent> children;
ValueBinding vb;
FacesContext facesContext = FacesContext.getCurrentInstance();
UIViewRoot uIViewRoot = facesContext.getViewRoot();
Application application = facesContext.getApplication();
children = table.getChildren();
children.clear();
try {
for (int i = 0; i < getFilterCriteria().size(); i++) {
QueryVariable var = getFilterCriteria().get(i);
String id = "var" + i;
//<h:outputLabel for="#{var.name}" styleClass="label">
outLabel = new HtmlOutputLabel();
outLabel.setFor(id);
outLabel.setStyleClass("label");
// <h:outputText value="#{var.name}" />
outText = new HtmlOutputText();
outText.setValue(var.getName());
outText.setParent(outLabel);
outLabel.getChildren().add(outText);
outLabel.setParent(table);
children.add(outLabel);
//<h:inputText id="#{var.name}" value="#{var.value}" required="true" />
inText = new HtmlInputText();
inText.setId(id);
String bind = "#{query.filterValues['" + var.getName() + "']}";
inText.setValueBinding("value", application.createValueBinding(bind));
if(var.getDefaultValue() == null)
inText.setRequired(true);
inText.setParent(table);
children.add(inText);
//<h:message for="#{var.name}" styleClass="errorText"/>
message = new HtmlMessage();
message.setFor(id);
message.setStyleClass("errorText");
message.setParent(table);
children.add(message);
} catch (Exception e) {
log.error(e);
return table;
// Command Link Menu ActionListener
public void structuredQuerySelection(ActionEvent e) {
queryType = QueryType.StructuredQuery;
UICommand cmd = (UICommand) e.getSource();
filterSelection = (String) cmd.getValue();
Map<String, SearchRequestCtx> queries = pdp.getGenericMetadata().savedQueries;
SearchRequestCtx ctx = queries.get(filterSelection);
filterCriteria = new ArrayList<QueryVariable>();
filterCriteria.addAll(ctx.getVariables());
constructSearchInputTable();
// Command Link Menu Action
public String selectStructuredQuery()
return null;
}BTW, this is my first post and I don't really know how that Duke Dollar thing works but I'm happy to offer some to anyone that can solve this issue for me.
Thanks,
KenGlad to hear I am not the only one struggling with this type of issue.
I tried your suggestion but it caused a NoSuchElementException when the page tried to render. Stepping through the code, the init function is always called after my panelGrid is constructed. I even commented out the logic to clear the children and confirmed that in the constructed page, the outputText component that binds to init is the first element on the page - right after the opening body tag. Maybe, JSF doesn't necessarily construct the page in top to bottom order? Also, the exception makes me think that this gets called too late in the lifecycle to work. Were you able to get this to work?
java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:427)
at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:515)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:445)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)Ken -
Advanced Search : not supported
I'm using JHeadStart 11g with the latest path.
When I choose option "samePage" on advanced search, and click and the "Search" button on the page, the following error message is shown.
<Utils><buildFacesMessage> ADF: Adding the following JSF error message: Method WebElsServiceDataControl.dataProvider.advancedSearch() not supported
oracle.jbo.InvalidOperException: Method WebElsServiceDataControl.dataProvider.advancedSearch() not supported
at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:491)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2134)
at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3020)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:257)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1625)
at oracle.jheadstart.controller.jsf.bean.JhsSearchBean.executeAdvancedSearchBinding(JhsSearchBean.java:414)
at oracle.jheadstart.controller.jsf.bean.JhsSearchBean.advancedSearch(JhsSearchBean.java:258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
Can you give any cue that I can look into? Thanks.I have found out the reason.
since I have a custom base class for ADF BC ApplicationModuleImpl, JHeadStart will not do anything to change the custom base class from ApplicationModuleImpl to JhsApplicationModuleImpl
Thanks for the advice. -
This operation is not supported in WCF Client plz help
Hi
I am new to WCF and would like to create duplex (TCP binding) WCF service as well as WCF client.
see the below code. When I run the application in WCF client it on every operationcontract "This operation is not supported in WCF Client"
[ServiceContract(CallbackContract=typeof(ICalculatorDuplexCallback))]
public interface ICalculatorDuplex
[OperationContract(IsOneWay = true)]
void Clear();
[OperationContract(IsOneWay = true)]
void AddTo(double n);
[OperationContract(IsOneWay = true)]
void SubtractFrom(double n);
[OperationContract(IsOneWay = true)]
void MultiplyBy(double n);
[OperationContract(IsOneWay = true)]
void DivideBy(double n);
public interface ICalculatorDuplexCallback
[OperationContract(IsOneWay = true)]
void Equals(double result);
[OperationContract(IsOneWay = true)]
void Equation(string eqn);
namespace DuplexWCFService
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
public class CalculatorService : ICalculatorDuplex
double result;
string equation;
ICalculatorDuplexCallback callback = null;
public CalculatorService()
result = 0.0D;
equation = result.ToString();
callback = OperationContext.Current.GetCallbackChannel<ICalculatorDuplexCallback>();
public void Clear()
callback.Equation(equation + " = " + result.ToString());
result = 0.0D;
equation = result.ToString();
public void AddTo(double n)
result += n;
equation += " + " + n.ToString();
callback.Equals(result);
public void SubtractFrom(double n)
result -= n;
equation += " - " + n.ToString();
callback.Equals(result);
public void MultiplyBy(double n)
result *= n;
equation += " * " + n.ToString();
callback.Equals(result);
public void DivideBy(double n)
result /= n;
equation += " / " + n.ToString();
callback.Equals(result);
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="tcp_secure">
</binding>
</netTcpBinding>
</bindings>
<services>
<service name="DuplexWCFService.CalculatorService">
<endpoint address="" binding="netTcpBinding" bindingConfiguration="tcp_secure"
contract="DuplexWCFService.ICalculatorDuplex">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://IRFAN-TSDD:8733/DuplexWCFService" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>Hi,
The following is a list of features not supported by WCF Test Client:
Types:
Stream,
Message,
XmlElement,
XmlAttribute,
XmlNode, types that implement the
IXmlSerializable interface, including the related
XmlSchemaProviderAttribute attribute, and the
XDocument and
XElement types and the ADO.NET
DataTable type.
Duplex contract.
Transaction.
Security: CardSpace , Certificate, and Username/Password.
Bindings: WSFederationbinding, any Context bindings and Https binding, WebHttpbinding (Json response message support).
For more information, you could refer to:
https://msdn.microsoft.com/en-us/library/bb552364%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396#sectionToggle19
https://social.msdn.microsoft.com/Forums/vstudio/en-US/5787cd27-d8ae-47a3-8281-aa86e56dea0b/how-to-test-duplex-service-using-wcftestclientexe-tool?forum=wcf
For
testing WCF duplex service:
http://stackoverflow.com/questions/8154102/how-do-i-test-my-wcf-duplex-service
Regards
Maybe you are looking for
-
Does one Simplied Chinese character occupy 1 bype in SAPscript in Ecc6.0?
Recently,we upgraded our SAP system from R3 4.6C to ECC6.0. But one simplied chinese character occupy 1 byte when I printed a sapscript form. It means that a field which length is 12 bytes can output 12 simplied chinese character, otherwise it could
-
Compile string for compile form fmb file in App server 10g
Hi Friends, I send an email to user to request compile files(fmx) with source code directory in server side. But user ask me "Where is the compile string and how to I execute it" also user send below info as /u01/as10g/as_home/bin/f90genm userid=mypr
-
I'm new in Oracle. And I need to get the sql file of a database which already created so that I can use this sql file to create all the tables or modify some of the fields easily. How to get started? Any recommend documents?
-
I have problems with the screen. Using the screen is erratic. Sometimes I can finish a call sometimes not. Sometimes I can text . The screen is erratic. sometimes when requesting a name from the contact list the screen does not allow me to request. A
-
Sparks coming from power connection and USB ports
Hi. My powerbook has recently started spitting out sparks from left, right and centre. Everything from connecting the power cord to connecting a USB device like a card reader. I've been reading up on threads where people are having similar problems b