Suspend if inactive except when mpd, mplayer or deluge are active
Greetings fellow archers,
I'm running arch and lxde on my girlfriends computer and I'm looking for a somewhat simple way to suspend it after a period of inactivity except when some apps are running (mpd, mplayer, deluge, etc).
I tried xautolock but it seems somewhat limited. Can pm-utils, any DE's power managers or something else do this?
Cheers and thanks in advance
Last edited by snoxu (2010-01-24 23:52:51)
Rasi wrote:show your complete default.pa (also make sure that you dont override pulse settings in ~/.config/pulse) this setting should allow sound for ANY user - i just tried it and it works
also: of course you restarted pulseaudio?
I restarted pulseaudio and my computer.
My default.pa is displayed in the first post.
My files in /etc/pulse:
> ls -la /etc/pulse
total 28
drwxr-xr-x 1 root root 116 May 16 10:22 .
drwxr-xr-x 1 root root 3740 May 16 10:47 ..
-rw-r--r-- 1 root root 1269 Mar 3 21:31 client.conf
-rw-r--r-- 1 root root 2348 Oct 8 2013 daemon.conf
-rw-r--r-- 1 root root 5756 May 16 10:24 default.pa
-rw-r--r-- 1 root root 5718 Oct 8 2013 default.pa.pacnew
-rw-r--r-- 1 root root 2112 Oct 8 2013 system.pa
-la
My files in ~/.config/pulse:
> ls -la ~/.config/pulse
total 1048
drwx------ 1 homeuser homeuser 660 Sep 12 2013 .
drwx------ 1 homeuser homeuser 1054 Apr 24 14:06 ..
-rw-r--r-- 1 homeuser homeuser 40960 Oct 17 2013 1a8726d55f9140ae9d95dc512eacea67-card-database.tdb
-rw-r--r-- 1 homeuser homeuser 43 May 16 10:37 1a8726d55f9140ae9d95dc512eacea67-default-sink
-rw-r--r-- 1 homeuser homeuser 42 May 16 10:37 1a8726d55f9140ae9d95dc512eacea67-default-source
-rw-r--r-- 1 homeuser homeuser 12288 May 16 10:49 1a8726d55f9140ae9d95dc512eacea67-device-volumes.tdb
lrwxrwxrwx 1 homeuser homeuser 23 Sep 12 2013 1a8726d55f9140ae9d95dc512eacea67-runtime -> /tmp/pulse-cDmMRoO9oFBz
-rw-r--r-- 1 homeuser homeuser 12288 May 15 22:43 1a8726d55f9140ae9d95dc512eacea67-stream-volumes.tdb
-rw------- 1 homeuser homeuser 256 Jun 15 2013 cookie
-rw-r--r-- 1 homeuser homeuser 331776 Jun 21 2013 equalizer-presets.tdb
-rw-r--r-- 1 homeuser homeuser 659456 Sep 20 2013 equalizer-state.tdb
Thanks for your efforts.
Similar Messages
-
Loop slows down when certain parts of screen are active
Hi, I've noticed that one of my loops, which is set to run at 50ms, slows down significantly when certain other parts of the screen are active.
We have a dual screen setup where on the left side we have a bunch of controls and I'm also displaying the time that 50ms loop takes. On the 2nd screen, there is a tab control with several pages. When some of the pages are displayed (and those are the ones that are probably the "busiest" in terms of processing), the loop time slows down to anything in the range of 1-4 seconds.
The loop runs at 50ms when other lower-processing tabs are showing. It will also run at 50ms when any other window (another VI, another application) is hiding that right tab display. Actually, it'll run at 50ms if another window hides about half of that right tab
What can I do to be able to watch those tab pages and keep my loop running from slowing down? One of those tab pages is a fault message display, so it's good to watch while you're running a test!
Thanks.I would start by checking what you're displaying in your pages. You might be doing something that doesn't need to be done all the time.
I once ran into an issue where screen updates to a control in a tab would slow down the computer (100% CPU usage) even when another tab page was selected and would only stop when the tab was moved off the screen or when the control was moved out of the tab. Unfortunately, I was never able to reliably recreate that issue. In that case the problem was with updating the strings in an array of rings using a property node, but yours might be a different case.
If what I described sounds similar to what you're seeing (increased CPU usage even when the real culprit is not displayed) I would be interested in seeing a demo.
Try to take over the world! -
Cannot connect to internet when both wifi & cellular data are activated
I have setup a wifi network in my office to allow all my Apple devices to wirelessly communicate with each other. I purposely setup the wifi hub without Internet access: the sole purpose of the hub is to project data from various iPad's and iPhone's onto my Apple TV. This has worked flawlessly.
I receive a strong Verizon signal in my office which allows me to access the web on my wifi+3G iPad2.
Here is the problem: when I'm connected to both the cellular network and the wifi router (that does not have Internet access), I can no longer search the web. My belief is that even though I have a strong Verizon data signal, the iPad purposely switches over to wifi to access data, continuously searching for an Internet connection that isn't there.
Does anyone have a solution to this? Is there a way to override the iPad so it pulls data from the cellular network first, then from wifi? Please note that I do not have the ability to establish an Internet connection through the wifi router--only via the cellular network.
The goal is to be able to surf the web on the iPad using the Verizon network, and project what I'm viewing onto the Apple TV using the wireless hub. I can execute both actions separately, but not simultaneously.The iPad uses wifi first for connection. If wifi is not available, it switches to cellular. I know of no way to reverse the connection. You'll have to make your connections manually each time. If you want to use cellular first, turn wifi Off.
Cheers, Tom -
Exception when executing rules using portal
Sorry for the unformatted post, but this is all I can do with the HTML client.....
It looks like the p13nConsoleApp is not deployed properly.
We are receiving the following exception when we execute a 'rule' in portal.
ava.rmi.RemoteException: Error in ejbCreate:; nested exception is: javax.ejb.CreateException:
javax.management.InstanceNotFoundException: Unable to find EventServiceConfig=null
with parent twistDomain:ApplicationConfig=soe,Location=twist,Name=soe,Type=ApplicationConfigurationConfig.
javax.ejb.CreateException: javax.management.InstanceNotFoundException: Unable
to find EventServiceConfig=null with parent twistDomain:ApplicationConfig=soe,Location=twist,Name=soe,Type=ApplicationConfigurationConfig.
at com.bea.p13n.events.internal.EventServiceBean.ejbCreate(EventServiceBean.java:154)
at com.bea.p13n.events.internal.EventServiceBean_kh7q5h_Impl.ejbCreate(EventServiceBean_kh7q5h_Impl.java:117)
at java.lang.reflect.Method.invoke(Native Method) at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:148)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:127) at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:61)
at com.bea.p13n.events.internal.EventServiceBean_kh7q5h_EOImpl.dispatchEvent(EventServiceBean_kh7q5h_EOImpl.java:29)
at com.bea.p13n.tracking.TrackingEventHelper.dispatchEvent(TrackingEventHelper.java:132)
at com.bea.p13n.rules.advislets.RulesAdvisletImpl.sendRuleEvent(RulesAdvisletImpl.java:386)
at com.bea.p13n.rules.advislets.RulesAdvisletImpl.getAdvice(RulesAdvisletImpl.java:211)
at com.bea.p13n.advisor.internal.AdvisorImpl.getAdvice(AdvisorImpl.java:89) at
com.bea.p13n.advisor.internal.CompoundAdvisletImpl.getAdvice(CompoundAdvisletImpl.java:102)
at com.bea.p13n.advisor.internal.AdvisorImpl.getAdvice(AdvisorImpl.java:89) at
com.bea.p13n.advisor.internal.EjbAdvisorImpl.getAdvice(EjbAdvisorImpl.java:77)
at com.bea.p13n.advisor.internal.EjbAdvisorImpl_8wtzgj_EOImpl.getAdvice(EjbAdvisorImpl_8wtzgj_EOImpl.java:102)
at com.bea.p13n.servlets.jsp.taglib.DivTag.includeBody(DivTag.java:115) at com.bea.p13n.servlets.jsp.taglib.DivTag.doStartTag(DivTag.java:181)
at jsp_servlet.__billinginformation_mainsummary._jspService(__billinginformation_mainsummary.java:822)
On the console it appears that the p13nConsoleApp is not deployed.
Here is our config.xml file
<?xml version="1.0" encoding="UTF-8"?> <!--Last updated on: Tue Mar 11 12:56:06
GMT-07:00 2003, If your domain is active, please do not edit the config.xml file.
Any changes made to that file while the domain is active will not have any effect
on the domain's configuration and are likely to be lost. If your domain is inactive,
you may edit this file with an XML editor. If you do so, please refer to the BEA
Weblogic Server Configuration Reference documentation available from http://edocs.bea.com/wls/docs70/config_xml.
In general, we recommend that changes to your configuration file be made through
the Administration Console.--> <Domain ConfigurationVersion="7.0.0.0" Name="twistDomain">
app tag removed <!--- Application Deployed="true" Name="p13nConsoleApp" Path="/opt/bea7sp1/weblogic700/portal/lib"
TwoPhase="true"> <WebAppComponent Name="p13nConsole" Targets="twist" URI="p13nConsole.war"/>
</Application> <Application Deployed="true" Name="soe" Path="./applications/soeApp.ear"
StagedTargets="" TwoPhase="true"> <ApplicationConfiguration Name="soe" Targets="twist"
URI="META-INF/application-config.xml"/> <EJBComponent Name="SOE_usermgmt" Targets="twist"
URI="SOE_usermgmt.jar"/> <EJBComponent Name="accountMgmt" Targets="twist" URI="accountMgmt.jar"/>
<EJBComponent Name="c2kmaintenance" Targets="twist" URI="c2kmaintenance.jar"/>
<EJBComponent Name="ejbadvisor" Targets="twist" URI="ejbadvisor.jar"/> <EJBComponent
Name="events" Targets="twist" URI="events.jar"/> <EJBComponent Name="failOver"
Targets="twist" URI="failOver.jar"/> <EJBComponent Name="orderMgmt" Targets="twist"
URI="orderMgmt.jar"/> <EJBComponent Name="pipeline" Targets="twist" URI="pipeline.jar"/>
<EJBComponent Name="property" Targets="twist" URI="property.jar"/> <EJBComponent
Name="referenceData" Targets="twist" URI="referenceData.jar"/> <EJBComponent Name="rules"
Targets="twist" URI="rules.jar"/> <EJBComponent Name="services" Targets="twist"
URI="services.jar"/> <EJBComponent Name="tuxedoServices" Targets="twist" URI="tuxedoServices.jar"/>
<WebAppComponent Name="masterDataSync.war" URI="masterDataSync.war"/> <WebAppComponent
Name="orderService" Targets="twist" URI="orderService.war"/> <WebAppComponent
Name="orderServiceDataSync" Targets="twist" URI="dataSync.war"/> </Application>
<ApplicationManager Name="twistDomain"/> <CachingRealm BasicRealm="C2kCustomRealm"
CacheCaseSensitive="true" Name="SoeCachingRealm"/> <CustomRealm ConfigurationData="IgnorePrincipals=system,Administrators,everyone,guest,SoeUsers,admin;GroupName=SoeUsers"
Name="C2kCustomRealm" RealmClassName="com.qwest.wireless.soe.security.C2kSecurityRealm"/>
<EmbeddedLDAP Credential="{3DES}fEhMlTXHx3AEUUOg/nNBOWobvlCzwMdsztHoPLEE5Kc="
Name="twistDomain"/> <FileRealm Name="wl_default_file_realm"/> <JDBCConnectionPool
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1" MaxCapacity="5"
Name="dataSyncPool" Properties="user=portal7;password=portal7;dll=ocijdbc8;protocol=thin"
Targets="twist,twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="5" Name="jmsPool" Properties="user=jmstore;password=jmstore;dll=ocijdbc8;protocol=thin"
Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="10" Name="oracleCommercePool" Properties="user=portal7;password=portal7;dll=ocijdbc8;protocol=thin"
Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="20" Name="oraclePool" Properties="user=supdt;password=supdt;dll=ocijdbc8;protocol=thin"
Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="5" Name="pdb" Properties="user=supdt;password=supdt;dll=ocijdbc8;protocol=thin"
RefreshMinutes="2" Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual"
URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/> <JDBCConnectionPool ConnLeakProfilingEnabled="false"
DriverName="oracle.jdbc.driver.OracleDriver" EnableResourceHealthMonitoring="true"
InitialCapacity="1" JDBCXADebugLevel="0" KeepLogicalConnOpenOnRelease="false"
KeepXAConnTillTxComplete="false" MaxCapacity="5" Name="rtma" NeedTxCtxOnClose="false"
NewXAConnForCommit="false" PrepStmtCacheProfilingEnabled="false" PrepStmtCacheProfilingThreshold="10"
PreparedStatementCacheSize="10" Properties="user=rtma;password=rtma;dll=ocijdbc8;protocol=thin"
RecoverOnlyOnce="false" RefreshMinutes="2" SqlStmtMaxParamLength="10" SqlStmtParamLoggingEnabled="false"
SqlStmtProfilingEnabled="false" Targets="twist" TestConnectionsOnReserve="true"
TestTableName="dual" URL="jdbc:oracle:thin:@pcsc2k:1521:rtmatst" XAEndOnlyOnce="false"/>
<JDBCDataSource JNDIName="jmsPool" Name="jmsPool" PoolName="jmsPool" Targets="twist"/>
<JDBCDataSource JNDIName="oraclePool" Name="oraclePool" PoolName="oraclePool"
Targets="twist"/> <JDBCDataSource JNDIName="oracleProductCatalogPool" Name="pdbsource"
PoolName="pdb" Targets="twist"/> <JDBCDataSource JNDIName="oracleRtmaPool" Name="rtmasource"
PoolName="rtma" RowPrefetchEnabled="false" RowPrefetchSize="48" StreamChunkSize="256"
Targets="twist"/> <JDBCTxDataSource JNDIName="weblogic.jdbc.jts.commercePool"
Name="commercePool" PoolName="oracleCommercePool" Targets="twist"/> <JDBCTxDataSource
JNDIName="weblogic.jdbc.jts.dataSyncPool" Name="dataSyncPool" PoolName="dataSyncPool"
Targets="twist,twist"/> <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="txOraclePool"
Name="txOraclePool" PoolName="oraclePool" Targets="twist"/> <JMSJDBCStore ConnectionPool="jmsPool"
Name="RebateMsgStore" PrefixName="rebate"/> <JMSServer Name="SoeJMSServer" Store="RebateMsgStore"
Targets="twist"> <JMSQueue JNDIName="SoeOrderResubmit" Name="OrderResubmitJMSQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="SoeOrderSubmit" Name="OrderSubmitJMSQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="SoeReferenceDataRefresh" Name="ReferenceDataJMSQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="SoeTransactionHistoryLog" Name="TransactionHistoryLogJmsQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="CCARefundSubmit" Name="TuxServicesJMSQueue"
RedeliveryDelayOverride="30000" StoreEnabled="true"/> <JMSTopic JNDIName="SoeFailoverReload"
Name="FailoverReloadTopic" StoreEnabled="false"/> </JMSServer> <JTA Name="twistDomain"
TimeoutSeconds="120"/> <Log FileCount="14" FileMinSize="1" FileName="logs/domain.log"
Name="twistDomain" NumberOfFilesLimited="true" RotationType="byTime"/> <PasswordPolicy
LockoutDuration="15" LockoutThreshold="4" Name="wl_default_password_policy"/>
<Realm CachingRealm="SoeCachingRealm" FileRealm="wl_default_file_realm" Name="soe_security_realm"/>
<SNMPAgent Name="twistDomain"/> <Security CompatibilityMode="true" Name="twistDomain"
PasswordPolicy="wl_default_password_policy" Realm="soe_security_realm" RealmSetup="true"/>
<SecurityConfiguration Credential="{3DES}x9Dc91liWeYhTCNCdL6p4XSuwuE/vQYuxUx00OHkQfou++Nz7ir8dA5r54wIVykPJ9ELRmVMKEUYFP33OWI2AyxwRZpHGZWv"
Name="twistDomain"/> <Server Name="blank"> <COM Name="blank"/> <ExecuteQueue Name="default"/>
<IIOP Name="blank"/> <JTAMigratableTarget Cluster="" Name="blank" UserPreferredServer="blank"/>
<JTARecoveryService Name="blank"/> <KernelDebug Name="blank"/> <Log Name="blank"/>
<SSL Name="blank"/> <ServerDebug Name="blank"/> <ServerStart Name="blank"/> <WebServer
Name="blank"/> </Server> <Server ListenPort="4501" Name="twist" ServerVersion="7.0.1.0"
TransactionLogFilePrefix="tlogs/"> <COM Name="twist"/> <ExecuteQueue Name="default"
ThreadCount="15"/> <IIOP Name="twist"/> <JTAMigratableTarget Cluster="" Name="twist"
UserPreferredServer="twist"/> <JTARecoveryService Name="twist"/> <KernelDebug
Name="twist"/> <Log FileCount="14" FileMinSize="1" FileName="logs/twist.log" Name="twist"
NumberOfFilesLimited="true" RotationType="byTime"/> <SSL ListenPort="4502" Name="twist"/>
<ServerDebug Name="twist"/> <ServerStart Name="twist"/> <WebServer LogFileName="logs/access.log"
LogRotationPeriodMins="1440" LogRotationType="date" LoggingEnabled="true" Name="twist"/>
</Server> <StartupClass ClassName="com.qwest.wireless.soe.services.ejb.C2kTransactionHistoryQueueRefreshStartup"
Name="C2kTransactionHistoryLogging queue refresh scheduler startup class" Targets="twist"/>
<StartupClass ClassName="com.qwest.wireless.soe.services.ejb.C2kServiceReportStartup"
Name="MyStartup Class" Targets="twist"/> <StartupClass ClassName="com.qwest.wireless.soe.referenceData.ejb.ReferenceDataStartup"
Name="ReferenceDataStartupClass" Targets="blank"/> <WLECConnectionPool MaximumPoolSize="5"
MinimumPoolSize="1" Name="ProductAvailabilityPool" PrimaryAddresses="//pcsdev50:14502"
Targets="twist" WLEDomain="PA_WLE_JAVA"/> <WLECConnectionPool FailoverAddresses="//sia-co5:31011"
MaximumPoolSize="5" MinimumPoolSize="1" Name="SIAWLECConnectionPool" PrimaryAddresses="//sia-co6:31011"
Targets="twist" WLEDomain="SIA_DASC"/> <WTCServer Name="twist" Targets="twist">
<WTCExport EJBName="com.qwest.wireless.soe.tuxedoServices.ejb.TuxCCAAdapter" LocalAccessPoint="TWIST_DOM"
Name="Refund" ResourceName="CCA_REFUND"/> <WTCImport LocalAccessPoint="TWIST_DOM"
Name="C2k_1" RemoteAccessPointList="TWISTELINK1,TWISTELINK2" ResourceName="ASMBLR_SOE"/>
<WTCImport LocalAccessPoint="TWIST_DOM" Name="C2k_2" RemoteAccessPointList="TWISTELINK2,TWISTELINK1"
ResourceName="ASMBLR_SOE"/> <WTCLocalTuxDom AccessPoint="TWIST_DOM" AccessPointId="TWIST_DOM"
BlockTime="70" ConnectionPolicy="ON_DEMAND" Interoperate="Yes" NWAddr="//nexus:4503"
Name="TWIST_DOM" Security="NONE"/> <WTCRemoteTuxDom AccessPoint="TWISTELINK1"
AccessPointId="TWISTELINK1" LocalAccessPoint="TWIST_DOM" NWAddr="//pcsdev53:14548"
Name="TWISTELINK1"/> <WTCRemoteTuxDom AccessPoint="TWISTELINK2" AccessPointId="TWISTELINK2"
LocalAccessPoint="TWIST_DOM" NWAddr="//nowhere:9999" Name="TWISTELINK2"/> </WTCServer>
</Domain>
Cheers PhilippHi Karol,
thanks for your answer.
I also had this SP synchronization issue regarding other problems with the execution of web templates. See my post <a href="https://forums.sdn.sap.com/thread.jspa?threadID=209587">https://forums.sdn.sap.com/thread.jspa?threadID=209587</a>.
I will once again ask the basis team, if the two SP-levels are identical.
Regards,
Philipp -
Dear Experts,
i am getting the below error when i was giving * (Star) to view all the items in DB
[Microsoft][SQL Server Native Client 11.0][SQL Server]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. 'Items' (OITM) (OITM)
As i was searching individually it is working fine
can any one help me how to find this..
Regards,
Meghanath.SDear Nithi Anandham,
i am not having any query while finding all the items in item master data i am giving find mode and in item code i was trying to type *(Star) and enter while typing enter the above issue i was facing..
Regards,
Meghanath -
hi Experts,
while running SQL Query i am getting an error as
The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
select T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
T2.LineText
from OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
group by T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
,T2.LineText
how to resolve the issueDear Meghanath,
Please use the following query, Hope your purpose will serve.
select T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
CAST(T2.LineText as nvarchar (MAX))[LineText]
from OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
group by T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
,CAST(T2.LineText as nvarchar (MAX))
Regards,
Amit -
Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.
What are the performance Preferences?
-
WPF report viewer throws exception when print button clicked when hosted on winform
When hosted in a winform app the wpf report viewer control throws an exception when the print button is clicked.
All the other buttons appear to work, any ideas on a work round?
I have created a sample VS 2013 solution that shows this issue
As I can't even attach a renamed zip file it can be downloaded directly from here: http://1drv.ms/QxUrZo
The reason I am attempting to use this control is that the standard reportviewer causes occasional errors in citrix enviroments causing the citrix session to lock up. This appears to be a relatively common issue and the usual issue of both sides (citrix & crystal) blaming the other for the cause and me the developer needs to find a work round.
I've 'bodged' in an additional button on our app to export a loaded report to file as pdf then print it but this should not be the permanent resolution.
BTW glad to see the x64 dynamic parameter issue has been fixed at last, think I reported this over two years ago and again ended up having to work round it.Hi Ludek
A sample project that loads a simple report is available from here: http://1drv.ms/QxUrZo
The project is called WPFReportHost
This loads a simple report when run then you can test the basic functionality of the viewer and all will work until you press the print button and then you get the application crash.
Have to improve my search technique when I googled for other people having this issue I didnt' find the link.
We've noticed the WPF viewer loads considerably faster and has better functionality than the winform viewer and hope that it might solve the citrix preview issue (yet to be tested).
So as a work round we've hidden the default print button added our own and call the report print directly as per below:
using (PrintDialog dialog = new PrintDialog())
dialog.AllowCurrentPage = true;
dialog.AllowSelection = true;
dialog.AllowSomePages = true;
dialog.AllowPrintToFile = true;
if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) {
reportDocument.PrintToPrinter(
dialog.PrinterSettings,
new System.Drawing.Printing.PageSettings(dialog.PrinterSettings);
false);
Would be nice to have a fix -
NO_PERMISSION Exception when calling secured EJB-methods
In WL6.1, I have an Ejb with secured methods. The (Swing) client application accesses the Ejb through rmi-iiop using the JDK1.3.1 Orb.
Unfortunately, it seems that the caller identity (which was supplied in the InitialContext lookup) is not propagated
to the server: any call to a secured method
fails with a CORBA NO_PERMISSION Exception.
Non secured methods work fine.
Using the t3 protocol the program also works fine, but that would require
the 25Mb weblogic.jar on all clients,
which is unattainable for us.
Any ideas how this situation can be corrected?
-Allard SiemelinkI am still getting the NO_PERMISSION Exception when using "weblogic.jndi.WLInitialContextFactory".
We use Sun's JRE, version 1.3.1_01.
Am I forgetting something?
My code is as follows:
InitialContext context = null;
try {
Hashtable ht = new Hashtable();
ht.put(InitialContext.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
ht.put(InitialContext.PROVIDER_URL, "iiop://localhost:80");
ht.put(InitialContext.SECURITY_PRINCIPAL, "system");
ht.put(InitialContext.SECURITY_CREDENTIALS, "system_password");
context = new InitialContext(ht);
Object objHome = context.lookup(EJB_NAME);
MyHome myHome = (MyHome)PortableRemoteObject.narrow(objHome, MyHome.class);
MyRemote myRemote = myHome.create();
//NEXT LINE Crashes when method is secured:
myRemote.securedMethod();
finally {
if (context!=null) context.close();
Andy Piper <[email protected]> wrote:
Allard Siemelink <[email protected]> writes:
In WL6.1, I have an Ejb with secured methods. The (Swing) client applicationaccesses the Ejb through rmi-iiop using the JDK1.3.1 Orb.
Unfortunately, it seems that the caller identity (which was suppliedin the InitialContext lookup) is not propagated
to the server: any call to a secured method
fails with a CORBA NO_PERMISSION Exception.Make sure you are using WLInitialContextFactory and not
CNCtxFactory. Only the former will give you security.
andy -
How to catch exception when have max connection pool
hi,
i have define in oracle user that i could have max 10 sessions at the same time.
I have jdbc datasource & connection pool defined at glassfish server(JSF application).
now, if in application is too many queries to the database then i have error: nullpointer exception - becouse when i try to do:
con = Database.createConnection(); - it generates nullpointer exception becouse there isn't free connection pool
i try to catch exception like this:
public List getrep_dws_wnioski_wstrzymane_graph() { int i = 0; try { con = Database.createConnection(); ps = (Statement) con.createStatement(); rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow"); while(rs.next()){ rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4))); i++; } } catch (NamingException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } catch (NullPointerException e) { e.printStackTrace(); throw new NoConnectionException(); // catch null 1 } finally { try { con.close(); } catch (SQLException e) { e.printStackTrace(); } catch (NullPointerException e) { e.printStackTrace(); throw new NoConnectionException(); // catch null 2 } } return rep_dws_wnioski_wstrzymane_graph; }
but at line:
con.close();
i have nullpointerexception
and
at line
throw new NoConnectionException(); // catch null 2
i have: caused by exception.NoConnectionException
what's wrong with my exception class? how to resolve it?
public class NoConnectionException extends RuntimeException{ public NoConnectionException(String msg, Throwable cause){ super(msg, cause); } public NoConnectionException(){ super(); } }
at web.xml i have defined:
<error-page> <exception-type>exception.NoConnectionException</exception-type> <location>/NoConnectionExceptionPage.jsp</location> </error-page>thanks,
i did it and i have error:
java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
at logic.Database.createConnection(Database.java:37): conn = ds.getConnection();
public class Database {
public static Connection createConnection() throws NamingException,
SQLException {
Connection conn = null;
try{
Context ctx = new InitialContext();
if (ctx == null) {
throw new NamingException("No initial context");
DataSource ds = (DataSource) ctx.lookup("jdbc/OracleReports");
if (ds == null) {
throw new NamingException("No data source");
conn = ds.getConnection(); // here's exception when max connections to database
if (conn == null) {
throw new SQLException("No database connection");
} catch (NamingException e) {
e.printStackTrace();
throw new NoConnectionException();
} catch (SQLException e) {
e.printStackTrace();
throw new NoConnectionException();
catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException(); // obsluga bledy na wypadek jesli braknie wolnych polaczen do bazy
return conn;
}and at my ealier code i have error:
at logic.GetDataOracle.getrep_dws_wnioski_wstrzymane_graph(GetDataOracle.java:192)
at line: con = Database.createConnection();
in code:
public List getrep_dws_wnioski_wstrzymane_graph() {
int i = 0;
try {
con = Database.createConnection();
ps = (Statement) con.createStatement();
rs = ps.executeQuery("select data, klasa, ile_dni_wstrzymana, ile_wnioskow from stg1230.dwsww_wstrzymane_dws8 order by data, klasa, ile_dni_wstrzymana, ile_wnioskow");
while(rs.next()){
rep_dws_wnioski_wstrzymane_graph.add(i,new get_rep_dws_wnioski_wstrzymane_graph(rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4)));
i++;
} catch (NamingException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException();
} finally {
try {
if(con != null)
con.close();
} catch (SQLException e) {
e.printStackTrace();
} catch (NullPointerException e) {
e.printStackTrace();
throw new NoConnectionException();
return rep_dws_wnioski_wstrzymane_graph;
}so what's wrong?
i have limit max sessions 10 at oracle so i set at my connection pool 5 connections as max. But when i get max 5 sesssins and try to execute next query then i can't catch exception.. -
i just recently upgraded my itouch from 4.1 to ios 5, and updated to itunes 10.5. but when i synced my music files,ebooks and other apps, all is working except when im trying to sync my video files. it says, canot be synced as cannot be played on this ipod. but those are the same files that i have when i was using the old 4.1 version and its syncing just fine.. the itunes advanced tab "create iphone or ipod version" is not working either so i cant convert it to be xferred and synced. what can i do to have my video files synced?
i had the same problem but i just got a new video converter and made it convert videos to ipod/iphone format and then put them into itunes. i would suggest GOM encoder as the encoder can convert them and then once they're finished converting, put them automatically into your itunes for you. from there you can just sync them to your ipod.
-
I have a iMac, Yosemite 10.10 and my toshiba external hard drive is not being recognized, except when I eject it!. I have the preferences checked to show icons and have looked in the utilities folder..nothing. I have also changed ports. ??
A few things to try:
1-Repair permissions and restart your computer.
2-Zap the PRAM
3-Use Software Update/App Store to update your OS to OS 10.10.3. Also, update everything SU/AS has to offer for your computer. When done, repair permissions and restart your computer. -
Class not found exception when launching opencounterslogger.bat
PORTAL_HOME=D:\bea\alui\ptportal\10.3.0
Expected PORTAL_HOME=D:\bea\alui\ptportal\10.3.0
claspath is D:\bea\alui\ptportal\10.3.0\lib\java\jakarta-oro-2.0.7.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openfoundation.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openlog-framework.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openconfig.jar;D:\bea\alui\ptportal\10.3.0\lib\java\openkernel.jar;D:\bea\alui\ptportal\1
0.3.0\lib\java\pmb.jar;D:\bea\alui\ptportal\10.3.0\lib\java\opencounters.jar
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/plumtree/openkernel/impl/counters/adaptor/logger/PTRemoteCounterLoggerMain
Press any key to continue . . .
The class PTRemoteCounterLoggerMain is not in any of the jars in the classpath. Also opencountersconsole.bat is not to be seen is the installationHi Mark,
I have seen your two posts and there are something you need to notice:
Where the ClassNotFound exception you got? From deployment tool or
application server kjs process?
Of course, you need not to add supporting classes to each ejb jars or ears.
1. If you use deployment tool to package your application, I'm sure you'll
fail to resovle your classes without supporting classes added to jars.
Please select Edit->Preference,in Classpath entry, enter the supporting
classes(packaged to jar files) location. This should work.
2. After deploy to ias, please edit the registry using kregedit which you
described in your posts.
Regards,
Johnson
"Mark Priest" <[email protected]> wrote in message
news:9s6h33$[email protected]..
When I deploy EJBs to the iPlanet app server I find that I need to include
all supporting classes in each ejb jar file. According to the
Administrator's manual I should be able to modify the kjs classpath bydoing
the following:
On Windows
a.. Open iPlanet Registry Editor.
(See About iPlanet Registry Editor)
b.. Open the following key:
SOFTWARE\iPlanet\Application Server\6.0\Java\
c.. Modify the class path and restart the server for the change to take
effect.
However, when I add my supporting classes to a jar in this directory Istill
get a class not found exception when I run the deployment tool.
Adding the classes to each EJB jar is redundant and introduces lots of
problems. How should I configure iPlanet so I only need to put my
supporting classes in one place?
Thanks,
Mark -
Exception when trying to acess a jsf application
Im using eclipse 3.3 , tomcat 5.5.2x
index.jsp
========
<html>
<body>
<jsp:forward page="faces/ourJsf/enterAge.jsp" />
</body>
</html>
============
enterAge.jsp
=========
<%@ page contentType="text/html; charset=Cp1252" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252"/>
<title>Dog's Life</title>
</head>
<body>
<f:view>
<h:form>
<h:outputText value="Enter your age please"/>
<h:inputText value="#{dog.age}" />
<h:commandButton value="Calculate Dog Years" action="#{dog.calcYears}" />
</h:form>
</f:view>
</body>
</html>
=========
faces-config.xml
==========
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<managed-bean>
<managed-bean-name>dog</managed-bean-name>
<managed-bean-class>beans.DogBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/ourJsf/enterAge.jsp</from-view-id>
</navigation-rule>
<navigation-rule>
<from-view-id>/ourJsf/enterAge.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/ourJsf/result.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/ourJsf/error.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
================
a portion of my web.xml
=============
<!-- Extensions Filter -->
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
<!-- <init-param>
<param-name>uploadRepositoryPath</param-name>
<param-value>/temp</param-value>
<description>Set the path where the intermediary files will be stored.
</description>
</init-param>-->
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<!-- virtual path mapping -->
<!-- virtual path mapping (uncommented by LG )-->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<!-- extension mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
=============
i'm getting an exception when i call my application :
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:371)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
javax.servlet.ServletException
javax.faces.webapp.FacesServlet.service(FacesServlet.java:156)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.NullPointerException
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreTreeStructure(JspStateManagerImpl.java:240)
org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:283)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:255)
org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:141)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
org.apache.jsp.index_jsp._jspService(index_jsp.java:46)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.
Apache Tomcat/5.5.23
Thank yoiu guys for helping me : this my very first jsf applicationHello,
Like you said it was the problem with url.
The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
Thanks !
Regards,
Loveline. -
hi experts ,
we are using classic scenario (ECC 6.6 & SRM 7.0)
we have are configured Procure-to-Pay Scenario ,Note 1263876 - SAP SRM: Configuration of Procure-to-Pay Scenario.
but facing issue.
The XML message is going over to SRM from XI , but getting an application error (Exception) when checking in sxmb_moni on the SRM side. So we are not able to see the PR in the Sourcing cockpit in SRM.
error as below
<SAP:Category>Application</SAP:Category>
<SAP:Code area="ABAP">APPLICATION_ERROR</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="http://sap.com/xi/SRM/SE/Global">ExchangeFaultData</SAP:ApplicationFaultMessage>
<SAP:Stack>Application has thrown an exception</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>Hi Vijay,
Can you tell us the interface name?
If it is stuck in FEH (Application Error) in SRM then you can check the detail error by going into tcode /n/sappo/ppo2.
You need to enter the Business Process, Order Assignment and Mode Of Postprocessing Order and then execute.
It will show you all the messages stuck in application error for that interface and if you double click on any one of them you will get to see the detailed error with options to Discard, Repeat etc.
Let us know if this helps you.
Regards,
Mayur
Maybe you are looking for
-
Hi Guys, I can update my iPod from my laptop, but just copied all my file to my desktop and it won't update at all. Says it cannot read or write to disk 'my name' iPod. It still works on laptop. How can I change it so that i can update from the other
-
MacBook internection problem after upgrade to Mac OS 10.4.10
Hi, After I upgrade my MacBook to Mac OS 10.4.10, I am problem with my wireless internet connection. Before upgrading the OS, my internet connection worked fine. But after the upgrade, the MacBook lost the connection every other minutes. So, I have t
-
Flash CC 2014 (1308) crashes immediately after launch (creative cloud)
Flash CC 2014 (1308) crashes immediately after launch (creative cloud) Singning out and in again does not solve the problem. Thanks for any help. Slyrs66 Short version of the crash report: Process: Adobe Flash CC 2014 [1308] Path: /Applica
-
How to encode a password ??
Hi, How to encode (and decode after) a password, in Base64 for example ? Is it possible to do that automatically with Java ?? Thanks in advance Steve
-
Problems with bluetooth after 2.01 installation
I had a clean upgrade to 2.01 last night, but discovered this morning that my phone will no longer pair with any bluetooth devices that it did before the upgrade. I've tried removing the devices and re-adding them, but this still doesn't fix the prob