07-09-2014
From Oracle Docs:-
NullPointerException is thrown when an application attempts to use null in a case where an object is required. These include:
- Calling the instance method of a null object.
- Accessing or modifying the field of a null object.
- Taking the length of null as if it were an array.
- Accessing or modifying the slots of null as if it were an array.
- Throwing null as if it were a Throwable value.
So it is difficult to tell what exactly is the problem without knowing anything about your java code. Check your java code to understand what is going on.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi friends,
i'm new to unix and straight away i had to start with the script files.
I've a script file which gets called from a menu item on a GUI.
This script file again calls .awk file, in performing some tasks , which also generates certain files.
I modified the files to generate some... (1 Reply)
Discussion started by: Ravi_Kandula
1 Replies
2. Shell Programming and Scripting
Hello Friends,
I have bash script on unix server which i want to call from windows server. Basically i want a command line which will call this script on unix server. Any one has any idea regarding this?
Help really appreciated!!
Thanks,
Roshni. (1 Reply)
Discussion started by: onlyroshni
1 Replies
3. Shell Programming and Scripting
Hi,
I have a query ..
i have 2 scripts say 1.sh and 2.sh
1.sh contains many functions written using shell scripts.
2.sh is a script which needs to call the functions definded in 1.sh
function calls are with arguments.
Can some one tell me how to call the functions from 2.sh?
Thanks in... (6 Replies)
Discussion started by: jisha
6 Replies
4. Shell Programming and Scripting
Hi there,
I have an script reading content of a file and runs whatever command is specified there, as follows
#!/bin/bash
# Supposed to read from a file that commands are listed to be run
# when the server starts for initialization
CMD_FILE=/myScripts/startup/task2do.txt
if ; then
... (2 Replies)
Discussion started by: james gordon
2 Replies
5. Shell Programming and Scripting
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
Discussion started by: shashi369
1 Replies
6. Shell Programming and Scripting
Hi,
I am writing a script that needs to call a stored proc which would update a column in a table based on a condition.
I need to also capture the number of rows updated.
However, When I execute the script I keep getting this error:
./test_isql.sh: syntax error at line 33: `end of file'... (3 Replies)
Discussion started by: karthikk
3 Replies
7. Shell Programming and Scripting
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Discussion started by: marcoss90
1 Replies
8. Shell Programming and Scripting
HI,
We are using two shell scripts, script.sh,env.sh, where env.sh will be called inside script.sh. The variable inside env.sh is used as $var in script.sh.But while running the script its not identifying that variable. Is there any permission needed to call a script inside another script.
... (3 Replies)
Discussion started by: banupriyat
3 Replies
9. Shell Programming and Scripting
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
Discussion started by: anandgodse
3 Replies
10. Shell Programming and Scripting
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh ... (10 Replies)
Discussion started by: Sudhakar333
10 Replies
LEARN ABOUT ULTRIX
mbtowc
mbtowc(3int) mbtowc(3int)
Name
mbtowc - converts a single multibyte character into a character of type wchar_t
Syntax
#include <stdlib.h>
int mbtowc (pwc, s, n)
wchar_t *pwc;
const char *s;
size_t n;
Arguments
pwc The pwc argument is a pointer to the resulting object of type wchar_t.
s The s argument is a pointer to a multibyte character.
n The n argument is the maximum number of bytes of object s that are examined.
Description
If s is not a null pointer, the function determines the number of bytes that comprise the multibyte character pointed to by s. It then
determines the character code for the value (of type wchar_t) that corresponds to that multibyte character (the value of the code corre-
sponding to the null character is zero). If the multibyte character is valid and pwc is not a null pointer, the function stores the code in
the object pointed to by pwc. At most n bytes of the array pointed to by s are examined. This function is affected by the LC_CTYPE cate-
gory of the current locale.
Return Values
If s is a null pointer, the function returns a zero value. If s is not a null pointer, the function returns:
o 0, if s points to the null character
o The number of bytes that comprise the converted multibye character, if the next n or fewer bytes form a valid multibye character
o - -1, if the next n or fewer bytes do not form a valid multibye character
In no case is the value returned greater than n or the value of the MB_CUR_MAX macro.
See Also
mblen(3int), mbstowcs(3int), setlocale(3int), wctomb(3int), wcstombs(3int)
mbtowc(3int)