SourceDataLine returns AudioSystem.NOT_SPECIFIED when getLevel() is called.
What do I need to get the amplitude of the line?
I set up my SourceDataLine like this, where audioFormat is and instance of an AudioFormat:DataLine.Info lineInfo = new DataLine.Info(SourceDataLine.class, audioFormat);
try
line = (SourceDataLine)AudioSystem.getLine(lineInfo);
line.open(audioFormat);
catch (Exception ex)
ex.printStackTrace();
System.exit(1);
}I am 90% sure that I have all my audio related components set up correctly because I am able to play clips, get the sample rate, calculate the sample length, etc...
Any ideas about what I can do to make line.getLevel() return the amplitude?
If you say that username is null in your System.out
we need to see what happens before this is called.
Could you send in more of the cod please.
Similar Messages
-
Error when creating ZIP file (return value 2 when IGS was called)
Hello All
I attempted to Schedule a Query to the Portal folders and executes fine. However when it's scheduled to and email, I am getting this message
'Error when creating ZIP file (return value 2 when IGS was called)'
Any ideas?
Thanks ...BKHello Kai
Thanks very much for the info. how would I know what patch the IGS is?
Thank you.
Regards..BK -
I recently purchase an ipad2. I also have a mac laptop. Now, when I facetime call using my iphone to my ipad2 or mac, it states busy. how can i fix this problem? I have the same apple id e mail for both ipad2 and mac. it might be getting confuse now. I want to be able to face time also using my ipad2 to my laptop especially if one of the members of the family is traveling. Thanks.
thanks. your answer was correct, clearer. I have another question, maybe you can answer. I just purchase my ipad2 2 days ago. yesterday, there was a sound. today there is no sound. there is a sound only in movies and you tube and music. but no sound on all apps and keyboards. I look it up and seems like ther are few that have this problem. I called walmart coz I bought it there and they told me that they have not heard that before but if I can't fix it, just return it and exchange it with anew one since I have 14 days to do that. I tried rebooting it and still won't work. Should I just restore it?
-
Error when IdentityXML is called
Hi all!
I'm working with OAM and trying to call an IdentityXML function to create a new user from outside of product using this API.
I read de documentation (http://download.oracle.com/docs/cd/B28196_01/idmanage.1014/b25346/toc.htm) and I can't put this to work.
When I call the function the only answer is a "No Content Length found" error, I try with a client in java, PLSQL, wget and nettool with the same result in all the cases. The same error is loged on Apache Error Log.
The error is detected even if another function is call or just completely empty the message.
OAM version 10.1.0.4
Linux
Please, I need this working but I can't find a solution, is really urgent.
Line in Apache Access Log
=========================
192.168.3.103 - - [10/Dec/2008:11:25:03 -0600] "POST /identity/oblix/apps/userservcenter/bin/userservcenter.cgi HTTP/1.1" 200 -
Line in Apache Error Log
========================
[Wed Dec 10 11:25:03 2008] [error] [client 192.168.3.103] [ecid: 1228929900:192.168.1.199:7811:0:1584,0] No Content Length found.: /identity/oblix/apps/userservcenter/bin/userservcenter.cgi
XML SOAP Msg
============
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:oblix="http://www.oblix.com" xmlns:soapenv="http://schemas-xmlsoap.org/soap/envelope/">
<soapenv:Body>
<oblix:authentication type="basic">
<oblix:login>oc4jadmin</oblix:login>
<oblix:password>password</oblix:password>
</oblix:authentication>
<oblix:request application="userservcenter" function="workflowSaveCreateProfile" version="NPWSDL1.0">
<oblix:params>
<oblix:ObWorkflowName>obworkflowid=wfqs20080919T13275417254,obcontainerId=workflowDefinitions,o=Oblix,dc=biosnettcs,dc=
com</oblix:ObWorkflowName>
<oblix:ObDomainName>cn=Users,dc=biosnettcs,dc=com</oblix:ObDomainName>
<oblix:noOfFields>2</oblix:noOfFields>
<oblix:AttributeParams>
<oblix:GenericAttribute>
<oblix:AttrName>cn</oblix:AttrName>
<oblix:AttrOperation>ADD</oblix:AttrOperation>
<oblix:AttrNewValue>melli</oblix:AttrNewValue>
</oblix:GenericAttribute>
<oblix:GenericAttribute>
<oblix:AttrName>sn</oblix:AttrName>
<oblix:AttrOperation>ADD</oblix:AttrOperation>
<oblix:AttrNewValue>melli</oblix:AttrNewValue>
</oblix:GenericAttribute>
<oblix:GenericAttribute>
<oblix:AttrName>uid</oblix:AttrName>
<oblix:AttrOperation>ADD</oblix:AttrOperation>
<oblix:AttrNewValue>melli</oblix:AttrNewValue>
</oblix:GenericAttribute>
<oblix:PasswordAttribute>
<oblix:AttrName>userPassword</oblix:AttrName>
<oblix:AttrOperation>ADD</oblix:AttrOperation>
<oblix:AttrNewValue>melli</oblix:AttrNewValue>
<oblix:AttrConfirmValue>melli</oblix:AttrConfirmValue>
</oblix:PasswordAttribute>
<oblix:ChallengeAttribute>
<oblix:AttrName>genChallengePhrase</oblix:AttrName>
<oblix:AttrOperation>ADD</oblix:AttrOperation>
<oblix:ChallengeValue>
<oblix:AttrNewValue>phrase1</oblix:AttrNewValue>
</oblix:ChallengeValue>
<oblix:ChallengeValue>
<oblix:AttrNewValue>phrase2</oblix:AttrNewValue>
</oblix:ChallengeValue>
<oblix:ChallengeValue>
<oblix:AttrNewValue>phrase3</oblix:AttrNewValue>
</oblix:ChallengeValue>
</oblix:ChallengeAttribute>
<oblix:ResponseAttribute>
<oblix:AttrName>genChallengePhraseResponse</oblix:AttrName>
<oblix:AttrOperation>ADD</oblix:AttrOperation>
<oblix:ResponseValue>
<oblix:AttrNewValue>response1</oblix:AttrNewValue>
<oblix:AttrConfirmValue>response1</oblix:AttrConfirmValue>
</oblix:ResponseValue>
<oblix:ResponseValue>
<oblix:AttrNewValue>response2</oblix:AttrNewValue>
<oblix:AttrConfirmValue>response2</oblix:AttrConfirmValue>
</oblix:ResponseValue>
<oblix:ResponseValue>
<oblix:AttrNewValue>response3</oblix:AttrNewValue>
<oblix:AttrConfirmValue>response3</oblix:AttrConfirmValue>
</oblix:ResponseValue>
</oblix:ResponseAttribute>
</oblix:AttributeParams>
</oblix:params>
</oblix:request>
</soapenv:Body>
</soapenv:Envelope>There is some more data:
The error is raised with any POST request to webservice endpoint:
http://host:port/identity/oblix/apps/userservcenter/bin/userservcenter.cgi
The error is always the same when endpoint is called with a POST (like a webservice!) ... but when is called with GET the User Console Page is returned
Follow in this post paste a request/response example from HTTP point of view, this was taken from a HTTP Tunnel.
The api is well used?? I'm using IdentityXML well??
Thanks for advance.
Complete HTTP Request Example (see that 2 chars are send in message, there is a empty messge!)
=======================
POST /identity/oblix/apps/userservcenter/bin/userservcenter.cgi HTTP/1.1
Host: localhost:7778
Content-Length: 2
Authorization: Basic b3JjbGFkbWluOndlbGNvbWUx
Cookie: ObSSOCookie=loggedoutcontinue; OBBasicAuth=fromDialog;
Complete HTTP Response
==================
Content-type: text/html
<html>
<body bgcolor="#ffffff">
<h1>Error!</h1>
<h3>An error has occurred in the product. Please contact.</h3>
<h3>Oracle technical support directly or send feedback through.</h3>
<h3>http://www.oracle.com/support/contact.html</h3>
<h3>If possible, please include the version number of the software and the error message in your feedback.</h3>
<h3>Error message: No Content Length found.</h3>
</body>
</html> -
How do I make a contact photo full screen when receiving a call
I know this feature went away in iOS 7.1 and turned into the small round bubbles but it appears to have returned in iOS 8 and Apple is advertising it on their site in the Yosemite pictures. Does anyone know how to make my contact photos full screen again?
Scroll down to Continuity: http://www.apple.com/osx/There isn't a setting but there is a trick (at least on earlier iPhones but I suspect the 6 as well). For the photo to be full screen it must be a photo taken on the iPhone and still resident there. If you import the photo to a computer, delete it from the phone and then sync it back via iTunes, it will not display full screen. If the photo was taken on a previously owned iPhone and transferred to your new 6, it will not display full screen. If it is any consolation, I think the circular pictures are better when placing a call as the full screen ones aren't very visible behind the outgoing call screen, at least with my settings.
-
Fails when executing job called syspolicy_purge_history (SQL Server 2012)
Hi friends i have the following problem
The job syspolicy_purge_history of my database engine failed, specifically on the third step called "Erase Phantom System Health Records" that executes a powershell. This is the sentence that executes (All job syspolicy_purge_history
on any SQL 2012 has the same code):
if ('$(ESCAPE_SQUOTE(INST))' -eq 'MSSQLSERVER') {$a = '\DEFAULT'} ELSE {$a = ''};
(Get-Item SQLSERVER:\SQLPolicy\$(ESCAPE_NONE(SRVR))$a).EraseSystemHealthPhantomRecords()
. When i see the job history i get the following:
Message
Executed as user: NT Service\SQLSERVERAGENT. The job script encountered the following errors. These errors did not stop the script: A job step received an error at line 1 in a PowerShell script. The corresponding line is 'import-module SQLPS -DisableNameChecking'.
Correct the script and reschedule the job. The error information returned by PowerShell is: 'The specified module 'SQLPS' was not loaded because no valid module file was found in any module directory. ' A job step received an error at line 2 in
a PowerShell script. The corresponding line is '(Get-Item SQLSERVER:\SQLPolicy\SRV01236$a).EraseSystemHealthPhantomRecords()'. Correct the script and reschedule the job. The error information returned by PowerShell is: 'Cannot find drive. A drive with the
name 'SQLSERVER' does not exist. ' A job step received an error at line 2 in a PowerShell script. The corresponding line is '(Get-Item SQLSERVER:\SQLPolicy\SRV01236$a).EraseSystemHealthPhantomRecords()'. Correct the script and reschedule the job.
The error information returned by PowerShell is: 'You cannot call a method on a null-valued expression. '. Process Exit Code -1. The step failed.
Aditionally i tested putting the policies in powershell like unrestricted (like i see on a blog). but it didn't work.
My SQL version is 2012 Standard SP1 X64
Please help me with this
Thanks for your help
Greetings
AledsThanks for your help princekumar8 and gona_david
Hello Gona_david, You are right, when i execute the powershell sentence Get-Module -ListAvailable
the SQLPS module doesn't appear.
Look i have another SQL Server 2012 in another server, but this is patched on SP2 and the syspolicy_purge_history here runs OK. Also when i execute the powershell, the SQLPS appears in the list.
So, my question is: If i patch my server SQL Server 2012 with the error from SP1 to SP2, is Possible that the error will get away? In fact, Wouldn't be yet necessary runs the SQL install?
Basically what you recommend me in this case?
Thanks in advance
Greetings
Aleds -
The SharePoint item being crawled returned an error when attempting to download the item.
I get this error when I run full crawl.
The SharePoint item being crawled returned an error when attempting to download the item.
I did make sure that the crawl account has full read access to the web application. I am able to access the page and site just fine from a browser. I am not sure what is causing the problem.On closely looking at ULS logs, this is what I am noticing....
CSTS3Accessor::Init: SharePointError found in URL
http://xxxxx/default.aspx header value 0, hr=8004FD0F [sts3acc.cxx:566] d:\office\source\search\native\gather\protocols\sts3\sts3acc.cxx
CSTS3Accessor::Init fails, Url sts4://xxxx/siteurl=/siteid={c011d5c9-9019-41e8-bf5a-5176739b2b79}/weburl=xxxxx/webid={e42001c0-2ef1-4a8e-8fe5-361d72fa60c2}, hr=8004FD0F [sts3handler.cxx:312] d:\office\source\search\native\gather\protocols\sts3\sts3handler.cxx
CSTS3Handler::CreateAccessorExD: Return error to caller, hr=8004FD0F [sts3handler.cxx:330] d:\office\source\search\native\gather\protocols\sts3\sts3handler.cxx -
Forms 9i/ DB 10g - Form Hangs when function is called
Using 9i Web Forms on 10g Database Linux O/S
I have the following function call in a form within a loop:
:nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
The function being called contains this code:
FUNCTION fn_get_trans_descr(ps_app_area_code IN VARCHAR2,
ps_txn_code IN VARCHAR2) RETURN VARCHAR2 IS
CURSOR cur_txn_descr IS
SELECT descr
FROM financial_trans_types
WHERE code = ps_txn_code
AND aparea_code = ps_app_area_code;
ls_txn_descr financial_trans_types.descr%TYPE;
BEGIN
OPEN cur_txn_descr;
FETCH cur_txn_descr INTO ls_txn_descr;
CLOSE cur_txn_descr;
Return(ls_txn_descr);
END;
When the call is executed, the form hangs after the OPEN command. I have checked the parameters for their values and successfully executed the cursor in SQL.
When I hardcode the function parameter values, the code executes successfully. Also, and perhaps most unusually, if I do either of the following before the function call, the code runs successfully:
ls_txn_type := ls_txn_type;
:nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
ls_txn_type := NVL(ls_txn_type,NULL);
:nbt02_lentrn.nbt_txn_descr := fn_get_trans_descr(ls_app_area_code,ls_txn_type);
I have also extracted the call and placed it into a different form where it works fine!
The variable ln_txn_type is populated via another call within the same loop. It's value alternates between null and a value for the record set.
The same code works fine Client/Server and although I have a solution, I'm not sure what the problem is! Does anyone have any clues?Hello - your problem actually looks similar in symptoms to one I hit just a couple of days ago (see my post 'Forms hangs when using result of an OUT parameter to do an Insert ' on July 19th.)
The problem I was having was if I had a variable which already had a value, then passed into an IN OUT parameter of a db stored proc, the proc set the value to null, and then I tried to use the variable in a table insert. The form would just hang completely. Like you, one workaround for the problem was to have a line like:
my_var := NVL(my_var,NULL);
to somehow 'fix' the variable before trying to use it further. Even though the variable seems null, and returns true for IF ... IS NULL, something had gone wrong with it that rendered it toxic to my form. This workaround should have no net effect, but it does somehow solve the problem. Like your problem, mine doesn't occur on client server, only on the newer version.
I hit this problem using Forms 10g904, against a 9i database. Having talked it over with Oracle support, I've tried doing the same thing using 10g Release 2, and the problem disappears, so Oracle have obviously fixed it somewhere between the two releases - I'm currently investigating intermediate Patch Sets.
Don't know if this is helpful, but all I can suggest is that you ensure you've applied the latest patchsets to your Forms (you can try it on the Builder first before patching your apps server installation.) If that doesn't do it, I'm guessing it's a case of use the workarounds, or go up to a higher version altogether of Forms.
Sorry not to have any more optimistic advice!
James -
How do I run a JCA adapter when I am calling it from an EJB?
How do I run a JCA adapter when I am calling it from an EJB? Do I need to create an EJB client and place it in a Client container? If my EJB and JCA adapter are deployed is there a way to call my EJB from the command line?
MikeHi. When you look at the code I provided for you in other thread you will see that connecting to adapter is done through JNDI lookup. The creation of the adapter is done in your J2EE server. Here is some code for you where you can find mapping from code to ejb-jar and orion-ejb-jar.
ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
version="2.1">
<!--
This file declares the interface (needs/promises) of the message-driven bean.
The MDB requires:
- a JMS queue (to receive messages from the client),
- a JMS exception queue (to send undeliverable messages back to the source), and
- a connection factory (to communicate with a JMS resource provider).
Note that communication with the resource provider may be (and for this
application is) via a JMS Connector rather than direct.
-->
<display-name>JMS Consume MDB - opp-ifs</display-name>
<enterprise-beans>
<entity>
<description>Entity Bean ( BMP )</description>
<display-name>EBEjbMecomsIFS</display-name>
<ejb-name>EBEjbMecomsIFS</ejb-name>
<local-home>EBEjbMecomsIFSLocalHome</local-home>
<local>EBEjbMecomsIFSLocal</local>
<ejb-class>EBEjbMecomsIFSBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.Long</prim-key-class>
<reentrant>false</reentrant>
<service-ref>
<service-ref-name>service/interceptor</service-ref-name>
<service-interface>javax.xml.rpc.Service</service-interface>
<wsdl-file>META-INF/wsdl/MHS5_Jms_In_RS.wsdl</wsdl-file>
<service-qname xmlns:ns="http://oracle.com/esb/namespaces/PilotOWSM_MustHavesScenario5">ns:ESB_MHS5_Jms_In_RS_Service</service-qname>
</service-ref>
</entity>
<message-driven>
<display-name>JMS Consume MDB - MDB</display-name>
<ejb-name>MDBEjbMecomsIFS</ejb-name>
<!-- name of bean in deployment descriptor (including orion-ejb-jar.xml file) -->
<ejb-class>MDBEjbMecomsIFSBean</ejb-class>
<!-- bean's fully qualified Java class name -->
<messaging-type>javax.jms.MessageListener</messaging-type>
<transaction-type>Container</transaction-type>
<!-- allow incoming messages to be included in transactions -->
<!-- The ejb requires a connection factory to access an external resource (JMS). -->
<ejb-local-ref>
<ejb-ref-name>ejb/local/EBEjbopp_ifs</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>EBEjbMecomsIFSLocalHome</local-home>
<local>EBEjbMecomsIFSLocal</local>
<ejb-link>EBEjbMecomsIFS</ejb-link>
</ejb-local-ref>
<resource-ref>
<!-- The resource's connection factory must be accessible at jndi location "java:comp/env/jms/QueueConnectionFactory". -->
<res-ref-name>jms/QueueConnectionFactory</res-ref-name>
<!-- The resource's connection factory must implement the "javax.jms.ConnectionFactory" interface. -->
<res-type>javax.jms.ConnectionFactory</res-type>
<!-- container managed authorization -->
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
</enterprise-beans>
<assembly-descriptor>
<!--
Declare that a global transaction is required when the onMessage method of the ejb named
"MDBEjbName" is called. This will cause the app server to automatically initiate a
global (XA) transaction before calling onMessage (actually, before even receiving the JMS
message that triggers onMessage) and end the transaction after onMessage returns. The
JMS Connector will automatically rollback the transaction if onMessage throws an
exception. onMessage may also set the transaction to be "rollback only".
Participating in global transactions requires that the connection factory provided in the
activation spec (see the ConnectionFactoryJndiName property earlier in this file) must be
XA-capable (it must implement the javax.jms.XAConnectionFactory interface).
If this declaration is ommitted, then onMethod will not be part of any global
transaction. In that case the connection factory provided in the activation spec must
implement the javax.jms.ConnectionFactory interface.
-->
<container-transaction>
<method>
<ejb-name>MDBEjbMecomsIFS</ejb-name>
<method-name>onMessage</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>EBEjbMecomsIFS</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
orion-ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<orion-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNameSpaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/orion-ejb-jar-10_0.xsd">
<enterprise-beans>
<entity-deployment name="EBEjbMecomsIFS">
<service-ref-mapping name="service/interceptor">
<wsdl-location>http://on-poc62.ontw.alfa.local:7777/event/PilotOWSM/MustHavesScenario5/MHS5_Jms_In_RS?wsdl</wsdl-location>
<service-qname localpart="ESB_MHS5_Jms_In_RS_Service" namespaceURI="http://oracle.com/esb/namespaces/PilotOWSM_MustHavesScenario5"/>
<port-info>
<wsdl-port namespaceURI="http://oracle.com/esb/namespaces/PilotOWSM_MustHavesScenario5"
localpart="__soap_MHS5_Jms_In_RS_execute_ppt"/>
<service-endpoint-interface>javax.xml.rpc.Service</service-endpoint-interface>
<call-property>
<name>javax.xml.rpc.service.endpoint.address</name>
<value>http://on-poc62.ontw.alfa.local:7777/event/PilotOWSM/MustHavesScenario5/MHS5_Jms_In_RS</value>
</call-property>
<call-property>
<name>javax.xml.rpc.soap.http.soapaction.uri</name>
<value>execute</value>
</call-property>
<call-property>
<name>javax.xml.rpc.soap.http.soapaction.use</name>
<value>true</value>
</call-property>
<call-property>
<name>javax.xml.rpc.soap.operation.style</name>
<value>document</value>
</call-property>
<runtime enabled="owsm">
<owsm init-home="/oracle/product/SoaAs/10.1.3/owsm/config/interceptors/C0003002"
init-file="confluent.properties"/>
</runtime>
</port-info>
</service-ref-mapping>
</entity-deployment>
<message-driven-deployment name="MDBEjbMecomsIFS"
resource-adapter="OEMSJMSDRAopp-ifs"
enabled="true" max-instances="10">
<!--
The ejb requires a connection factory implementing the "javax.jms.XAConnectionFactory"
interface to be accessible at jndi location "java:comp/env/jms/QueueConnectionFactory". (see ejb-jar.xml and ....)
A suitable connection factory is already accessible at jndi location "OEMSJMSDRASubcontext/MyXACF" (see oc4j-ra.xml)
-->
<resource-ref-mapping location="OEMSJMSDRASubopp-ifs/MyXACF"
name="jms/QueueConnectionFactory"/>
<!-- don't misspell this or you'll get an RP CF which doesn't work -->
<!-- Required activation-spec properties. -->
<!--
ConnectionFactoryJndiName (string, no default)
This should be the JNDI location of an RA connection factory.
The JMS Connector will use this connection factory to create the JMS
connection it uses to receive messages for this MDB's onMessage. If the
exception queue is enabled (see UseExceptionQueue), the JMS Connector will
also use a connection created from this connection factory for the production
of messages to the exception queue.
This connection factory must be compatible with the message domain(s). (For
example, if the MDB is receiving messages from a queue, the connection
factory should implement javax.jms.[XA]QueueConnectionFactory or
javx.jms.[XA]ConnectionFactory.)
For XA/non-XA considerations, see the <container-transaction> comments later
in this file.
-->
<config-property>
<config-property-name>ConnectionFactoryJndiName</config-property-name>
<config-property-value>OEMSJMSDRASubopp-ifs/MyXAQCF</config-property-value>
</config-property>
<!--
DestinationName (string, no default)
This is JNDI location of the queue or topic from which messages to be
delivered to the MDB's onMessage method should be received.
The JNDI locations for RA destinations are defined in the
oc4j-connectors.xml file.
-->
<config-property>
<config-property-name>DestinationName</config-property-name>
<config-property-value>OEMSJMSDRASubopp-ifs/MyQ</config-property-value>
</config-property>
<!--
DestinationType (string, no default)
This must be set to the type of the destination named by the above
"DestinationName" property.
The EJB 2.1 spec states that this must be set to either javax.jms.Queue or
javax.jms.Topic. OracleGJRA also allows it to be set to
javax.jms.Destination (which works for both queues and topics).
-->
<config-property>
<config-property-name>DestinationType</config-property-name>
<config-property-value>javax.jms.Queue</config-property-value>
</config-property>
<!--
Other activation-spec properties.
The following activation-spec properties supported by OracleGJRA are optional
except where otherwise noted:
-->
<!--
ListenerThreadMaxPollInterval (milliseconds, 5000)
Listener threads "poll" to see if there is a message waiting to be processed.
The more frequently this polling is performed, the faster (on average) a given
listener thread can respond to a new message. The price for frequent polling is
overhead - the resource provider must process a receive request each time it is
polled.
Oracle's JMS Connector implementation applies an adaptive algorithm which
uses shorter polling intervals (high polling rates) during periods of activity
(once activity is noticed) and longer polling intervals (lower polling rates)
during periods of inactivity. The ListenerThreadMaxPollInterval property places
an upper limit on the polling interval used by this adaptive algorithm.
-->
<config-property>
<config-property-name>ListenerThreadMaxPollInterval</config-property-name>
<config-property-value>5000</config-property-value>
</config-property>
<!--
AcknowledgeMode (string, default = Auto-acknowledge)
This should be set to Auto-acknowledge or Dups-ok-acknowledge. This
controls the quality-of-service provided by listener threads which
consume messages and call the MDB's onMessage method.
MessageSelector (string, default = no message filtering)
This is the selector expression used to filter messages sent to the
MDB's onMessage method. (I.e., this is used as the messageSelector for
the JMS sessions created for the listener threads.)
SubscriptionDurability (string, default = NonDurable)
For topics this should be set to Durable or NonDurable. (This should
not be set for queues.) This controls the durability of the topic
consumer used by the listener thread. When SubscriptionDurability is
set to Durable (and DestinationType is javax.jms.Topic or
javax.jms.Destination), the SubscriptionName property is required.
SubscriptionName (string, no default)
This property is required when SubscriptionDurability is Durable (and
DestinationType is javax.jms.Topic or javax.jms.Destination). (In all
other cases it is ignored.) This is the name used when creating the
durable subscriber used by the listener thread. For a given JMS server,
a given subscription name should be assigned to at most one MDB (which
must have most one listener thread).
ClientId (string, no default)
If set, connection(s) used by the listener threads will be set to use
this client ID.
TransactionTimeout (milliseconds, default = 300,000)
This limits the amount of time that the JMS Connector will wait for a
message to arrive before exiting the current transaction. The
transaction manager limits the amount of time a transaction can last
(see transaction-timeout in transaction-manager.xml).
TransactionTimeout should be set such that the transaction manager will
not timeout the transaction during the onMessage routine unless
something is wrong. For example, If the transaction mananager timeout
is set to 30 seconds, and the onMessage routine will never take more
than 10 seconds unless something is wrong, then this property could be
set to 20 seconds (20000 milliseconds).
EndpointFailureRetryInterval (milliseconds, default = 60,000)
If an endpoint can not be processed (due to the app server WorkManager
not accepting new work), it will be scheduled to be retried this many
milliseconds later.
ReceiverThreads (integer, default = 1)
This sets the maximum number of listener threads to create for this
endpoint. For queues, using more than one thread may be useful in
increasing the rate at which messages can be consumed. For topics this
value should always be 1. (Each listener thread gets its own session
and TopicSubscriber. For durable subscribers it would be an error to
have more than one subscriber with the same subscription name. For
nondurable subscribers having more than one thread will not help because
more threads translates into more subscribers which translates into more
copies of each message.) See also: ListenerThreadMinBusyDuration
UseExceptionQueue (boolean, default = false)
When "UseExceptionQueue" is true:
- Messages that would otherwise be discarded are sent to the
exception queue. (Currently the only case where this happens is
when the max delivery count is exceeded. See MaxDeliveryCnt
property.) Rather than sending the original message directly to
the exception queue, the following procedure is used:
o Create a new message of the same type.
o Copy the properties and body from the original message to the
new message.
o If the headers were copied, sending the message to the
exception queue would cause most of them to be lost
(over-written by the resource-provider). So instead,
translate headers in the original to properties in the copy,
assigning each header obtained via "getJMS{Header}" to
property "GJRA_CopyOfJMS{Header}". Since
javax.jms.Destination is not a valid property type, translate
destination headers into descriptive messages.
(Currently this same service is not provided for JMSX*
properties, most notably the JMSXDeliveryCount property.)
o If some part of the copy process (above) or augmentation
process (below) fails, do not abort. Attempt to complete the
rest of the procedure. (For Bytes/Map/Stream message types,
this can mean that part of the body is copied and the rest is
not.)
o If the copy process is 100% successful, add a boolean property
called "GJRA_CopySuccessful" with the value "true".
o Add a string property called "GJRA_DeliveryFailureReason" which
indicates why the message was not delivered.
o If the MDB onMessage method generated an exception immediately
prior to the delivery failure, add a string property called
"GJRA_onMessageExceptions" which contains exception information.
o Send the resulting message to the exception queue.
Note that only one attempt is made to send the message to the
exception queue. Should this attempt fail, the message will
be discarded without being placed in the exception queue.
See IncludeBodiesInExceptionQueue property for potential variations
of the above procedure.
- The ExceptionQueueName property is required.
- In addition to being used for the primary destination, the
connection factory specified by the ConnectionFactoryJndiName
property will also be used for the exception queue. If the primary
destination (specified by the DestinationName property) is a topic,
then the connection factory must support both queues and topics.
(I.e., the <connectionfactory-interface> [see oc4j-ra.xml] for the
given connection factory must be either javax.jms.ConnectionFactory
or javax.jms.XAConnectionFactory.)
ExceptionQueueName (string, no default)
This is the JNDI location of the javax.jms.Queue object to use as the
exception queue. (See UseExceptionQueue property for information about
the use of the exception queue.) This property is required when
UseExceptionQueue is true, and ignored when UseExceptionQueue is false.
IncludeBodiesInExceptionQueue (boolean, default = true)
This controls whether or not messages sent to the exception queue will
include a message body. (See UseExceptionQueue property for information
about the use of the exception queue.) If many messages are sent to the
exception queue during normal operation and the message body is of no
use in the exception queue, then this property may be set false to
improve performance. This property is ignored when UseExceptionQueue is
false. There are two cases where this property does not apply:
- If the original message did not have a message body, then the
message sent to the exception queue will not have one either.
- If a copy of the original message can not be created for any
reason, then the original may be sent to the exception queue
instead. This may result in a message body being sent to the
exception queue.
MaxDeliveryCnt (integer, default = 5)
If a message has the "JMSXDeliveryCount" property and the value of that
property is greater than MaxDeliveryCnt, then the message will be
discarded (and not sent to onMessage). If the exception queue is
enabled (see UseExceptionQueue), a copy of the message will be sent to
the exception queue. If MaxDeliveryCnt is set to 0, no messages will be
discarded. (Note that when an MDB responds to a message by throwing an
exception, the message is not considered delivered and it may be
redelivered. If the MDB might always respond to a given message by
throwing an exception, and MaxDeliveryCnt is set to 0 to prevent the
message from ever being discarded, the result may be an MDB stuck in an
"infinite loop" - failing to process the same message over and over
again.)
-->
<config-property>
<config-property-name>MaxDeliveryCnt</config-property-name>
<config-property-value>0</config-property-value>
</config-property>
<!--
LogLevel (string, no default)
This controls the level of detail of messages logged by the JMS
Connector. These messages are primarily intended for debugging the
JMS Connector itself, but may also be useful when debugging issues
related to the use of the JMS Connector. This property should not be
set in production code. (It should only be set temporarily for
debugging purposes - specific log messages and log levels may be and
will be added/removed/modified in future versions of the JMS
Connector.) Currently the allowed values are:
ConnectionPool
ConnectionOps
TransactionalOps
ListenerThreads
INFO
CONFIG
FINE
FINER
FINEST
SEVERE
WARNING
OFF
ListenerThreadMaxIdleDuration (milliseconds, default = 300,000)
This is how long a listener thread which is not receiving any messages
will be kept around. (At least one listener thread will remain as long
as the endpoint is active.)
ListenerThreadMinBusyDuration (milliseconds, default = 10,000)
If a listener thread has just received a message, has not been idle (had to
wait for a new message to arrive) at any point during the past
ListenerThreadMinBusyDuration milliseconds, and the current number of
listener threads for this endpoint is less than ReceiverThreads, then
(application server willing) an additional listener thread will be created.
ResUser (string, default = null)
ResPassword (string, default = null)
These properties allow a user/password to be passed to the resource
provider. When neither of these properties are set, connections used for
this MDB's inbound message handling (as well as for exception queue
handling, if enabled) are created using the no-argument version of the
create*Connection method. When one or both of these properties are set,
they are passed to the create*Connection method as the user/password
arguments. (If only one property is not set, then 'null' is used for that
particular create*Connection argument.) The ResPassword property supports
the standard password indirection options (e.g., using "->joeuser" to
represent the password of "joeuser").
Note that the commas used in many of the above default values and examples are
included here for readability but can not be used in the actual activation spec.
(I.e., integer/milliseconds values in the activation spec must not include
embedded commas.)
-->
</message-driven-deployment>
</enterprise-beans>
<assembly-descriptor>
<default-method-access>
<security-role-mapping name="<default-ejb-caller-role>"
impliesAll="true"/>
</default-method-access>
</assembly-descriptor>
</orion-ejb-jar> -
BCP to pass an Error Message to SSIS when the BCP call fails?
Hi,
Within SSIS I have an Execute SQL Task which calls BCP via a source variable given the dynamic nature of the BCP call.
When the BCP call fails it returns a number of records which give instructions on how to use BCP. SSIS then thinks that BCP has executed successfully, the component shows green and then the package continues to run.
But of course what I want the BCP call to do is return an error message which would then trigger the standard on error event handler within SSIS. How do I do this please?
It maybe the “Execute Process Task” could be a better SSIS component to use for this call
Using BCP Utility in SSIS. Does anyone have experience of doing this type of thing?
Thanks in advance,
Kieran.
Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/Why don't you use the "Fast Load" option = BULK LOAD? Or the BULK LOAD stored proc?
The only other way I can think of this can be done is by directing errors to an error file which can be interrogated from the package and then a precedence constraint used to trigger an error if there was one.
Arthur My Blog -
IPhone 3GS Shuts Down when receiving a call
My wife's iPhone 3GS has an odd problem - sometimes - but not always - when an incoming call comes in the phone shuts down. The phone doesn't ring (or vibrate) it immediately shuts down to the power off state - and it's only after a while that I realise the phone is off - later I find out someone tried to call.
Has anyone else seen this problem?
It's a 32GB 3GS on the latest firmware 3.1.2 (7D11) and 05.11.07.I'm having exactly the same issue with my iphone, and same specs. It's a new work phone so discussed with IT manager. She advised returning it so it could be sent back for repair. Would be interested if you have heard of any other fixes as not keen to be without the phone, although that needs to weighed against the fact it randomly shuts down when a call comes in!
-
Iphone shuts down when making a call
Please help my iphone shuts down when making a call restored and set to new phone but still shuts down after 2 to 3 mins HELP
I'm having exactly the same issue with my iphone, and same specs. It's a new work phone so discussed with IT manager. She advised returning it so it could be sent back for repair. Would be interested if you have heard of any other fixes as not keen to be without the phone, although that needs to weighed against the fact it randomly shuts down when a call comes in!
-
How can I automate the multi-step process of looking up a caller's contact details when a telephone call comes in with caller ID. I want to be able to see more than just the first & last name when a client calls me. I would like the caller ID to pull up the same information that shows up when you search for and find a contact name and then click on the right arrow.
My workaround is to force/enter both the last name and the address in the last name field since then the address will show up.
The only computerized way to look up this additional information is to put the client on hold, memorize the first and last name and correctly enter it in the search field of the contact database and hopefully find it before the client gets tired of waiting.
Note that I go to about 48 small jobs per week. So far I have about 9,000 contacts. It's easy to make a mistake and have the client wondering what I'm doing and what's taking so long.
The second workaround is to use paper and pencil and ask the client for name, address, cross street and phone number again, repeating what I did some time previously.
Please help meautomate this process.You don't have to put anyone on hold. When the call comes in, tap the Home button, then tap contacts, go to the contact. Tap Home button when finished, tap the top banner to return to the call screen.
-
Return code 4 when converting field GN_PAR_SSY in record
Hi friends,
This is very much urgent.
I am getting error
"Record 1 :Return code 4 when converting field GN_PAR_SSY in record " while extracting customer text through 0customer_text.
In the transfer rule there is nothing assigned to the infobjects 0GN_PAR_SSY.
My source system is EEC 6.0.
I am not getting this error on development and quality servers.
Regards,
Sane M. V.Hi mahendra , just have a look on the routine , for this infobject.
PROGRAM CONVERSION_ROUTINE.
Type pools used by conversion program
TYPE-POOLS: RS, RSARC, RSARR, SBIWA, RSSM.
Declaration of transfer structure (selected fields only)
TYPES: BEGIN OF TRANSFER_STRUCTURE ,
InfoObject 0PLANT: CHAR - 000004
WERKS(000004) TYPE C,
InfoObject 0POSTAL_CD: CHAR - 000010
PSTLZ(000010) TYPE C,
InfoObject 0PURCH_ORG: CHAR - 000004
EKORG(000004) TYPE C,
InfoObject 0SALESORG: CHAR - 000004
VKORG(000004) TYPE C,
InfoObject 0FACTCAL_ID: CHAR - 000002
FABKL(000002) TYPE C,
InfoObject 0COUNTRY: CHAR - 000003
LAND1(000003) TYPE C,
InfoObject 0REGION: CHAR - 000003
REGIO(000003) TYPE C,
InfoObject 0COUNTY_CDE: CHAR - 000003
COUNC(000003) TYPE C,
InfoObject 0DISTR_CHAN: CHAR - 000002
VTWEG(000002) TYPE C,
InfoObject 0RT_CUSTPL: CHAR - 000010
KUNNR(000010) TYPE C,
InfoObject 0PLANTCAT: CHAR - 000001
VLFKZ(000001) TYPE C,
InfoObject 0SALES_DIST: CHAR - 000006
BZIRK(000006) TYPE C,
dummy field to avoid syntax error
$dummy(1) type c,
END OF TRANSFER_STRUCTURE .
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int,
l_text TYPE string.
$$ end of global - insert your declaration only before this line -
FORM COMPUTE_GN_R3_SSY
Compute value of InfoObject 0GN_R3_SSY
in communication structure /BIC/CS0PLANT_ATTR
Technical properties:
field name = GN_R3_SSY
data element = /BI0/OIGN_R3_SSY
data type = CHAR
length = 000002
decimals = 000000
ABAP type = C
ABAP length = 000004
reference field =
Parameters:
--> RECORD_NO Record number
--> TRAN_STRUCTURE Transfer structure
<-- RESULT Return value of InfoObject
<-> G_T_ERRORLOG Error log
<-- RETURNCODE Return code (to skip one record)
<-- ABORT Abort code (to skip whole data package)
FORM COMPUTE_GN_R3_SSY
USING RECORD_NO LIKE SY-TABIX
TRAN_STRUCTURE TYPE TRANSFER_STRUCTURE
G_S_MINFO TYPE RSSM_S_MINFO
CHANGING RESULT TYPE /BI0/OIGN_R3_SSY
G_T_ERRORLOG TYPE rssm_t_errorlog_int
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel datapackage
$$ begin of routine - insert your code only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
CALL FUNCTION 'RSDG_ID_GET_FROM_LOGSYS'
EXPORTING
i_source_system = G_S_MINFO-LOGSYS
IMPORTING
e_soursysid = RESULT
EXCEPTIONS
id_not_found = 1.
IF sy-subrc <> 0.
RETURNCODE = 4.
MESSAGE e087(r7) WITH G_S_MINFO-LOGSYS INTO l_text.
MOVE-CORRESPONDING syst TO l_s_errorlog.
l_s_errorlog-record = RECORD_NO.
APPEND l_s_errorlog TO g_t_errorlog.
ABORT = 1.
ENDIF.
$$ end of routine - insert your code only before this line -
ENDFORM.
FORM INVERT_GN_R3_SSY
Inversion of selection criteria for InfoObject 0GN_R3_SSY
This subroutine needs to be implemented only for SAP RemoteCubes
(for better performance) and for the Report/Report Interface
(drill through).
--> I_RT_CHAVL_CS Ranges table for current InfoObject
--> I_THX_SELECTION_CS Selection criteria for all other InfoObjects
<-- C_T_SELECTION Selection criteria for fields of
transfer structure
<-- E_EXACT Flag: Inversion was exact
FORM INVERT_GN_R3_SSY
USING I_RT_CHAVL_CS TYPE RSARC_RT_CHAVL
I_THX_SELECTION_CS TYPE RSARC_THX_SELCS
CHANGING C_T_SELECTION TYPE SBIWA_T_SELECT
E_EXACT TYPE RS_BOOL.
$$ begin of inverse routine - insert your code only below this line-
DATA:
L_S_SELECTION LIKE LINE OF C_T_SELECTION.
An empty selection means all values
CLEAR C_T_SELECTION.
Selection of all values may be not exact
E_EXACT = RS_C_FALSE.
$$ end of inverse routine - insert your code only before this line -
ENDFORM.
Hope it helps , assign pts if helpful -
Broadband connection drops when a phone call is re...
Hi
I am new to this forum so please let me know if I don't supply all the necessary information.
For a couple of months now we have had a consistent problem with the broadband connection dropping when an incoming phone call is received, prior to this it had been fine for a long time. After making the normal user checks, as recommended by BT, the problem persisted. A BT engineer visited my house and was able to reproduce the fault at the master socket. He traced the line back, via the manholes under the street to a connection box outside the village. After working hard for four hours he seemed to have fixed the fault and was able to demonstrate streaming video uninteruppted by an incoming call. He told me that he had solved the problem by re-routing the line, he also replaced the mark 2 router with a mark 3 router. Twenty four hours later the problem returned and is again absolutely consistent - even with just the router connected to the master socket the broadband light will go out when an incoming call is received. On phoning the helpline I was told that there was a problem at the exchange, which should be fixed within 24 hours, but it wasn't and I didn't hear back. Further investigation showed that both of these issues had been marked as resolved. We are a long way from the exchange and have had a history of problems with both the line itself and the exchange. In the past the hard working BT engineers have always managed to get things sorted out when they have visited.
This time I am struggling, as I can't seem to find the right approach to BT to persuade them to build on the work that the engineer who came out so recently did - I always seem to end up describing the problem from the beginning and then being told that it is my internal wiring that is at fault, nobody will acknowledge any of the work that has been done by the engineer that visited or the person that approached the exchange.
Sorry for such a long post, but it is very frustrating - I have considered changing the phone number so that nobody can make any incoming calls, but then I would have no phone!!
Any ideas would be gratefully received.Hi John
Thank you for your very prompt response. Clicking on that link does not show up any problems in my area or with my line. I have limited technical knowledge, but what you say about high resistance does fit the facts. We have had a lot of problems over the years, most of which have been traced back to faults between the box at the edge of the villagae and our house - we have had the line replaced more than once, although I'm not exactly sure what that involved. In the past the fault that recurred was very slow speed and dropping of the broadband connection, this is different now in that the speed is actually now quite good for our area, but the connection drops when a phone call is made or received. I did have the fault logged with BT, but it has now disappeared from "track faults" without being resolved.
When everything is working it is a very good service. My friend in an isolated village in North Wales had BT broadband as soon as his local exchange was enabled. It has provided faultless service ever since, at a higher speed than I can get on the outskirts of a major city.
Thanks for the support, it has made me feel much less isolated - I'll keep reporting it.
Regards
Richard
Maybe you are looking for
-
CRM_ORDER_MAINTAIN Changing status.
Hi All, There are many similar posts on the subject which i have mentioned.I went through many of them but i am not able to close the status.Given below is the code which i have done for changing the status for ombudsman complaint and passing it to t
-
Converting 7D camera footage to Apple Pro Res 422 HQ
I shot footage with the Canon 7D. I brought the footage to Compressor (latest version as part of Final Cut Studio). I am transcoding the footage to Apple Pro Res 422 HQ for editing in Final Cut Pro 7. A few clips have been transcoded. I open up the o
-
it really wont open...
-
Dear gurus I have taken entity in Page When i select entity in drop down Different entity have different header of the report how can i do that Please help Thanks in advance
-
Hello Experts, Here we are passing data from field type FLTP No of characters 16 Decimal places 16