Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Akshayan Venkatesh

Greenhorn
+ Follow
since Apr 13, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Akshayan Venkatesh

This is my javascript function . Speech.html or Speech.jsp. if i store this html file local and run the same in locally through Internet Explorer it works fine.

but the problem if i access the speech file through server it cant work. the ActiveX control is not working .

This is my function.. .. I have enabled all the security settings in IE

also it is working fine in the eclipse browser itself. through server.

This is Speech Fucnction

function SpeakText()
{
var my_test = "T";
new ActiveXObject("SAPI.SpVoice").Speak( my_test, 1 );
}

Javascript Error : Automation server cannot create Object

please give me a valuable suggestion.

Thanks in advance
The Complete Error Trace

public transient void checkVarargs(java.lang.String[] arg0)
^
2 errors

at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:493)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:332)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:340)
at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:309)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:497)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:464)
at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:430)
at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:752)
... 25 more


<Mar 05, 2009 12:38:23 PM CET> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'BHapp' due to error weblogic.application.ModuleException: Exception preparing module: EJBModule(ejb/test/ejb_BE_test.jar)


Unable to deploy EJB: ejb/test/ejb_BE_test.jar from ejb/test/ejb_BE_test.jar:
>
12 years ago
Hai,

I am using java 1.5 and Weblogic 9.2. I wrote one method in ejab bean with the argument as String var args.

public void checkVarargs(String ...) {
// not working
}

when i try to deploy in WLServer the follwing exception has occured.

public transient void checkVarargs(java.lang.String[] arg0)
^
2 errors
>
Unable to deploy EJB: ejb/Test/ejb_Test.jar


[color=orange]the problem is when ever using var args bean method as arguments the the compiler put the transient
keyword before the method. so the new signature of the method is now changed so it expect the same method signature
not in the remote then the error occured.
[/color]

How to solve this problem.? Thanks in advance

Thanks & Regards
Venky






12 years ago
For concatenation of strings, which method is good,
StringBuffer or String ? and Why

please explain me in advance
14 years ago
How to compile servlet file

i am using jdk1.6.0_01
and j2eesdk 1.4 application server.

if i compile the servlet file it will throw an error

javax.servlet.http package not found.

i have set proper path & classpath

please help me to set the classpath & path .

thanks in advance
14 years ago
If i invoke java HelloServer i met this error.

Error:java.rmi.ServerException: RemoteException occurred in server thread; neste
d exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: HelloImpl_Stub

Please tell me the answer in advance
14 years ago
What is the Difference between static final members and final static members

example :

static final int x = 10;
final static int x = 10;

please explain me. in advance.
14 years ago
final methodes are not override by sub classes. but final variables are override .Why ?. Please explain me.


Thanks in advance.

Venkatesh
14 years ago
How to sort in descending order the followings(using util packages)

Name No
xxx 101
yyy 102
aaa 103
ddd 104


please answer the Question above in advance.

Thanks
14 years ago
hi friends,


can main() method be overloaded? ..explain

Thanks in advance
14 years ago
____________________________________________________________________
class StaticDemo
{
static String name = "static"; // static variable
static void show()
{
System.out.println("This is comes from static method");
}
public static void main(String []args)
{
System.out.println(name);
show(); // here we calling show method
}
}

in the above simple program we can access the variables and methods without Object.

If you declare member as static directly we can call the variables or methods if they are in the same class
____________________________________________________________________________
if you are using different classes we may use follows.

class Other
{
static void show()
{
System.out.println("other class");
}
}
class OtherDemo
{
public static void main()
{
show(); /// error
Other.show();
}
}


In this example we cannot call show() method. because it is in other class. so only you can access classname.membername(Other.show())

without creation of an Object we can access the members(variables & methods) of that class.

if any doubt/mistakes please mail to
ilanji83@gmail.com
14 years ago
The memory allocated in this sense String Literal Pool area.

Object are normally stored in the memory place of HEAP

I also like to tell Object reference are stored in the memory place of STACK
14 years ago
I am Useing Javascript to evaluate a form using follwing code ..In this Code is Checking Properly but..It Display One by one..

if(name.value.length==0){
alert("Please Enter Your First Name");}
if(password.value.length==0){
alert("Please Enter your Last Name");}
if(add.value.length==0){alert("Please Enetr Address") }

and another user details...etc

If You submit this it will alert me ...But I want the alert or msg the Group of null values.. If the User Does not Mention the one or more details alert msg will display ..this manner or any

The Folloeing details you did not Enter Please Enter the Details.
1.User Name
2.Pass word
3.Address..
Please tell me How Evaluate and Give the necessary Code...

Akshayan....
I am Using Java Script to validate only phone in text box using following code ...
if(isNaN(parseInt(document.frm.phone.value)))
{
alert("Enetr Number only in the Phone Column");
}
if i give the input any character (example: abcdef ) in texbox it will check and give the Correct alert message ...
but i give the input (example: 52hghg ) in textbox it will accept it .. Whenever i give the input starting with any number it will accept ..
Why? What is the Reason How to Validate number only in textbox...
15 years ago
How To Maintain Session with Thread Safe? ie Using Sychronized to avoid that problem ... How to make this.. Please Discribe me..

Akshayan...
15 years ago