Java.lang.NegativeArraySizeException ERROR, Help!!!!
Hi,
I am running the following line of code and it is generating an error, I am not sure what is causing this error. ANy thoughts or pointers???
Command:
C:\Users\Sheetal\marcxml\marc4j>java org.marc4j.util.MarcXmlWriter summerland.xml
Error
java.lang.NegativeArraySizeException
at org.marc4j.MarcReader.parse(Unknown Source)
at org.marc4j.marcxml.MarcXmlReader.parse(Unknown Source)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Unknow
n Source)
at org.marc4j.marcxml.Converter.convert(Unknown Source)
at org.marc4j.marcxml.Converter.convert(Unknown Source)
at org.marc4j.util.MarcXmlWriter.main(Unknown Source)
Total time: 61 miliseconds
thanks
sheetal
The xml document is probably malformed and it exposes a bug in MarcReader (bad error handling)
Kaj
Similar Messages
-
JAVA error : java.lang.NegativeArraySizeException
Hello Experts,
We have a JAVA application which runs the below query. The application is scheduled to run as a job once every month. We notice that when the application runs for the 1st time, then we get the below error :
**************Failed to execute SQL: select tablespace_name, total_mb, used_mb, pct_used, free_mb, recycle_mb, extendible_mb from all_mspace where tablespace_name in ('ORAUSER') order by tablespace_name
Caused by: java.lang.NegativeArraySizeException
at oracle.net.ano.CryptoDataPacket.decryptAndChecksum(CryptoDataPacket)
at oracle.net.ano.CryptoDataPacket.receive(CryptoDataPacket)
at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:970)
at oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:940)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:431)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:180)
at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:419)
at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:895)
at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:451)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:985)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2887)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2928)
at #####################.exec(Tablespaces.java:78)
... 4 more
However, the second run of the job is successful.Could you please help on this issue.
Sorry but I cannot tell you the lines mentioned as ####### and ******* due to confidentiality.
Thanks,
HaiderWe have a JAVA application which runs the below query. The application is scheduled to run as a job once every month. We notice that when the application runs for the 1st time, then we get the below error :
**************Failed to execute SQL: select tablespace_name, total_mb, used_mb, pct_used, free_mb, recycle_mb, extendible_mb from all_mspace where tablespace_name in ('ORAUSER') order by tablespace_name
Sorry but I cannot tell you the lines mentioned as ####### and ******* due to confidentiality.
Sorry - but if you won't post the info needed to help you then you won't get any help.
You haven't posted ANY info about the Java version, JDBC jar version, databse name and version, Nor have you posted ANY of the Java code involved in creating the connection or executing the JDBC code.
And the query you did post is either wrong or uses a custom table/view named 'all_mspace'.
All of the above means we can't try to reproduce the problem or even SEE the line of code that might be causing the problem.
It also means we can't even guess what else your application might be doing BEFORE the problem part of the code executes or WHERE the problem might be. I have no reason to think the problem is in the driver or, as the other responder's link mentions, that you are even using a connection pool.
No one expects people to post confidential info. You need to create the SMALLEST section of code that reproduces the problem and then post that. You need to do that just for your own troubleshooting purposes: remove ALL unnecessary code, and keep removing stuff, until the problem goes away or you get down to a small section of code. Then you can begin troubleshooting.
Good luck with your problem. -
Java.lang.NegativeArraySizeException:allocArray
Hello All,
Need your help in resoving the below issue.
Our application is deplover over weblogic 10.3.0.0
Jrockit_160_05.
We see only the below messge in stdout logs all of sudden, in production, but not in uat.
Only difference between uat nad prod is the jrockit version.
jdk_1.60_65_Unlimited
Error receiving mcast package. Sleeping 500ms
java.lang.NegativeArraySizeException: allocArray
at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:335)
at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:282)
at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:379)
at org.apache.catalina.tribes.membership.McastServiceImpl.receive(McastServiceImpl.java:282)
at org.apache.catalina.tribes.membership.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:364)
Error receiving mcast package. Sleeping 500ms
java.lang.NegativeArraySizeException: allocArray
at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:335)
at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:282)
at org.apache.catalina.tribes.membership.MemberImpl.getMember(MemberImpl.java:379)
at org.apache.catalina.tribes.membership.McastServiceImpl.receive(McastServiceImpl.java:282)
at org.apache.catalina.tribes.membership.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:364)This is a known bug when using global scoped work manager with max thread constraints set to -1.
You can contact the support for a patch from CR384080 or can do the following workaround :
1. Use application scoped work manager instead of global work manager.
2. Use a positive integer value (say 5) as setting for the Maximum Threads Constraint Count instead of the default -1.
3. Create a global work manager and delete the Maximum Threads Constraint. Create it later with a positive value when required and avoid using -1. -
Image upload java.lang.NegativeArraySizeException
Hi all,
When I am trying to upload image(176 x 220) to server its giving the following error
java.lang.NegativeArraySizeException
at HelloServlet.doPost(HelloServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
why its giving this error?.....can anyone help me please
Thanks in advace,
siv
Edited by: siv on Apr 26, 2008 9:13 AMYou really need to provide your code. My guess is that you are accessing an invalid index in an array on line #55 of HelloServlet.java
-
Java.lang.RuntimeException: Error while creating embedded frame
hello,
i know about http://forums.sun.com/thread.jspa?messageID=10273756, but this doens't helped.
i got a
java.lang.RuntimeException: Error while creating embedded frame
at sun.plugin.viewer.WNetscapePluginObject.createFrame(Unknown Source)
at sun.plugin.viewer.WNetscapePluginObject.setWindow(Unknown Source)
when starting a complex Java Applet in Firefox (2 + 3). Then the bowser freezes.
Internet Explorer freezes too, but doesn't left anything in the console.
Simple applets like http://www.java.com/en/download/help/testvm.xml works fine, but i doesn't know the special thing on my applet that keeps it from running.
The best thing about it is ... this happens only on some computers, on most systems the applet works as aspected.
i have no idea, where i should start to search to solve this problem, does anybody have one?
Systems that doesn't work : Win XP; Java Plugin 1.6.0_06
Systems that work : Win XP; all Java PluginsI solved this problem by correcting a typo in the HTML source:
I had a error within the DIV tag containing the applet. In this case a TD tag within this DIV contained some bad characters. Such problems could be avoided by using a HTML validator. -
Java.lang.Unsatisfiedlink Error while invoking dbca
Hi All,
I am Darshan..... need help from all of you.
While invoking dbca(Oracle 10g) on HP UX I am getting following error.
java.lang.unsatisfiedLink Error : no Osutils in java.library.path
Pls let me know how to set LD_LIBRARY_PATH. I have been stuck up here
since 1 wk.
Regards,
Darshan
IndiahI Ugonic,
How are you???
hope you are well n fine.......... but I am not bcoz of this error.
I will try option given by u, Mean while pls see my dbca script. I know I am taking your much time, But Pls help to run dbca and emca..... I got stuck up bcoz of this problem sice last 1wk, and i think you are the only person who can help me out.
looking for your reply, Thanks bye
#!/bin/sh -f
# $Header: dbca.sh 21-nov-2003.17:29:23 spanchum Exp $
# dbca.sh
# Copyright (c) 1997, 2003, Oracle Corporation. All rights reserved.
# NAME
# dbassist - Shell script to run Database Creation Assistant
# DESCRIPTION
# Runs Database Creation Assistion java application
# Run this script with -h or -help option to get the help.
# MODIFIED (MMDD/YY)
# npamnani 10/23/02 - add 1.3.1. java flag
# npamnani 10/09/02 - run with java instead jre
# dkapoor 07/05/2000 - Created
# Variables set by Oracle Universal Installer for dependent components.
# Define ORACLE_HOME -> OH
OH=/oraback/orahome/OraHome_2
PLATFORM=HP_UX
ORACLE_HOME=$OH
export ORACLE_HOME;
# Version specific JAR files
JRE_FILE=rt.jar
I18_FILE=i18n.jar
EWT_FILE=ewt3.jar
JEWT_FILE=jewt4.jar
EWT_COMP_FILE=ewtcompat-3_3_15.jar
SHARE_FILE=share.jar
HELP_FILE=help4.jar
#ICE_BROWSER_FILE=oracle_ice5.jar
ICE_BROWSER5_FILE=oracle_ice5.jar
KODIAK_FILE=kodiak.jar
SWING_FILE=swingall-1_1_1.jar
XMLPARSER_FILE=xmlparserv2.jar
JDBC_FILE=classes12.zip
VISI_ORB_FILE=vbjorb.jar
VISI_TOOLS_FILE=vbjtools.jar
VISI_APP_FILE=vbjapp.jar
GSS_FILE=orai18n.jar
NETCFG_FILE=netcfg.jar
OJMISC_FILE=ojmisc.jar
PKI_FILE=oraclepki103.jar
LDAP_FILE=ldapjclnt10.jar
OPM_FILE=opm.jar
SRVM_FILE=srvm.jar
SRVMHAS_FILE=srvmhas.jar
SRVMASM_FILE=srvmasm.jar
ASSISTANTS_COMMON_FILE=assistantsCommon.jar
DBCA_FILE=dbca.jar
EMLITE_JAR=oemlt-10_1_0.jar
INSTALLER_FILE=OraInstaller.jar
# Directory Variables
SRVM_JLIB_DIR=/oraback/orahome/OraHome_2/jlib
JRE_DIR=/oraback/orahome/OraHome_2/jdk/jre
LIB_DIR=$OH/lib
VISI_LIB_DIR=$OH/lib
LIB32_DIR=$OH/lib32
JLIB_DIR=$OH/jlib
DBCA_JLIB_DIR=$OH/assistants/dbca/jlib
ASSISTANTS_JLIB_DIR=$OH/assistants/jlib
INSTALLER_JLIB_DIR=/oraback/orahome/OraHome_2/oui/jlib
# Classpath
JRE_CLASSPATH=$JRE_DIR/lib/$JRE_FILE
I18_CLASSPATH=$JRE_DIR/lib/$I18_FILE
EWT_CLASSPATH=$JLIB_DIR/$EWT_FILE:$JLIB_DIR/$EWT_COMP_FILE
SHARE_CLASSPATH=$JLIB_DIR/$SHARE_FILE
HELP_CLASSPATH=$JLIB_DIR/$HELP_FILE:$JLIB_DIR/$JEWT_FILE
ICE_BROWSER_CLASSPATH=$JLIB_DIR/$ICE_BROWSER5_FILE
KODIAK_CLASSPATH=$JLIB_DIR/$KODIAK_FILE
SWING_CLASSPATH=$JLIB_DIR/$SWING_FILE
XMLPARSER_CLASSPATH=/oraback/orahome/OraHome_2/lib/$XMLPARSER_FILE
JDBC_CLASSPATH=$OH/jdbc/lib/$JDBC_FILE
VISI_CLASSPATH=$VISI_LIB_DIR/$VISI_ORB_FILE:$VISI_LIB_DIR/$VISI_TOOLS_FILE:$VISI_LIB_DIR/$VISI_APP_FILE
GSS_CLASSPATH=/oraback/orahome/OraHome_2/jlib/$GSS_FILE
NETCFG_CLASSPATH=$JLIB_DIR/$NETCFG_FILE:$JLIB_DIR/$OJMISC_FILE:$JLIB_DIR/$PKI_FILE:$JLIB_DIR/$LDAP_FILE:$JLIB_DIR/$OPM_FILE
SRVM_CLASSPATH=$SRVM_JLIB_DIR/$SRVM_FILE:$SRVM_JLIB_DIR/$SRVMHAS_FILE:$SRVM_JLIB_DIR/$SRVMASM_FILE
EM_CLASSPATH=$OH/classes:$JLIB_DIR/$EMLITE_JAR:$JLIB_DIR/emca.jar:$OH/oc4j/j2ee/home/oc4j.jar:$OH/oc4j/j2ee/home/db_oc4j_deploy.jar:$JLIB_DIR/emConfigInstall.jar
ASSISTANTS_COMMON_CLASSPATH=$ASSISTANTS_JLIB_DIR/$ASSISTANTS_COMMON_FILE
DBCA_CLASSPATH=$DBCA_JLIB_DIR/$DBCA_FILE
INSTALLER_CLASSPATH=$INSTALLER_JLIB_DIR/$INSTALLER_FILE
# Check for silent or help
SILENT="false"
for i in $*
do
if [ $i = "-silent" ] || [ $i = "-help" ] || [ $i = "-h" ]; then
SILENT="true"
break
fi
done
# Check for DISPLAY
if [ $SILENT = "false" ]; then
case $DISPLAY in
echo "DISPLAY not set."
echo "Set DISPLAY environment variable, then re-run."
exit;
esac
fi
# The environment variable $TWO_TASK cannot be set during the installation
unset TWO_TASK
# The environment variable $JAVA_HOME cannot be set during the installation
unset JAVA_HOME
# Basic error checking
case $OH in
"") echo "*** ORACLE_HOME Not Set!"
echo " Set and export ORACLE_HOME, then re-run"
echo " ORACLE_HOME points to the main directory that"
echo " contains all Oracle products."
exit 1;;
esac
# Set the LD_LIBRARY_PATH to set the path for shared objects
# Do not set it on AIX
if [ $PLATFORM != IBM_AIX ]; then
LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib:/usr/lib:/usr/dt/lib:/usr/ccs/lib:$LIB_DIR:$LIB32_DIR:$OH/network/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi
# Set SHLIB_PATH for HP to use 32bit native libraries
SHLIB_PATH=$ORACLE_HOME/jdk/jre/lib:$LIB_DIR:$LIB32_DIR:$ORACLE_HOME/network/lib32:$SHLIB_PATH
export SHLIB_PATH
# Set LIBPATH for AIX to use 32bit native libraries
LIBPATH=$LIB32_DIR:$ORACLE_HOME/network/lib32:$LIBPATH
export LIBPATH
# Set the TNS_ADMIN
TNS_ADMIN=$OH/network/admin
export TNS_ADMIN;
# Set Classpath for Database Creation Assistant
CLASSPATH=$JRE_CLASSPATH:$I18_CLASSPATH:$DBCA_CLASSPATH:$ASSISTANTS_COMMON_CLASSPATH:$EWT_CLASSPATH:$SHARE_CLASSPATH:$HELP_CLASSPATH:$ICE_BROWSER_CLASSPATH:$KODIAK_CLASSPATH:$SWING_CLASSPATH:$XMLPARSER_CLASSPATH:$GSS_CLASSPATH:$VISI_CLASSPATH:$NETCFG_CLASSPATH:$JDBC_CLASSPATH:$SRVM_CLASSPATH:$EM_CLASSPATH:$INSTALLER_CLASSPATH
ARGUMENTS=""
NUMBER_OF_ARGUMENTS=$#
if [ $NUMBER_OF_ARGUMENTS -gt 0 ]; then
ARGUMENTS=$*
fi
# Run DBCA
$JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx64m -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
Regards,
Darshan -
Java.lang.NegativeArraySizeException in comm.channel
Hello,
have this error in RWB for comm.channel for file adapter.
java.lang.NegativeArraySizeException
We don´t have something special in the adapter of the comm.channel.
This is the source directory: $DATA1.SSBWSLS
Any idea where this comes from?
Best regards
DirkHi Michal,
last entry in trace is from 10th, this error came up yesterday!
We moved to SP14 on 24th!
So I think this is my way to OSS!
Thanks for remembering me to the Vis Admin!
Best regards
Dirk
Beg your pardon for not giving any points. The function disappeared from my log in as the score too!
Don`t know what`s going on there!
Wait for answer from SDN support! -
Java.lang.UnsupportedOperationException Error in WAD Template
Hi Frnds,
My WAD Template and the default template to execute Query is working fine for all the Query. But there is only one Query For which when am trying to execute it in portal it's working fine for some selection(when there is no data) and for some selection criteria it's showing "500 Internal Server Error - java.lang.UnsupportedOperationException" error. But the Query is working fine in the TCODE-RSRT.
500 Internal Server Error
Information for Administrator:
To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with SAP NetWeaver 7.0 Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1164789.
2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
3. When opening any customer message on this issue, please attach:
Support Desktop Tool support info ZIP file according to note 937697,
Required information for reproduction according to note 948490.
Error Summary
Exception occured while processing the current request; this exception cannot be handled by the application or framework
If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
Root Cause:
The initial exception that caused the request to fail was:
java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.selection.ComponentList.getSingleMembers(ComponentList.java:987)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.selector.MemberAccessComparator.prepare(MemberAccessComparator.java:91)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxisTupleElementComparator.prepare(RsAxisTupleElementComparator.java:43)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.QvSorting.prepareForTupleElementSorting(QvSorting.java:317)
at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.sortTuples(RsAxis.java:2013)
So please helpHi,
please implement the ABAP correction of note:
1413377 : java.lang.UnsupportedOperationException
Import Support Package 22 for SAP NetWeaver 7.0 BI Java into your
BI system.
The Support Package is available when Note 1404367 "SAPBINEWS 7.0
BI JAVA Support Package 22", which describes this Support Package
in more detail, is released for customers.
In urgent cases, you can implement the correction instructions by
applying BI Java patches:
Apply the BI Java patch Support Package 20 Patch 30 for SAP
NetWeaver 7.0 BI Java to your BI system.
Support Package 20 Patch 30 is available when Note 1404370
"Released - NW 7.0 Support Package Stack 20 Patch 30 note for BI
Java", which describes this patch in more detail, has been
released for customers.
See Note 1033246 for the planned delivery dates of all BI Java
patches.
Regards,
Venkat
Edited by: Venkadesh S on Sep 23, 2011 5:12 PM -
Java.lang.InstantiationException: Error communicating with server:
Hello everybody, I am an easy Helloworld application, the deploy is fine, but when I execute the client it appears the next error:
java.lang.InstantiationException: Error communicating with server: Lookup error:
java.net.ConnectException: Connection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
is:
javax.naming.NamingException: Lookup error: java.net.ConnectException: C
onnection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect
at com.evermind.server.ApplicationClientContext.createContext(Applicatio
nClientContext.java:300)
at com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(ApplicationClientInitialContextFactory.java:190)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at hello.HelloClient.main(HelloClient.java:33)
NamingException: Error reading application-client descriptor: Error communicatin
g with server: Lookup error: java.net.ConnectException: Connection refused: conn
ect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
is:
javax.naming.NamingException: Lookup error: java.net.ConnectException: C
onnection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect
This is my application client:
// HelloClient.java
package hello;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
import java.io.*;
import java.util.*;
import java.rmi.RemoteException;
* A simple client for accessing an EJB.
public class HelloClient
public static void main(String[] args)
System.out.println("client started...");
try {
// Initial context properties are set in the jndi.properties file
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://ecd11107.eadscasa.casa.corp:23791/helloworld");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "123");
Context context = new InitialContext(env);
// This for use with com.evermind.server.rmi.RMIInitialContextFactory
//Object homeObject = context.lookup("HelloBean");
// This is for use with com.evermind.server.ApplicationClientInitialContextFactory
Object homeObject = context.lookup("java:comp/env/Helloworld");
// Narrow the reference to HelloHome.
HelloHome home =
(HelloHome) PortableRemoteObject.narrow(homeObject, HelloHome.class);
System.out.println("hello home");
// Create remote object and narrow the reference to Hello.
Hello remote =
(Hello) PortableRemoteObject.narrow(home.create(), Hello.class);
System.out.println(remote.sayHello("James Earl"));
} catch(NamingException e) {
System.err.println("NamingException: " + e.getMessage());
} catch(RemoteException e) {
System.err.println("RemoteException: " + e.getMessage());
} catch(CreateException e) {
System.err.println("FinderException: " + e.getMessage());
Can somebody helps me ???Thank you, but don�t work well yet. I checked the files orion-application.xml & principals.xml in the directory C:\servOracle\oracle\j2ee\home\application-deployments\helloworld but the result is the same, when I run the client the next error appears:
NamingException: Lookup error: javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details; nested exception is:
javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details
This is my orion-application.xml
<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//ORACLE//DTD OC4J Application runtime 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-application-9_04.dtd">
<orion-application deployment-version="9.0.4.0.0" default-data-source="jdbc/OracleDS" treat-zero-as-null="true">
<ejb-module remote="false" path="helloworld-ejb.jar" />
<web-module id="helloworld-web" path="helloworld-web.war" />
<client-module path="helloworld-client" deployment-time="fce4439997" auto-start="false" />
<persistence path="persistence" />
<principals path="principals.xml" />
<jazn provider="XML" location="jazn-data.xml" />
<log>
<file path="application.log" />
</log>
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>
And this is my principals.xml
<?xml version="1.0"?>
<!DOCTYPE principals PUBLIC "//ORACLE//DTD OC4J Principals 9.04//EN" "http://xmlns.oracle.com/ias/dtds/principals-9_04.dtd">
<principals>
<groups>
<group name="users">
<description>users</description>
<permission name="rmi:login" />
</group>
<group name="guests">
<description>guests</description>
</group>
<group name="administrators">
<description>administrators</description>
<permission name="administration" />
</group>
</groups>
<user username="admin" password="ADMIN">
<description>The default administrator</description>
<group-membership group="administrators" />
<group-membership group="guests" />
<group-membership group="users" />
</user>
<user username="SCOTT" password="TIGER">
<description>no description</description>
<group-membership group="users" />
<group-membership group="administrators" />
</user>
</principals>
Thanks in advance, please help me.... -
Hi there
I am moving db tier on another server with the clone utility. post clone on db tier were successful but on apps tier i am getting following error in adconfig.log file
AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora.
Error generating tnsnames.ora from the database, temporary tnsnames.ora will be generated using templates
Instantiating Tools tnsnames.ora
Tools tnsnames.ora instantiated
Web tnsnames.ora instantiated
adgentns.pl exiting with status 2
ERRORCODE = 2 ERRORCODE_END
.end std out.
.end err out.
Result : FAILED
i have used following options for solution but no success
1. Open a new shell and source the APPS Environment.
2. Start the sqlplus Utility and execute following commands :
sqlplus apps/<Password>
exec fnd_conc_clone.setup_clean
3. Open a new shell and source the DB-Tier Environment.
4. Execute Autoconfig at the DB-Tier.
5. Switch to the Shell with the APPS Enviornment sourced or start a new Shell and source the APPS Environment.
6. Execute Autoconfig at the APPS-Tier.
autoconfig run successufully on db tier but failed on apps tier.
Please help me out what to do.
Regards,
MohsinHi;
What is EBS version?
Please see:
AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora. [ID 1324667.1]
During Autoconfig "adgentns.pl" fails: "AC-50480: Internal error occurred: java.lang.Exception: Error while generating listener.ora" [ID 453901.1]
"AC-50480" Error Generating the "listener.ora" File. [ID 1089036.1]
Regard
Helios -
Hi
I have installed the BEA weblogic server 6.1 service pack 4 as part of PIA (PeopleSoft
Internet Architecture) installation for PeopleSoft 8.8.
After starting the weblogic server, When I type the
http://localhost:12080 (http port number 12080) ideally it should take me to
the BEA home page, but it is throwing an error in the log file.
" Failure in Process sockets - Get Data Java.lang.nosuchmethod error"
Your help is very much appreciated.
Any pointers are welcome.
Thanks
AswarthaI had similar problems with my install of Weblogic 6.1 sp4. I am installing PS
HRMS 8.8 sp1
and PeopleTools 8.44 Patch 2 (Patch 2 is required for install) Peoplesoft sent
me Weblogic 8.1
with my new Tools 8.44. This version and installation is light years ahead of
Weblogic 6.1. If
you are able to load the new version of Weblogic and Tuxedo, it is worth it.
If not, you may want to check to see if your JAR file was installed correctly.
(The new version
of WL doesn't make you unzip your JAR files for the install.)
In the command line for unzipping the JAR file, make sure you type the phrase
EXACTLY as
shown IT IS CASE SENSITIVE. I messed with this for two hours until I saw that
I wasn't putting
a capital letter in one of the words where I should have been.
Hope this helps.
"Aswarth" <[email protected]> wrote:
>
Hi
I have installed the BEA weblogic server 6.1 service pack 4 as part of
PIA (PeopleSoft
Internet Architecture) installation for PeopleSoft 8.8.
After starting the weblogic server, When I type the
http://localhost:12080 (http port number 12080) ideally it should take
me to
the BEA home page, but it is throwing an error in the log file.
" Failure in Process sockets - Get Data Java.lang.nosuchmethod error"
Your help is very much appreciated.
Any pointers are welcome.
Thanks
Aswartha -
Hi Members,
I am getting the oracle.forms.engine.Main not found.java.lang.ClassNotFoundException error when trying to access Oracle forms using APEX 2.2.1 and SSO.
load:class.oracle.forms.engine.Main not found
The forms have been compiled, forms path setup properly and the setup required to run forms seems to be right. Jinitiator has also been installed.
I have searched the forums and tried everything. I have checked jinitiator settings, cleared cache and even reinstalled it. Do you have any experience with this error? Appreciate any answers. Thanks.
Ravi.Dear Friends,
I was also facing the same problem. to solve this, i have uninstalled Oracle Jinitiator. Cleared all the temporary internet files & cookies. Then while running the form, when it asks to install JInitiator, i have specified a different path for jinitiator, For Example, By default it asks for C:\programfiles, i have changed it to c:\manish directory.
This has solved my problem. Probably this also help you.
Regards,
Manish Trivedi,
India -
WSCOMPILE java.lang.ClassNotFoundException error
Hi there. I know this is something simple but I can't figure out where i'm going wrong.
I'm getting the java.lang.ClassNotFoundException error when running the WSCOMPILE utility. Here is my config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service name="HelloService"
targetNamespace="http://echoservice.org/wsdl"
typeNamespace="http://hello.chap12.jboss.org"
packageName="mypackage">
<interface name="mypackage.HelloWorldWebServiceSEI"/>
</service>
</configuration>
and here's my interface:
package mypackage;
import java.rmi.RemoteException;
public interface HelloWorldWebServiceSEI extends java.rmi.Remote
public String sayhello(String Name) throws RemoteException;
I'm running the command:
wscompile -define -mapping mypackage/mapping.xml -d mypackage -nd mypackage -classpath mypackage config.xmlBut keep getting this error. Can someone help?
Many thanks,
JonHere is my information....I think I have included everything needed.
SET JAVA_HOME=C:\jdk1.5.0_04
SET JBOSS_CLASSPATH=C:\jboss-4.0.2\bin;C:\jboss-4.0.2\lib;C:\jboss-4.0.2\server\gmbi-all\lib
set JAVA=%JAVA_HOME%\bin\java
set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;%JAVAC_JAR%;%RUNJAR%;%JBOSS_CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/axis-ws4ee.jar
set CLASSPATH=%CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/commons-discovery.jar
set CLASSPATH=%CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/jboss-ws4ee.jar;
set CLASSPATH=%CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/wsdl4j.jar
echo ===============================================================================
echo .
echo Bootstrap Environment
echo .
echo JAVA_HOME: %JAVA_HOME%
echo .
echo JAVA: %JAVA%
echo .
echo JAVAC_JAR: %JAVAC_JAR%
echo .
echo CLASSPATH: %JBOSS_CLASSPATH%
echo .
echo ===============================================================================
echo .
:RESTART
"%JAVA%" -classpath "%CLASSPATH%" wscompile %* -
We are using Jrun 4 updater 4 in Solaris 8 server, however,
the JRun process suddenly down with core file generated.
Exception "java.lang.NegativeArraySizeException" can be seen
in Jrun debug log as below, anybody can help!
09/10 22:28:45 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:45 debug Demultiplexer terminating on exception
java.lang.NegativeArraySizeException
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:28:45 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:47 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:47 debug Demultiplexer terminating on exception
java.lang.NegativeArraySizeException
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:28:47 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:51 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:51 debug Demultiplexer terminating on exception
java.io.EOFException
at
java.io.DataInputStream.readFully(DataInputStream.java:153)
at
java.io.DataInputStream.readFully(DataInputStream.java:126)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:58 debug Demultiplexer terminating on exception
java.lang.NegativeArraySizeException
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:28:58 debug Demultiplexer terminating on exception
java.io.EOFException
at
java.io.DataInputStream.readFully(DataInputStream.java:153)
at
java.io.DataInputStream.readFully(DataInputStream.java:126)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug Demultiplexer terminating on exception
java.io.EOFException
at
java.io.DataInputStream.readFully(DataInputStream.java:153)
at
java.io.DataInputStream.readFully(DataInputStream.java:126)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:03 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:21 debug Demultiplexer terminating on exception
java.io.EOFException
at
java.io.DataInputStream.readFully(DataInputStream.java:153)
at
java.io.DataInputStream.readFully(DataInputStream.java:126)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:03 debug Demultiplexer terminating on exception
java.io.EOFException
at
java.io.DataInputStream.readFully(DataInputStream.java:153)
at
java.io.DataInputStream.readFully(DataInputStream.java:126)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:03 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:03 debug Demultiplexer terminating on exception
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:338)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:95)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:17 debug Demultiplexer terminating on exception
java.io.EOFException
at
java.io.DataInputStream.readFully(DataInputStream.java:153)
at
java.io.DataInputStream.readFully(DataInputStream.java:126)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:21 debug Demultiplexer terminating on exception
java.io.EOFException
at
java.io.DataInputStream.readFully(DataInputStream.java:153)
at
java.io.DataInputStream.readFully(DataInputStream.java:126)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:21 debug Demultiplexer terminating on exception
java.lang.NegativeArraySizeException
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connection
09/10 22:29:22 debug Demultiplexer terminating on exception
java.lang.NegativeArraySizeException
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:22 debug Demultiplexer terminating on exception
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:338)
at
jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:95)
at
jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
at
jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
connectionSomeone suggested it could be a serialisation issue but I I'm not sure how to go about checking that.
Any suggestions ? -
ExecuteBatch() with java.lang.NegativeArraySizeException
Friends,
I'm using this code :
try {
conn.setAutoCommit(false);
PreparedStatement pstat = conn.prepareStatement("INSERT INTO tb_fre_tran_in (fre_tran_id, fre_tran_in_tlv_seq, fre_tran_in_tlv_value) VALUES (?, ?, ?)");
for (iCount=0; iCount<in.getSizeFields(); iCount++) {
pstat.setInt(1, iFreTranId);
pstat.setInt(2, Integer.parseInt(in.getFieldTag(iCount)));
pstat.setString(3, in.getFieldValue(iCount));
pstat.addBatch();
System.out.println(iCount + "-> " + iFreTranId + "Passei pelo addBatch()");
int[] res = pstat.executeBatch();
System.out.println(iFreTranId + "-->" + res.length);
conn.commit();
pstat.close();
} catch (Exception e) {
e.printStackTrace();
When the program going to execute the "int[] res = pstat.executeBatch();" line I got a error telling that "java.lang.NegativeArraySizeException"
Somebody has some idea whats happening ???
Thanks a lot,
JulianoAnyone how solved this problem?
I get the same one. I run with jdbc-odbc bridge.
Not good att all. It fails always in my application.
while((txtFileRow=reader.readLine())!=null & txtFileRow.length()>0)
System.out.println(txtFileRow);
char firstChar=txtFileRow.charAt(0);
if(firstChar=='1') {
stmt.setInt(1, nextIdInsert); //id
stmt.setInt(2, seqnrInsert++); //sequence
else if(firstChar=='2') {
stmt.setInt(1, nextIdUpdate); //id
stmt.setInt(2, seqnrUpdate++); //sequence
stmt.setInt(3, 1); //status
stmt.setString(4, "DATA"); //record_type
stmt.setInt(5, 63); //length ????????????????????????
stmt.setString(6, txtFileRow); //message_part1
stmt.addBatch();
rownr++;
if(rownr%100==0){
int[] result=stmt.executeBatch(); //!!!!!!!!!!!!!!!!!!!!
stmt.clearBatch();
int[] result=stmt.executeBatch(); //!!!!!!!!!!!!!!!!!!
Maybe you are looking for
-
Just installed Firefox 3.6. Firefox will not start and Firefox safemode does not start either. Using Task manager I do not see if started either. If I create a new profile and start from that window, Firefox starts up. I see no error windows/messages
-
IWork 09 installed via CD-ROM does not appear in app store as "installed"
I have a legal copy of iWork 09 installed via CD-ROM, it does not appear as "installed" in the app store. Any idea why?
-
Hi I am developing an application where it will read xml elements from the http site (http://www.w3schools.com/Xml/note.xml) and display in my program using DOM. while executing its giving CONTENT IS NOT ALLOWED IN PROGRAM below error. but when i am
-
HT1212 Disabled iphone restore not working
Hi, My dad has managed to disable his iphone 4s after entering the passcode wrong many times, I have tried the restore(and update) on itunes at least 6 times, but about halfway through a warning box pops up saying that the phone is passcode locked.h
-
RAR- Permissions are not populated when i create/change a funtions of actns
Hi I have uploaded all SU24 data thrw upload objects and also all rules. but surprisingly when I create / change any funtions trying to add a tcode when I go permission tab for the tcodes they are having + symbol but no authorizatiob objexts. Even we