Sessionbeans cannot be used concurrently error? How to solve in EJB1.1?
When using EJB1.1 with WLS 6.0, is there a way to make the weblogic block a
concurrent call till the previous call is over? instead of throwing the
sessionbeans cannot be used concurrently error?
I found the <allow-concurrent-calls> xml descriptor for EJB2.0 but was
wondering how to do this with EJB 1.1
Thanks
Siva
i understand and i don't understand.
lol
thats possible for someone who is using xemacs but someone who is using Eclipse or JCreator how do i do that?
if u don't want to answer that question could u put an assertion in this code, for example : asser -> if the num < = 0 !
here is the code:
import java.io.*;
public class Capicua {
public static void main (String[] args) throws Exception {
int digit, num;
int inverted = 0;
int x;
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print(" Insert number: ");
num=Integer.parseInt(br.readLine().trim());
Assertion.assert(num <= 0, "Number can't be shorter or equals to zero!"); <--- how do i put an assert here? ( with the "do - while" its easy, but and with the asserts?
x=num;
while(num > 0) {
digit = num % 10;
num = num /10;
inverted = inverted * 10 + digit;
System.out.println("inverted = " + inverted);
if(inverted == x) {
System.out.println("Capicua");
}else{
System.out.println("not a capicau");
}
Similar Messages
-
Hi everyone
The problem should be trivial. We want to grant a quota to specific classes and use equally the remaining quota of available bandwidth to all the requesting classes. Let's clarify with an example:
Class 7 ==> priority queue, level 1 with police 20%
Class 5 ==> priority queue, level 2 with police 40%
Class 6 ==> CIR 12%
Class 3 ==> CIR 11%
Class 2 ==> CIR 8%
Class 1 ==> CIR 5%
Class 0 ==> CIR 4%
To simplify let's suppose that there is no traffic on class 7 and 5 and that all remaining classes are generating traffic at a rate of 300Mbps each. Outgoing interface is 1G so congestion occurs. We want that each class 6,3,2,1,0 receive its granted value (so, respectively, 120M, 110M, 80M, 50M and 40M for a total of 400M) and that the remaining available bandwidth (600M) will be equally assigned, so 120M to each class.
Documentation from IOS-XR 5.2.2 let's understand that this should be the default behavior but if we run the policy shown below what we get is a weighted assignment of the remaining quota.
The policy used is the following:
policy-map TEST-POLICY
class qos7
police rate percent 20
priority level 1
class qos5
police rate percent 40
priority level 2
class qos6
bandwidth percent 12
class qos3
bandwidth percent 11
class qos2
bandwidth percent 8
class qos1
bandwidth percent 5
class qos0
bandwidth percent 4
class class-default
end-policy-map
The documentation of IOS-XR 5.2.2 states that both "bandwidth percent" and "bandwidth remaining percent" could be used in the same class (which could be a solution to force the requested behavior) but using both generates the following error:
!!% Both bandwidth and bandwidth-remaining actions cannot be configured together in leaf-level of the queuing hierarchy: InPlace Modify Error: Policy TEST-POLICY: 'qos-ea' detected the 'warning' condition 'Both bandwidth and bandwidth-remaining actions cannot be configured together in leaf-level of the queuing hierarchy'
How could be solved the problem? Maybe a hierarchical QoS with the granted quota in the parent policy and a "bandwidth remaining percent 20" in the child?Hi everyone
just to provide my contribution, the hierarchical QoS policy works balancing the remaining bandwidth after granting the requested bandwidth (see the policy implemented below). However for priority queues it is granted the policer quota but sending more flows these appears to be unbalanced. So the problem to have both PQ served (in a balanced way between flows) AND have the remaining bandwidth distributed equally remains open ...
policy-map TEST-POLICY-parent
class qos6
service-policy TEST-POLICY-child
bandwidth percent 12
class qos3
service-policy TEST-POLICY-child
bandwidth percent 11
class qos2
service-policy TEST-POLICY-child
bandwidth percent 8
class qos1
service-policy TEST-POLICY-child
bandwidth percent 5
class qos0
service-policy TEST-POLICY-child
bandwidth percent 4
class class-default
service-policy TEST-POLICY-child
end-policy-map
policy-map TEST-POLICY-child
class qos7
police rate percent 20
priority level 1
class qos5
police rate percent 40
priority level 2
class qos6
bandwidth remaining percent 20
class qos3
bandwidth remaining percent 20
class qos2
bandwidth remaining percent 20
class qos1
bandwidth remaining percent 20
class qos0
bandwidth remaining percent 20
class class-default
end-policy-map -
System Extension Cannot Be Used: Soundflower Error?
I've had this issue for a long time now and I never knew what started it, it just started happening one day.andomly get
Anyways, I randomly get this pop up message that says:
System extension cannot be used
The system extension "/System/Library/Extensions/Soundflower.kext" was installed improperly and cannot be used.
Please try reinstalling it, or contact the product's vendor for an update.
There's no reason or rhyme to when it happens. I think maybe the app Boom that boosts volumes sometimes triggers it, but its never 100%. Also I googled around and I've tried some things like that restart the computer and have it run the system check and it didnt fix it
If anyone can point me in the right direction on what this might be I'd be very appreciative.Open the Script Editor in the /Applications/AppleScript/ folder and run the following:
do shell script "chown -R root:wheel /System/Library/Extensions/AppleUSBEthernetHost.kext" with administrator privileges
You may then need to restart the computer.
(113146) -
I get an error in using ncWatiForS​tate,how to solve the problem?
I recuperate a CVI code (obj2obj) in examples, in order to receive CAN data. However, I met an ERROR,
It shows:
(Hex 0xBFF62001) means the timeout of a wait or notification function expired before any desired state occurred.
Solutions: Increase value of Timeout parameter; Verify your cable connections and operation of remote devices
But if the other OBJ didn't send data,how to solve this ERROR?
I means that i want to get my program continue running without/after this error be solved?That is if time is out,it jumps to next line。You could ignore the timeout for the wait and just case to the next function you wnat to call if a timeout ocures. Thus you would not call the read function in a timeout case.
Or you could loop into the wait function again to wait another timout until the frame you expected has received.
DirkW -
Updated to ios 6.0- now I cannot send photos via messaging - how to solve this?
I updated to ios 6.0 - now I cannot send photos via messaging, although text will send - how to solve this?
Make sure MMS is enabled.
Contact your carrier to make sure MMS is provisioned on your account. -
Macbook Pro 17-Cannot install Snow Lep. How to solve the error message GUID
When I try to install Snow L., I get the error that my disk did not use the GUID partition table scheme. The install prog says to use the disk utility to change the partition scheme. It further says to select the disk and then the partition tab, and then the volume scheme and then use the option button to change it. Problem is that when I get that far, the option tab is greyed out. There is only one partition. This laptop was factory new January of this year. How do we do this without erasing everything and starting over?
PLEASE email <Edited by Host> if you can tell me (PLEASE) what to do. Lastly, I DO have a TM backup and Fusion is running XP Pro.Regardless of your current dilemma you need to have a least one complete backup in some form. Disk drives fail - not if, only when.
You should get an external drive with enough capacity to contain a complete backup.
You can make a bootable clone using either:
SuperDuper! which I use. You can find it [here|http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html]
or Carbon Copy Cloner which many people also highly recommend which can be found [here|http://www.bombich.com/software/ccc.html].
SuperDuper! has a free version that will make a bootable clone, and Carbon Copy Cloner is donation ware.
Time Machine is also a good option.
I would start with a bootable clone. All it will cost you is the drive.
With a bootable clone you can boot it and verify that you have a working clone of your system before messing around with the MacBook Pro's internal drive..
I backup everything twice via 2 different methods: Time Machine to a Time Capsule and SuperDuper! to an external drive.
I learned the hard way that all disk drives are subject to failure even backup drives. I was very lucky, the backup device failed immediately after I had restored my wife's data to a new laptop after the laptop's drive failed.
I went to make a new backup of the new laptop and the drive was dead.
Disks are cheap and getting cheaper. If you value your data you need to have backups.
Steve -
Water mark used in error, how can I remove when I export again?
Hi
I have exported some images from lightroom and have used a watermark in error. When I now go back into LR the images still have the watermark showing in the library and develop screens. I have made some changes and want to re export them but without the watermark. Is this possible?
Thanks for your helpWhen you go back into Lightroom, the original image (not the image you exported) in Lightroom should not have the watermark. Just export it again with the wartermark turned off, or with the watermark applied properly.
-
Cannot install using Winebottler, error 'prefix creation exited with error'
Need help! Frustrated! I am new with mac and I am trying to install Cubase 5 using Winebottler. This program runs well on my PC, but since I moved to mac, I want to install it. I was trying to do that using Winebottler, but it keeps saying "Prefix reation exited with error" and "you find a logfile to help with debugging on your desktop". Please help! Any info is appreciated! Thank you!
It shows me following:
###BOTTLING### default.sh
###BOTTLING### Gathering debug Info...
Versions
OS...........................: darwin10.0
Wine.........................: 1.1.44
WineBottler..................: 1.1.44
Environment
PWD..........................: '/Applications/Wine.app/Contents/Resources/bin'
PATH.........................: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.
WINEPATH.....................: /Applications/Wine.app/Contents/Resources/bin
LDLIBRARYPATH..............: /Applications/Wine.app/Contents/Resources/lib:/usr/X11R6/lib
DYLDFALLBACK_LIBRARYPATH...: /usr/lib:/Applications/Wine.app/Contents/Resources/lib:/usr/X11R6/lib
FONTCONFIG_FILE..............: /Applications/Wine.app/Contents/Resources/etc/fonts/fonts.conf
DIPSPLAY.....................: /tmp/launch-ULGMoL/org.x:0
SILENT.......................:
http_proxy...................:
https_proxy..................:
ftp_proxy....................:
socks5_proxy.................:
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro6,2
Processor Name: Intel Core i5
Processor Speed: 2.4 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache (per core): 256 KB
L3 Cache: 3 MB
Memory: 4 GB
Processor Interconnect Speed: 4.8 GT/s
Boot ROM Version: MBP61.0057.B0C
SMC Version (system): 1.58f16
Serial Number (system): 730504FQAGU
Hardware UUID: EB740EBC-2265-514B-966C-C24FF7DF4129
Sudden Motion Sensor:
State: Enabled
###BOTTLING### Create .app...
mkdir: /Volumes/Cubase 5.1/My Wine App.app: Read-only file system
ditto: /Volumes/Cubase 5.1/My Wine App.app/Contents/Frameworks/: Read-only file system
ditto: /Volumes/Cubase 5.1/My Wine App.app/Contents/MacOS: Read-only file system
ditto: /Volumes/Cubase 5.1/My Wine App.app/Contents: Read-only file system
ditto: /Volumes/Cubase 5.1/My Wine App.app/Contents/Resources/: Read-only file system
/Applications/WineBottler.app/Contents/Resources/bottler.sh: line 152: /Volumes/Cubase 5.1/My Wine App.app/Contents/Info.plist: No such file or directory
###BOTTLING### Turn on Coreaudio...
wine: chdir to /Volumes/Cubase 5.1/My Wine App.app/Contents/Resources
: No such file or directory
### LOG ### Command '/Applications/Wine.app/Contents/Resources/bin/wine regedit /tmp/coreaudio.reg' returned status 1.
###ERROR### Command '/Applications/Wine.app/Contents/Resources/bin/wine regedit /tmp/coreaudio.reg' returned status 1.
Task returned with status 15.Welcome to Apple Discussions!
Check http://www.codeweavers.com/
This is just an Apple Software forum.
You might have better luck actually installing Windows on your Mac, with the free http://www.virtualbox.org/
There is also a Cubase version for the Mac:
http://www.steinbergusers.com/forums/ubbthreads.php?ubb=showflat&Number=13124
Apparently there is a version for Snow Leopard. Not sure if it will work with your newer version of Snow Leopard, but you can contact them and ask. -
QuickTime.cab is corrupt and cannot be used. Error code 2350
I just bought a brand-new-in-a-box iPod - haven't even opened the box yet. I tried downloading/installing iTunes. I got the errors listed above.
At first, I didn't even have QT installed so, I tried just downloading and installing QuickTime. That went fine.
Then I tried (again) to install iTunes with the exact same result. I thought everything macintosh/apple was supposed to be just wonderful, bring about world peace, etc. Grrrrr....Try deleting the contents of your temp folder
C:\Documents and Settings\<username>\Local Settings\Temp
Then redownload the iTunesSetup.exe file.
Does that work? -
Got myself locked in encryption and have forgotten password to cancel it. How can I retrieve password.
ThanksThanks for that I am actually trying to sync data to my new phone ( not an iphone) so I guess unless I remember the password I cannot do it. Does this mean that I cannot access any of the music that I have on Itunes with my new phone. Sorry being a bit thick here.
Cheers -
A compiler error, how to solve?
Such a hint, find definition, fl. Controls. The Label, how to solve
You should include the complete error message in your posting. If you are having a problem trying to dynamically add a Label component, be sure that you have a Label component placed in your library.
-
Jdk1.6.0 run error, how to solve?
I am using Linux-fedora6.0 , downloaded jdk1.6.0 . I am working in an standalone machine.
javac can compile properly my file, but java can't run my class file that is created by javac.
Error msg. " Exception in thread"main" java.lang.classFormatError... unrecognized class file version.
at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
Please anyone give solution.
Dulal Acharjee
[email protected]
[email protected]
21.01.07I suspect you are picking up an old version of java. Try using the full path to your java 1.6.
/the_path_to_your_jdk_1_6/bin/java YourClass
If this works then you need to setup your PATH (NOT CLASSPATH)so that the directory
/the_path_to_your_jdk_1_6/bin
is searched before the system paths then it will pick you your 1.6 Java instead of the old version.
Message was edited by:
sabre150 -
A run-time-error ,how to solve it
I write a function to return a float64 type pointer and assign the pointer to my defined Pionter "newdata" in my StartCallBack,there's no error,but when I USE "
DAQmxWriteAnalogF64 (gtaskhandle0, leng[0]<=leng[1]?2*leng[0]:2*leng[1], 0, 10.0, DAQmx_Val_GroupByScanNumber, newdata, &written, NULL);",
I get a run-time-error like this : "work.c", line 231, col 121, thread id 0x00007FB4: Array argument too small (40000000 bytes). Argument must contain at least 80000000 bytes (10000000 elements).Why this happen?
My part code:
DAQmxCreateTask ("", >askhandle0);
DAQmxCreateAOVoltageChan (gtaskhandle0, "Dev1/ao0:1", "", -10.0, 10.0, DAQmx_Val_Volts, "");
DAQmxSetTimingAttribute(gtaskhandle0,DAQmx_SampClk_Rate,1000/looptime);
DAQmxCfgSampClkTiming(gtaskhandle0,"",1000/looptime,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,leng[0]+leng[1]);
DAQmxRegisterDoneEvent(gtaskhandle0,0,DoneCallback,NULL);
DAQmxWriteAnalogF64 (gtaskhandle0, leng[0]<=leng[1]?2*leng[0]:2*leng[1], 0, 10.0, DAQmx_Val_GroupByChannel, newdata, &written, NULL);
SetCtrlAttribute (panelHandle, PANEL_REALWRITE, ATTR_CTRL_VAL, (double)written);
DAQmxStartTask(gtaskhandle0);
Solved!
Go to Solution.I do not think so ,when I modificate the channel from "Dev1/ao0:1" to "Dev1/ao0",it works normally ,but I can output only in one AO channel by this way ,rather than in two AO channels.
float64 * volarray(double ti[],double vi[],int num,int len,double looptime)
int k=0,sum=0,m=0;
float64 *p=NULL;
p=(float64 *) malloc(sizeof(double)*len);
for(k=0;k<num-1
if(ti[k]<ti[k+1])
{for(m=0;m<(int) (ti[k+1]-ti[k])/looptime;m++)
p[m+sum]= vi[k]+m*(vi[k+1]-vi[k])/((ti[k+1]-ti[k])/looptime);
sum+= (int) (ti[k+1]-ti[k])/looptime ;
k+=1;
else
{for(m=0;m<(int) (ti[k+2]-ti[k+1])/looptime;m++)
p[m+sum]= vi[k+1]+m*(vi[k+2]-vi[k+1])/((ti[k+2]-ti[k+1])/looptime);
sum+= (int) (ti[k+2]-ti[k+1])/looptime ;
k+=2;
return p;}
float64 * JointVol( float64 *data0, float64 *data1, int len0, int len1 )
{ int i=0;
int totalLen=0;
float64 * P=NULL;
if(len0<=len1)
totalLen=2*len0;
else
totalLen=2*len1;
//totalLen=((len0<=len1)?len0:len1)*2;
P=(float64*)malloc(sizeof(double)*totalLen);
for(i=0;i<(totalLen/2);++i)
P[2*i]=*(data0+i);
P[2*i+1]=*(data1+i);
return P; -
Serialization Error.How to solve?
Hi All,
I have actived the serialization in my inbound system.Now i am getting an Error
' Serialization error for object 01,P,00058634 . Expected counter 000001 <
000002 in IDoc'. It is saying The expected serialization counter has the value 000001. However, the serialization counter in the IDoc has the value 000002 and is therefore too big'
I am not understanding how should i find which is the counter 000001 IDOC.
How to find the cause of the error?Please guide.
Regards,
PrajaktaHi narayanan,
I got the solution.I will tell you if it helps you.
I checked the IDOC with same oject &with SERIAL_COUNTER = 1.
so i found the previous unposted IDOC having same atributes.
Thanks,
Prajakta -
Ms ODBC driver error -- How to solve
when I run a java code that has JDBC-ODBC link sometimes is sucessful but sometimes failed. Please give some advise!!!! Thanks
error msg :
SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
source code :
import java.sql.*;
import java.util.*;
public class CreateCustomer {
public static void main(String args[]) {
String url = "jdbc:odbc:rd";
Connection con;
String createString;
createString = "create table CUSTOMER " +
"(CUST_CODE VARCHAR(10), " +
"CUST_NAME VARCHAR(40), " +
"CUST_ADD VARCHAR(40))";
Statement stmt;
try {
Class driverClass = Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
DriverManager.registerDriver((Driver)driverClass.newInstance());
catch (Exception t) {
t.printStackTrace(System.out);
try {
con = DriverManager.getConnection(url, info);
stmt = con.createStatement();
stmt.executeUpdate(createString);
stmt.close();
con.close();
catch(SQLException ex)
{ System.err.println("SQLException: " + ex.getMessage());
}DriverManager.registerDriver((Driver)driverClass.newInstance());Have you tried it without this line?
Kind regards,
Levi
Maybe you are looking for
-
How can I reset an apple ID without the email or birthday?
When I was younger my parents had an earthlink account, and I bought my first iPod mini, and signed up for an apple ID. Skip to years later that email account is long gone, and my mom uses the same apple ID to sign in to both her new iPhone and the i
-
Running Tomcat from a java program
I'm writing a program that shall run Tomcat from the program itself. The eacy way would be to just call org.apache.catalina.startup.Bootstrap.main(String[]) in a new thread, but that gives only a little information to the program about the state of t
-
AMS 5 Stream to IOS and Flash HELP
I have been trying to follow the tutorials but must be missing something basic. I am using Wirecast to send data to AMS 5 Pro. In wirecast I am using the following: Address: rtmp://MYSERVER/livepkgr Stream: ABC123?adbe-live-event=liveevent User Ag
-
@
-
What is Apple's policy on dead pixels on a Macbook Screen? I have a dead pixel on my screen and I want it fixed. I payed alot of money for this laptop to hear I need multiple dead pixels to get this fixed.