TX and RX Descriptors
Hello,
I tried searching on a lot of sites but need a conclusive answer. I am having problems with a highly-loaded servers, and concluded that the connection hangs ALWAYS for the first 80 packets then continues as normal ( eg. ping hangs for first 80 packets, then when it reaches the 81 it shows the first 80 packets as success ). After doing some research :
1. [Queue Lenghts|http://icfamon.dl.ac.uk/papers/DataTAG-WP2/reports/task1/20021205-goutelle.pdf]
The tx_ring and rx_ring are driverdependent
(e.g. the e1000 driver set theselengths to 80 packets) ;2. [e1000g|http://docs.sun.com/app/docs/doc/819-2254/e1000g-7d?a=view]
NumRxDescriptors
Number of available receive descriptors. Multiple receive descriptors increase receive performance, but decrease available memory.
80–4096
Allowed values.
1024
Default.
NumTxDescriptors
Number of transmit descriptors available to the driver. Mulitiple transmit descriptors increase transmit performance, but decrease available memory.
80–4096
Allowed values.
1024
Default.3. [e1000g_sw.h|http://fxr.watson.org/fxr/source/common/io/e1000g/e1000g_sw.h?v=OPENSOLARIS]
125 #define MIN_NUM_TX_DESCRIPTOR 80
126 #define MIN_NUM_RX_DESCRIPTOR 80Some drivers allow you to tune the size of the transmit ring or the number of transmit descriptors.
The hardware transmit queue controls the maximum number of buffers that can be queued to the adapter for concurrent transmission. One descriptor typically only points to one buffer and a message might be sent in multiple buffers. Many drivers do not allow you to change the parameters.
At this point I am somewhat lost and numerous ideas cross my head. Is the server running out of RX/TX descriptors to point to buffers? Confused.
If i got this all wrong please tell me. I am just putting head to head some bits and pieces of informations I got from around.
Would increasing the number of RX/TX descriptors in /kernel/drv/e1000g.conf would solve the problem at the cost of memory ?
My server is sun4v sparc SUNW,SPARC-Enterprise-T5220 with patch 138888-08, and though I have other system just like this one ( but with different applications on top) this is the only one behaving like so ( with 4 DBs on top ).
Thank you in advance.
Edited by: liviu.b on Sep 21, 2009 12:59 PM
Yes, your understanding is correct on this.
Similar Messages
-
WAR files (Tomcat) and deployment descriptor
Hello,
I am currently writing a small utility to package a web application for Jakarta Tomcat as a .war file.
I have a functional version that imports the deployment descriptor web.xml, but I'd like to make it possible for the user to edit or create from scratch that file. I use the DOM API to make a logical model of my web.xml, but the parser won't accept the external dtd definition :
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
Here is my parser :
private void parse(File in) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(true);
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse(in); (((*)))
catch (...)
}//parse
---------------------------------------------It seems I have no further controls on DocumentBuilder and DocumentBuilderFactory.
The builder.parse call generates this exception :
java.net.NoRouteToHostException: Operation timed out: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at org.apache.crimson.parser.Resolver.resolveEntity(Resolver.java:389)The problem seems to be located in DOM's DefaultHandler entity resolver, but I don't ee clearly what to do.
Thanks for helping.Hi,
I already tried every combination of settings with
DocumentBuilderFactory.setNamespaceAware
DocumentBuilderFactory.setValidating
DocumentBuilderFactory.setCoalescing
DocumentBuilderFactory.ExpandEntityReferencesI had the same result. Here is the exact dump :
java.net.NoRouteToHostException: Operation timed out: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
at sun.net.www.http.HttpClient.New(HttpClient.java:289)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:379)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:472)
at org.apache.crimson.parser.Resolver.resolveEntity(Resolver.java:389)
at org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntit
y.java:88)
at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:2986)
at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav
a:2721)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
.java:179)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:161)
at DOMView.main(DOMView.java:96)This shows that the entity resolver tries to access the distant DTD, so I tried to implement myself the EntityResolver interface, but I didn't well understood
what to do with that InputStream it has to return. -
WLST and JDBC Descriptor files
I'm trying to change the configuration of an portal domain. In 8.1 this was no problem, but in 9.X there's a notion of a JDBC Descriptor file to describe the JDBC connection.
So when I run:
readTemplate(r'/%bea_home%/weblogic92/common/templates/applications/wlp.jar')
cd('JDBCSystemResource/portalDataSourceAlwaysXA')
When I look at this JDBC resource all it contains is a reference to a descriptor file.
How to I change these settings (we're using Oracle and not Pointbase)?
Second question:
Where are all the other jdbc settings set? When I run the configuration wizard, I see a lot of data sources - among them a sample data source. These are no in the referenced JDBC descriptor files - so where do they come from? I'm talking about the following data sources which show up in the configuration wizard:
- p13nDataSource
- cgDataSource
- cgDataSource-nonXA
- samplesDataSource
As a sidenote - I think that BEA should document how one alters JDBC connections which are already defined inside a template. I haven't found any such documentation.
Trond Andersen, Invenia AS, http://www.invenia.noThe problem with the IOException (Permission denied) is
solved. It arised when I tried to create the domain in my
ClearCase view. When doing the same thing in my home folder
I didn't have this problem.
How about creating a JMSDestinationKey? Anyone having a
solution for this?
//M
"Martin Gustavsson" <[email protected]> wrote:
>
>
>
Thanks for your quick response. I attach my config.xml.
//Martin
Satya Ghattu <[email protected]> wrote:
Hello Martin,
Martin Gustavsson wrote:
Some problems with configToScript (WLST).
I have a config.xml which I run configToScript on.
It works fine and the message I get at the end is that I
should replace "ChangeME" to proper values. For my
JDBC Connection-pool, I replace it with a cleartext password.
But what should I replace it with for EmbeddedLDAP and
SecurityConfiguration? If I run the script
without changing it I get this critical error:
<Jun 22, 2004 5:06:01 PM CEST> <Critical> <EmbeddedLDAP>
<BEA-171517><An error occurred while attempting to get
exclusive access to the embedded LDAP data files
directory - temp/myserver/ldap/ldapfiles. The exception thown
is java.io.IOException: Permission denied.>I haven't seen this myself and could not reproduce. It might
help if you remove the myResource.setCredential("changeME")
for the embedded ldap and security configuration from the
script. Server will assign a default value and you should be
all set.
Another problem I have when running the generated script is
that it fails to create a JMSDestinationKey:
Error occured while performing create : Cannot create MBean
of type JMSDestinationKey. You can only create MBean's
children to the current cmo of type: Domain. Use dumpStack()
to view the error stack trace.Could you please attach your config.xml?
Thanks,
-satya
Even in interactive mode I have the same problem and the
dumpStack() gives me zero.
I'm running on Linux RedHat using WebLogic 8.1SP2.
Regards,
Martin -
Hi, all..
This post is regarding a problem that I am facing accessing instance fields from KNI. The KNI_GetFieldID requires us to provide the class signature, or field descriptor. For reference types, it is of the form
"L<full package name separated by forward slashes>/<class name>;"
ex: "Ljava/lang/String;" for String objects.
I have the following case:
// all classes in package named "MyPackage"
class1 {
public int a;
class2 {
public class1 class1object;
class3 {
public class2 class2object;
Now I declare an object of class3 in another public class and initialize the integer in class1.
Following is the situation:
public class Test {
public class3 class3object;
//methods
public void fill();
public native int nativeDemoMethod();
Now fill() above fills the integer (defined in class1).
The native method, nativeDemoMethod() will have the KNI implementation and should access the integer from class1 via class Test.
The native file is named:
Java_MyPackage_Test.c
The question is:
For accessing the integer of class1 using the object of class Test, what should be the field descriptor/ signature that should be provided in the GetFieldID?
I tried using "L/MyPackage/class1;" but it does'nt work.
Any help in this regard will be highly appreciated..
Thanks in advance!!
Regards,
RajMake that "LMyPackage/class1;"
-
WLS 6.1 And EJB Descriptors.
I have been meesign around with WLS6.1 and tryign to get my deployment
descriptors online. The auto generaator made a mess of things. However, why
is it that I cant find where to enter a JNDI name for my beans or their refs
and why cant I find out how to spcify a topic for a JMS bean. Im a tad lost
and would appricate some help.
Robert Simmons Jr.
Senior Software Engineer
Ingenium Pharmaceuticals, Munich Germany.What's that "auto generator" you're talking about?
=========
The JNDI name is specified as the <jndi-name> element of
weblogic-ejb-jar.xml. This would be the last element of each bean's
description. Example:
<weblogic-enterprise-bean>
<ejb-name>example</ejb-name>
<jndi-name>beanJNDIName</jndi> <!-- HERE -->
</weblogic-enterprise-bean>
=========
JMS topics should be specified as resource references. Example:
In ejb-jar.xml:
<enterprise-beans>
<entity> <!-- or session or message-driven -->
<resource-ref> <!-- HERE -->
<res-ref-name>jms/aTopic</res-ref-name>
<res-type>javax.jms.Topic</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
and in weblogic-ejb-jar.xml:
<weblogic-enterprise-bean>
<ejb-name>example</ejb-name>
<reference-descriptor> <!-- HERE -->
<resource-description>
<res-ref-name>jms/aTopic</res-ref-name>
<jndi-name>example-topic-jndi-name</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>beanJNDIName</jndi>
</weblogic-enterprise-bean>
and then you can look up this in the code with:
Topic t = (javax.jms.Topic)ctx.lookup("java:comp/env/jms/aTopic");
Good luck,
Emmanuel
"Robert Simmons" <[email protected]> wrote in message
news:[email protected]..
I have been meesign around with WLS6.1 and tryign to get my deployment
descriptors online. The auto generaator made a mess of things. However,why
is it that I cant find where to enter a JNDI name for my beans or theirrefs
and why cant I find out how to spcify a topic for a JMS bean. Im a tadlost
and would appricate some help.
Robert Simmons Jr.
Senior Software Engineer
Ingenium Pharmaceuticals, Munich Germany. -
Basic TCP and file descriptor question
Hi all,
I have DS 5.1 sp 1 and Solaris 8.
how does the configurable "nsslapd-maxdescriptors" and "ulimit -n" works ?
I assume that :
1. nsslapd-maxdescriptors <= "ulimit -n".
Current configuration is, nsslapd-maxdescriptors = 4096 and "ulimit -n" = 256. There are "currentconnections: 3212". These crazy connections is the "connection pool" from weblogic and others. I still able to browse using "ldapsearch" and similiar tool like "ldapbrowser".
2. "tcp_conn_req_max_q" is not directly related to these parameters, since it describes concurrent connections. My "tcp_conn_req_max_q" = 128.
"nsslapd-threadnumber", (=512 currently). How is this related to "nsslapd-maxdescriptors" and "tcp_conn_req_max_q" ? It this threadnumber per client connection perspective or Sun DS perspective.
can some1 shed a light on this ? or give me some reference to read.
thanks alot,got it !
It's all in reference guide.... should have ransack SUN repository first....
cheers -
Bash, awk and file descriptors
Hi guys,
I'm thinking about this piece of command lines:
[user@host ~]$ echo "first word" > test
[user@host ~]$ cat test
first word
[user@host ~]$ { rm ./test && awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
[user@host ~]$ cat test
word first
[user@host ~]$ { awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
[user@host ~]$ cat test
[user@host ~]$ ls -l test
-rw-r--r-- 1 user user 0 17 apr 22.06 test
I wonder why:
{ rm ./test && awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
works as I expect (the file "test" have words in reverse order), while instead:
{ awk -F' ' '{ print $2,$1 }' > ./test; } < ./test
give a file "test" empty, with size 0.
Why and how the leding "rm" make the difference?
ThanksMine wrote:
bohoomil wrote:OP
AHAHAH... you're very amusing.
Op has many meanings, what of the thoundas I find on internet is the meaning /dev/zero was thinking?
OP=OPerating system
OP=Original Poster
OP=Operator Access
(and so on...)
Less sarcasm (offsite) and more pragmatism, please.
http://netforbeginners.about.com/od/int … -Is-OP.htm
Happy ? -
How do I send an array over endpoint 2 and receive an array over endpoint 1?
Background:
I'm a device developer. I have an HID device that interrupt transfers over endpoint 1 and endpoint 2. The device enumerates successfully as an HID on mac, windows, and linux. I've use a couple different .dll files to communicate with the device using visual studio and python with some success and now I'd like to get it to work in labview.
Status to date:
1. Successfully installed device hijacker driver so NI MAX can see the device as USB::0x####::0x####:erialNumber::RAW (# inserted to protect the innocent and SerialNumber is an actual number)
2. I can see the device in MAX. Tried to send a line of numbers and something is sent back, but it isn't useful yet.
3. Tried interruptusb.vi and it doesn't do anything but timeout.
4. Tried Read USB Descriptor Snippet1.vi and an 18 byte array shows up and the VID and PID are parsed out correctly if the bRequest is Get Descriptor and the Descriptor Type is Device. None of the endpoint descriptor types return anything. A bRequest won't trigger a device function. It needs an array over the out endpoint.
The problem:
Intuitively I'm at a loss of what to do next. The device needs to receive a command from a 16 byte array gets passed through the out endpoint (2). Then it will respond with a 16 byte array through the IN endpoint(1). It seems as though the interruptusb.vi should work, but the interrupt transfer is a receive only demonstration. How should I format a 16 byte array to go through the out endpoint? Does it need to be flattened?Thanks for the tip.
The nuggets were great for getting started and helped with installing the labview hijack driver for the HID device. Closer examination may lead to the conclusion that the code I'm using is very very similar to the nugget with minor changes to the output. Definitely the nuggets are useful, but for my device, there is more to it.
It is not USBTMC compliant. It requires an array of bytes be sent and received. The problem may have to do with timing and ensuring that the byte transfer is correct. When communicating from visual studio, a declared array of characters works fine. I tried that with this setup and it doesn't work consistently. Of particular concern is why with this setup the device shows up, doesn't work properly until stopped, then works fine, but when the labview VI is stopped, the device disappears and no longer available in the VISA combobox. The Device Manager still shows the device, but Labview must have an open handle to it.
I'd really like to be able to call the dll used in Visual Studio, so the user can choose to use the included software or a Labview VI without having to reinstall a driver. Afterall, HID is great because the driver is under the hood. Having to load one for Labview defeats the purpose of developing an HID device. If I wanted to load a driver, I'd program the device to be a USB-Serial device and use the labview VISA serial vi's.
For now I'll be happy to get a stable version in Labview that will communicate consistently even if it is the hijacked driver. -
Power Mac G5 and a Laserwriter Pro 630 - Is it Possible?
Another question as I look to upgrade my father's computing setup.
He probably wants to keep his older LaserWriter Pro 630. I'm going to load OS X Panther and Classic 9.2.2 onto the Power Mac G5. Is it possible to get the LaserWriter to print on a straight ethernet connection? Or do I need to devise another method to make it work. Also what's the scoop on drivers, AppleTalk, etc? Thanks very much.112491- LaserWriter Pro 630: Technical Specifications
The laserWriter Pro 630 is a Postscript level 2 printer with an Ethernet port. It does NOT support LPR/LPD, so it must be addressed using AppleTalk-over-Ethernet. No adapter is required unless you intend to use a pre-Ethernet Mac. The printer is supported with the drivers built in to Macs running 8, 9, and all versions of X using a universal LaserWriter Driver and a descriptor file for that specific printer.
On the Mac, you must turn on AppleTalk on the Ethernet interface you are using. Some third-party Wireless Base Stations refuse to pass AppleTalk packets, so if you need a new Wireless Base Station, use Apple or stick to the major brands.
Message was edited by: Grant Bennet-Alder -
How to specify OAS instance in deployment descriptor
Hi
I've got OAS 10.1.3.1.0, where exist home, home1, home2... instances. In JDev I've developed web app. and deployment descriptor for it. How to specify correct instance in depl. descriptor?
Thank youSorry, it's still not clear. You have a deployment profile. Now:
Are you right-clicking that profile and saying "deploy to <app server>?" If so, you define the instance when you created the app server connection.
Otherwise, if you're using some other way of deploying (e.g., AS control), you explicitly navigate to the instance and deploy the app from there.
John -
EJB compilation and deployment problems
Dear fellows
I have good understanding of EJB development process, but the compilation and deployment process of EJB is very problematic for me. Please write me the complete steps which should include:
1. Starting from class, interface programs creation
2. Package creation and accessing it along with class path setting
3. How and where to compile these classes and interfaces (app server details), JAR
4.deployment details on any app server like SUN, web logic
Kind regards
Shahzad faisalDear fellowsDear Shahzad faisal
Start with the JEE5 tutorial:
http://java.sun.com/javaee/5/docs/tutorial/doc/
Part 3 discusses EJB stuff
I would recommend going to a few samples, bundled with most of the appservers to see the appserver specific stuff.
>
I have good understanding of EJB development process,
but the compilation and deployment process of EJB is
very problematic for me. Please write me the complete
steps which should include:
1. Starting from class, interface programs creationSo you have the classes and interface implemented.
Next thing is to create a ejb-jar.xml in which your EJBs are defined (optional for EJB3.0)
2. Package creation and accessing it along with class
path settingPackaging all in a jar file is enough for an appserver to find your classes.
3. How and where to compile these classes and
interfaces (app server details), JARCompilation usually needs the javx.ejb.* classes, most appservers have a j2ee.jar in which the javax.* classes you need are present.
in jour jar file you package your classes and deployment descriptor
4.deployment details on any app server like SUN, web
logicDeployment to appservers is product specific, see the manual here.
you may want to add some other , vedor specific, deployment settings which are not ejb specification defined, these go into a vendor specific DD, for Sun for example the sun-ejb-jar.xml.
>
Kind regards
Shahzad faisal -
How to compile and deploy an ejb into Sun ONE app.server 7.0
I am new to Sun ONE application server. I Have .java files and deployment descriptor files with me. How should proceed. When i tried to use asant it is saying that build.xml not found. I copied build.xml from some other directory to the current directory. Then it is saying that common.xml not found. Please help.
Regards,
Nagaraju.Hi,
The build.xml file should be in a directory from where
you are running the asant command.
To resolve the common.xml file not found error,
open your build.xml and check from which location the common.xml file is incuded.
In the sample application it is four directories above
the directory where build.xml is located.
You can copy the common.xml in the current directory and then change the following in your build.xml
<!ENTITY include SYSTEM "../../../../common.xml">
to <!ENTITY include SYSTEM "common.xml">
Hope this helps.
Get back in case you have more issues -
Any idea why this kind of error would occur? It happens only when I create a one-one mapping between Transcation and Attachment. If I remove the mapping it works fine.
Thanks,
Rajiv
EXCEPTION [TOPLINK-0] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.IntegrityException
DESCRIPTOR EXCEPTIONS:
EXCEPTION [TOPLINK-93] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DescriptorException
EXCEPTION DESCRIPTION: The table [TRX_ATTACHMENT] is not present in this descriptor.
DESCRIPTOR: Descriptor(gov.usdoj.ojp.gms.toplink.jdo.transaction.Transaction --> [DatabaseTable(TRX_TRANSACTION)])
EXCEPTION [TOPLINK-41] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DescriptorException
EXCEPTION DESCRIPTION: A non-read-only mapping must be defined for the sequence number field.
DESCRIPTOR: Descriptor(gov.usdoj.ojp.gms.toplink.jdo.transaction.Transaction --> [DatabaseTable(TRX_TRANSACTION)])Darren,
Below are the descriptors generated by Toplink for the Transaction and Attachment descriptors. At the bottom of the method for buildAttachmentDescriptor there is a One to One mapping. If I remove that mapping the descriptors initialize fine. I'm not sure how adding the mapping makes the sequence field read only.
<pre>
public Descriptor buildAttachmentDescriptor() {
Descriptor descriptor = new Descriptor();
descriptor.setJavaClass(gov.usdoj.ojp.gms.toplink.jdo.transaction.Attachment.class);
descriptor.addTableName("TRX_ATTACHMENT");
descriptor.addPrimaryKeyFieldName("TRX_ATTACHMENT.TRX_ATTACHMENT_ID");
// Descriptor properties.
descriptor.useSoftCacheWeakIdentityMap();
descriptor.setIdentityMapSize(100);
descriptor.useRemoteSoftCacheWeakIdentityMap();
descriptor.setRemoteIdentityMapSize(100);
descriptor.setSequenceNumberFieldName("TRX_ATTACHMENT.TRX_ATTACHMENT_ID");
descriptor.setSequenceNumberName("TRX_ATTACHMENT_SEQ");
descriptor.setAlias("Attachment");
// Query manager.
descriptor.getQueryManager().checkCacheForDoesExist();
//Named Queries
// Event manager.
// Mappings.
DirectToFieldMapping idMapping = new DirectToFieldMapping();
idMapping.setAttributeName("id");
idMapping.setFieldName("TRX_ATTACHMENT.TRX_ATTACHMENT_ID");
descriptor.addMapping(idMapping);
DirectToFieldMapping nameMapping = new DirectToFieldMapping();
nameMapping.setAttributeName("name");
nameMapping.setFieldName("TRX_ATTACHMENT.FILE_NAME");
descriptor.addMapping(nameMapping);
//!!!!!!!!PROBLEM MAPPING!!!!!!!//
OneToOneMapping blobMapping = new OneToOneMapping();
blobMapping.setAttributeName("blob");
blobMapping.setReferenceClass(gov.usdoj.ojp.gms.toplink.jdo.transaction.BlobData.class);
blobMapping.useBasicIndirection();
blobMapping.addForeignKeyFieldName("TRX_BLOB.TRX_ATTACHMENT_ID", "TRX_ATTACHMENT.TRX_ATTACHMENT_ID");
descriptor.addMapping(blobMapping);
return descriptor;
public Descriptor buildBlobDataDescriptor() {
Descriptor descriptor = new Descriptor();
descriptor.setJavaClass(gov.usdoj.ojp.gms.toplink.jdo.transaction.BlobData.class);
descriptor.addTableName("TRX_BLOB");
descriptor.addPrimaryKeyFieldName("TRX_BLOB.TRX_BLOB_ID");
// Descriptor properties.
descriptor.useSoftCacheWeakIdentityMap();
descriptor.setIdentityMapSize(100);
descriptor.useRemoteSoftCacheWeakIdentityMap();
descriptor.setRemoteIdentityMapSize(100);
descriptor.setSequenceNumberFieldName("TRX_BLOB.TRX_BLOB_ID");
descriptor.setSequenceNumberName("TRX_BLOB_SEQ");
descriptor.setAlias("BlobData");
// Query manager.
descriptor.getQueryManager().checkCacheForDoesExist();
//Named Queries
// Event manager.
// Mappings.
DirectToFieldMapping dataMapping = new DirectToFieldMapping();
dataMapping.setAttributeName("data");
dataMapping.setFieldName("TRX_BLOB.BLOB_INFO");
descriptor.addMapping(dataMapping);
DirectToFieldMapping idMapping = new DirectToFieldMapping();
idMapping.setAttributeName("id");
idMapping.setFieldName("TRX_BLOB.TRX_BLOB_ID");
descriptor.addMapping(idMapping);
return descriptor;
</pre>
Hello,
I'm guessing that by looking at the error message that the sequence number field is not writable. Also, ensure that the TRX_ATTACHMENT table is in the database.
Darren -
Creating management accounts for protected accounts and groups in Active Directory
I'm following step-by-step instruction for creating management accounts for protected groups that I found in Microsoft book "Best Practise for Securing Active Directory", published april 2013.
What is confusing me is the "Enabling management accounts to modify the membership of protected groups" step. When I use DSACLS command:
Dsacls "CN=AdminSDHolder,CN=System,DC=MyDomain,DC=com"/G
[email protected]:RPWP;member
what I have to type insted of "member".
When I use previous command with simple "member" at the end I dont get this:
Verify that the account has been granted only Read Members and
Write Members permissions on the DA group, and click OK.
My account have flag on all properties.
I hope You understand me.The last field is for the attribute to delegate. You can read about it here: https://technet.microsoft.com/en-us/library/cc772662%28v=ws.10%29.aspx
You can also refer to this for updating AdminSDHolder container: http://social.technet.microsoft.com/wiki/contents/articles/22331.adminsdholder-protected-groups-and-security-descriptor-propagator.aspx
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
Dynamic Context Dynamic and UI table Dynamic
Hello,
I created a dynamic context and a dynamic table that use this dynamic context. I have the following error:* * The following error text was processed in the system XAP : Could not find attribute AMOUNT2009**
The error occurred on the application server sat190_XAP_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WD_CONTEXT_NODE_INFO~GET_ATTRIBUTE of program CL_WDR_CONTEXT_NODE_INFO======CP
Method: GET_ATTRIBUTE_INFO of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L3STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L3STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L3STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L3STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
AMOUNT2009 is a new attribute that add to my context, i made the next code, can you review and say me where i have the error? I start with the second year is for this reason that i use a count.
Reading FINCATYGROUP
DATA lo_nd_fincatygroup TYPE REF TO if_wd_context_node.
DATA lo_el_fincatygroup TYPE REF TO if_wd_context_element.
DATA ls_fincatygroup TYPE wd_this->element_fincatygroup.
DATA : lv_year type STRING,
ls_attribute type wdr_context_attribute_info, "To create dynamic node in the context
lr_container TYPE REF TO CL_WD_UIELEMENT_CONTAINER,
lr_table TYPE REF TO CL_WD_TABLE,
lr_input_field TYPE REF TO CL_WD_INPUT_FIELD,
lr_cell_editor TYPE REF TO if_wd_table_cell_editor,
lr_column TYPE REF TO CL_WD_TABLE_COLUMN,
lr_column_header TYPE REF TO CL_WD_CAPTION,
lv_headerColumn TYPE STRING,
lv_id_input_field TYPE STRING,
lv_name TYPE STRING,
lv_id_table_column TYPE STRING.
DATA: lr_node_info TYPE REF TO if_wd_context_node_info, "To get node info
lr_table_type TYPE REF TO cl_abap_tabledescr, "To get table and stuct descriptor
lr_line_type TYPE REF TO cl_abap_structdescr,
lt_components TYPE cl_abap_structdescr=>component_table, "To get component table
ls_components_line LIKE LINE OF lt_components, "One line of component table
lr_elem_type TYPE REF TO cl_abap_elemdescr.
LOOP AT lv_periods_tt INTO lv_periods_ts.
get all declared attributes
lv_periods_ts->get_static_attributes(
IMPORTING
static_attributes = ls_wa_period ).
navigate from <CONTEXT> to <FINCATYGROUP> via lead selection
lo_nd_fincatygroup = wd_context->get_child_node( name = wd_this->wdctx_fincatygroup ).
IF lv_cont = 1 OR lv_cont = 2.
lv_cont = lv_cont + 1.
ELSE.
Create dynamic context and dynamic view
get node_info
lr_rootnodeinfo = lo_nd_fincatygroup->get_node_info( ).
lv_year = ls_wa_period-zyear.
SHIFT lv_year BY 15 PLACES LEFT.
CONCATENATE 'AMOUNT' lv_year INTO lv_name.
put attributes of add_attrbute node
CONCATENATE 'Y' lv_year INTO ls_attribute-name.
ls_attribute-name = lv_name.
ls_attribute-type_name = '\TYPE=/RPM/TV_CURR_AMOUNT'.
lr_rootnodeinfo->add_attribute( "Add attribute for amount of year
EXPORTING
attribute_info = ls_attribute ).
********************* table *******************************************************
Get ROOTUIELEMENTCONTAINER
lr_container ?= view1->get_element( 'ROOTUIELEMENTCONTAINER ' ).
Get TABLEFCG
lr_table ?= view1->get_element( 'TABLEFCG' ).
Create cell_editor
CONCATENATE 'TABLEFCGIF_Y' lv_year '_EDITOR' INTO lv_id_input_field.
lr_input_field = cl_wd_input_field=>new_input_field(
id = lv_id_input_field bind_value = ls_attribute-name ).
CONCATENATE 'TABLEFCG_Y' lv_year '_EDITOR' INTO lv_headerColumn.
lr_column_header = cl_wd_caption=>new_caption( id = lv_headerColumn ).
lr_column_header->set_text( ls_attribute-name ).
Create table column
CONCATENATE 'TABLEFCG_' lv_year 'COLUMN' INTO lv_id_table_column.
lr_column = cl_wd_table_column=>new_table_column( id = lv_id_table_column ).
lr_column->set_table_cell_editor( lr_input_field ).
lr_column->set_header( lr_column_header ).
lr_table->add_grouped_column( lr_column ).
********************* end table *******************************************************
ENDIF.
ENDLOOP.
Thanx.1.
Code if the Transparent container's layout is Matrix ( method WDDOMODIFYVIEW )
data lr_container type ref to cl_wd_transparent_container.
data lr_input type ref to cl_wd_input_field.
data lr_layout_data type ref to cl_wd_matrix_head_data.
lr_container ?= view->get_element( '<Transparent container ID>' ).
lr_input = cl_wd_input_field=>new_input_field( bind_value = '<node>.<attribute>'
view = view
ID = 'INP' ).
lr_layout_data = cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_input width = '100%' ).
2.
Dynamic Context Attribute in a node.
data lr_node type ref to if_wd_context_node.
data lr_info type ref to if_wd_context_node_info.
data ls_attr type WDR_CONTEXT_ATTRIBUTE_INFO.
lr_node = wd_context->get_child_node( '<Node_name>' ).
lr_info = lr_node->get_node_info( ).
ls_attr-name = '<attribute_name>'.
ls_attr-type_name = 'STRING'.
lr_info->add_attribute( ls_attr ).
Maybe you are looking for
-
Add a reset button to a formCentral form
Is it possible to add a cancel or reset button to a form that will close the form and not proceed to submit the form?
-
Hi I am facing an issue while posting the vendor invoice. When posting the vendor invoice, system is automatically creating a debit entry to TDS account for Ecess, whereas the other Line items for TDS are created correctly. We have maintained the pos
-
Gui for Tallent Management infotypes in ECC
Hello Doing first steps in implementation of Talent Management. EP not yet prepared, meanwhile I want to prepare some steps in ECC. My environment is SAP ERP 6.0 with enhancement package 4. Trying to maintain some infotype: (7407-Career Goal, 7408-Po
-
CSACS 1121 V5.4.0.46.4
Good morning everyone, I'm Eric Jones and I'm a CISCO equipment user. I have some questions on the 1121 AAA server. We have 2, one is configured to work with our Active Directory. It access the AD data and will pull the username from the AD group; ho
-
Why can't Java discard assignments?
My question has nothing to do with any problem I am facing. Rather, it is related to the way Java is designed. In C, the following is perfectly legal code: 7;Why is this not the case with Java? Why does the compiler report: 'Syntax error, insert "Ass