Error while loading java program using loadjava
Hi
I have oracle 8.1.7 in NT server. When I try to load a java program with load java it gives me the error like this
Error while resolving class EchoInput
ORA-00904: invalid column name
loadjava: 1 errors
Why this is happening. How can I resolve this. Any help is appreciated
Thanks
Santhosh
You need to install teh jserver component.
have your dba review this and run all java enabling scripts.
look for it in the doc as initjvm.sql.
Similar Messages
-
Error while loading java file in Oracle
Hi,
I am facing error while loading java class into oracle . Can you please help
-bash-3.2$ cd /export/home/sacuser/
-bash-3.2$ loadjava -user sacuserdb/sacuserdb@BLM - resolve Oracle_Validator/src/com/nec/blm/oracle/validator/Validate.java
unrecognized or badly formed option -
loadjava: Usage: loadjava [-definer] [-encoding encoding] [-force] [-genmissing] [-genmissingjar jar] [-grant grant s] [-help] [-nousage] [-noverify] [-oci8] [-order] [-resolve] [-resolver resolver] [-schema schema] [-synonym] [-th in] [-tableschema schema] [-user user/password@database] [-verbose] classes..jars..resources..properties...
-bash-3.2$ loadjava -user sacuserdb/sacuserdb@BLM -resolve Oracle_Validator/src/com/nec/blm/oracle/validator/Validate.java
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:346)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:413)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:131)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:77)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:752)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
- locked <0xf5fdc448> (a java.lang.Class)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
- locked <0xf5fdc448> (a java.lang.Class)
at oracle.aurora.server.tools.loadjava.DatabaseOptions.getConnection(DatabaseOptions.java:180)
at oracle.aurora.server.tools.loadjava.DatabaseOptions.connect(DatabaseOptions.java:123)
at oracle.aurora.server.tools.loadjava.LoadJavaState.getConnection(LoadJavaState.java:409)
at oracle.aurora.server.tools.loadjava.LoadJavaState.getOldMD5(LoadJavaState.java:696)
at oracle.aurora.server.tools.loadjava.ClientSchemaObject.getOldMD5(ClientSchemaObject.java:52)
at oracle.aurora.server.tools.loadjava.SchemaObject.doCreate(SchemaObject.java:172)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:215)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
at oracle.aurora.server.tools.loadjava.LoadJava.addSource(LoadJava.java:574)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:439)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
Dynamic libraries:
0x8050000 /opt/oracle/product/10g/jdk/jre/bin/java
0xfef80000 /lib/libthread.so.1
0xfef40000 /lib/libdl.so.1
0xfee10000 /lib/libc.so.1
0xfea00000 /opt/oracle/product/10g/jdk/jre/lib/i386/client/libjvm.so
0xfedd0000 /usr/lib/libCrun.so.1
0xfedb0000 /lib/libsocket.so.1
0xfe960000 /lib/libnsl.so.1
0xfed90000 /lib/libm.so.1
0xfedc0000 /usr/lib/libsched.so.1
0xfe900000 /lib/libm.so.2
0xfed40000 /lib/libscf.so.1
0xfe8e0000 /lib/libdoor.so.1
0xfe8b0000 /lib/libuutil.so.1
0xfe890000 /lib/libgen.so.1
0xfe870000 /lib/libmd.so.1
0xfe850000 /lib/libmp.so.2
0xfe830000 /opt/oracle/product/10g/jdk/jre/lib/i386/native_threads/libhpi.so
0xfe3d0000 /opt/oracle/product/10g/jdk/jre/lib/i386/libverify.so
0xfe3a0000 /opt/oracle/product/10g/jdk/jre/lib/i386/libjava.so
0xfe380000 /opt/oracle/product/10g/jdk/jre/lib/i386/libzip.so
0xf9e80000 /opt/oracle/product/10g/lib32/libocijdbc10.so
0xf0e00000 /opt/oracle/product/10g/lib32/libclntsh.so.10.1
0xf0c60000 /opt/oracle/product/10g/lib32/libnnz10.so
0xf9e60000 /lib/libkstat.so.1
0xf9e30000 /lib/libaio.so.1
0xf1b60000 /lib/librt.so.1
Heap at VM Abort:
Heap
def new generation total 576K, used 237K [0xf1e00000, 0xf1ea0000, 0xf22e0000)
eden space 512K, 45% used [0xf1e00000, 0xf1e3a058, 0xf1e80000)
from space 64K, 8% used [0xf1e90000, 0xf1e915c0, 0xf1ea0000)
to space 64K, 0% used [0xf1e80000, 0xf1e80000, 0xf1e90000)
tenured generation total 1408K, used 204K [0xf22e0000, 0xf2440000, 0xf5e00000)
the space 1408K, 14% used [0xf22e0000, 0xf23130f0, 0xf2313200, 0xf2440000)
compacting perm gen total 4096K, used 2662K [0xf5e00000, 0xf6200000, 0xf9e00000)
the space 4096K, 65% used [0xf5e00000, 0xf6099a38, 0xf6099c00, 0xf6200000)
Local Time = Mon Jun 17 16:29:08 2013
Elapsed Time = 0
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
# An error report file has been saved as hs_err_pid27805.log.
# Please refer to the file for further information.
Abort (core dumped)Please try to compile your java source file with jdk avaiable in ORACLE_HOME\jdk\bin\javac.
load the compiled class file in oracle DB using loadjava utility.
loadjava -user scott/tiger javafile.class -
Error While loading into BW using infoPackage
Hi All,
While following directions posted at the following wiki page https://wiki.sdn.sap.com/wiki/display/BOBJ/ConfiguretheLoadJobinBW%28DS+3.2%29,
we get an error while loading data into BW using infoPackage via Data services 3.2
In SAP BI side Error says :"Error while executing the following command: -sJO return code:220"
On DS side for the RFC server log we get the error" Error while executing the following command -sJOB_SQL_TO_DBI -Ubbu -P;(encrypted password) -A (encryted information) -VMODE=F"
Issue is still open with support as we still cannot excute the job from infopackage. it is succesfully executed from designer, admin console, batch file.
Any insights/help would be appreciated.
Thanks.
Edited by: rana_accn on Jan 26, 2010 6:48 PMSure I will.
One thing we have noticed is that in the server_eventlog parameter for the log line "Starting job with command line parameters are different"
When job is executed from DS side parameters -Ct -Cm -Ca -Cj -Cp -S -N -Q -U -P -G -r -T -Locale are used
When job is executed from BW side parameters -Ct -Cm -Ca -Cj -Cp -s -N -Q are used
Also when the job is executed from BW, log files start getting created but then trace and error file show an error that cannot open database - and that points to DSCentral repository.This repository is not even mapped to the job server and the job has been exported from the correct repository as command line execution of the job works perfectly fine.
Thnx
Just an update we were not able to figure out why this happened in the existing environment. One reason given was that somehow the commands which were being executed from BW side were getting corrupted. We had to build a new environment and this is no longer an issue in the new environment, as now all jobs can be executed from BW. Only difference between the 2 environments was we are now on 12.2.1.3 while earlier we were on 12.2.0.0.
Edited by: rana_accn on Mar 23, 2010 10:21 PM
Edited by: rana_accn on Apr 29, 2010 9:46 PM -
TSV_TNEW_PAGE_ALLOC_FAILED error while loading the DATA using DTP
Hi,
While loading the data using DTP for 2 DSO's we are gettig the error
TSV_TNEW_PAGE_ALLOC_FAILED
can any one kindly help me out regarding the same.
Thank You,
Poornima.Hi Soundarya,
Thanks a lot for the reply. But i found that its running fine in development, where as coming to quality its throwing an error. These happened for Two DSO's. In both the transformations i have identified that the Transformation names are different from Development and Quality..
There are no routines written for them and no select statements have been used
Can you please suggest me regarding the same.
Edited by: Poornima Gayatri on Mar 22, 2010 7:00 AM -
Strange error while running java program in oracle
Hi all,
I have written a java program and saved it as .sqlj file. i have to run the program on sql prompt.
while running the program i am getting the following error.Please help me.I am in urgent situation
ORA-29536: badly formed source: User has attempted to load a class
(tactossSecurity) into a restricted package. Permission can be granted using
dbms_java.grant_permission(<user>, LoadClassInPackage...
Thanks & Regards
Raghavender Rao KodumuriRaghavender,
I also answered you in the SQL forum, where you posted the exact same question.
Re: Trying to execute java programm in oracle getting the following error
Good Luck,
Avi. -
Error while compiling java file using J2SE 1.5.0
Dear Sir,
I'm getting the following error while compiling the java file.The code is also given.
package test;
public class TestRowSet {
public TestRowSet() {
"TestRowSet.java": cannot access java.lang.Object,bad class file: D:\Program Files\Java\jdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 4, column 1
Please help me out.
--Suketu Naik.But I'm compiling within "Borland JBuilder 9.0". I've
set the JDK path of the current project to point to
the path of JDK 1.5.0 . I've also tried to compile at
command prompt with "javac". I'm getting the same
error of "Undefinedclassloader" with long StatckTrace.
I don't know anything about JBuilder either. If you use the command prompt and enter the full path to the 1.5 javac.exe then that will prove whether the issue is using an older javac or not. For example "c:\j2sdk1.5.0_01\bin\javac HelloWorld.java" -
Error while running Java program which call a file upload servlet
Hi all,
I have a java program which calls a servlet and sends the file to be uploaded by the servlet. I used Jbuilder to create java program and servlet program. I compiled both the programs and compilation suceeded and my class files are avaialbe in
WEB-INF/classes/content directory. But now I am trying to run the Java program(this contains main method) from the command prompt, which should inturn call my servlet.(I have web.xml file inside WEB-INF dir). But I receive the following error
C:\tomcat5.5.15\apache-tomcat-5.5.16\webapps\content\WEB-INF\classes\content>java MultiContentSender
Exception in thread "main" java.lang.NoClassDefFoundError: MultiContentSender (w
rong name: content/MultiContentSender)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
My dir strcture is as below
TOMCAT_HOME/webapps/content/WEB-INF/classes/content/*.class
I am not able to figure out the error, can anyone throw some light on this issue.You are trying to invoke the class from the command prompt. My guess is that MultiContentSender contains a package, which means that you'll need to add your WEB-INF\classes directory to the classpath before it will work. Classes stored in this directory are expected to be invoked through tomcat, which builds it's own classpath.
-
Error while invoking Java Program in BPEL
When I'm invoking a simple "Hello World" Java Program from BPEL it is working fine but while invoking a Java Program which is downloading some data from a website I'm getting the following error:
Faulted while invoking operation "Helper" on provider "CMP_GBL_IN_URL_Download"
<messages><input><Invoke_Helper_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><payload xmlns:ns1="http://www.arrow.com/CMP_GBL_IN_Exchange_Rate_Interface_Controller">
<ns1:input/>
</payload>
</part></Invoke_Helper_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>[email protected]0 : Could not invoke 'Helper'; nested exception is:
org.collaxa.thirdparty.apache.wsif.WSIFException: No method named 'Helper' found that match the parts specified</summary>
</part><part name="detail"><detail>org.collaxa.thirdparty.apache.wsif.WSIFException: No method named 'Helper' found that match the parts specified</detail>
</part></bindingFault></fault></messages>
Can anybuddy please help me on this.In what way do you invoke the Java program?
Riko -
Error while calling java program from ABAP
Hi Experts,
We are trying for RFC inbound scenario.
We followed the below blog
/people/gregor.wolf3/blog/2004/08/26/setup-and-test-sap-java-connector-outbound-connection
We are working with SAP JCO 3.0.2
We are getting the error : 'STFC_CONNECTION' could not be found in the server repository.
After I run the Java server program if I execute the RFC destination directly from SM 59 it is showing successful messages.
If I stop the java program then this RFC is failing. Based on this we concluded that RFC to Java connection is working fine.
But as mentioned in blog if we call the RFC Destination from ABAP program it is giving the below error,
'STFC_CONNECTION' could not be found in the server repository.
If we test the RFC destination using RFC_TRUSTED_CHECK standard FM we are getting the below error.
'RFCPING' could not be found in the server repository.
We create the RFC destination of Type : TCP/IP as exactly mention in the blog.
Please help us in resolving this issue.
Thanks
PrincePabi,
Using the RFC connection,we can establish a link between Java and SAP.
Afterwards,hope we can call Java program from ABAP.
Below is the sample piece of code to establish RFC connection(link) between Java and SAP.
DATA: REQUTEXT LIKE SY-LISEL,
RESPTEXT LIKE SY-LISEL,
ECHOTEXT LIKE SY-LISEL.
DATA: RFCDEST like rfcdes-rfcdest VALUE 'NONE'.
DATA: RFC_MESS(128).
REQUTEXT = 'HELLO WORLD'.
RFCDEST = 'JCOSERVER01'. "corresponds to the destination name defined in the SM59
CALL FUNCTION 'STFC_CONNECTION'
DESTINATION RFCDEST
EXPORTING
REQUTEXT = REQUTEXT
IMPORTING
RESPTEXT = RESPTEXT
ECHOTEXT = ECHOTEXT
EXCEPTIONS
SYSTEM_FAILURE = 1 MESSAGE RFC_MESS
COMMUNICATION_FAILURE = 2 MESSAGE RFC_MESS.
IF SY-SUBRC NE 0.
WRITE: / 'Call STFC_CONNECTION SY-SUBRC = ', SY-SUBRC.
WRITE: / RFC_MESS.
ENDIF.
Regards,
Sree -
Error while running Java application using Crystal Reports 2011
Hello,
I would like to ask for your help.
Environment details:
Java based standalone application in Development environment.
Crystal Reports 2011 (no SP applied)
Oracle 11g ( 32 bit client installed)
Win7 64 bit OS.
Workflow:
While running the java application, which will display the reports I am getting the below mentioned error. I guess that is because I am missing the Crystal runtimes (Correct me if I am wrong).
I know that CR2011 do not have any sdks/ jar available for deployment. In this case, which runtimes should I be using? Does installing CR2011 be enough in the development box?
Please provide me the link from which I can download the same.
Let me know if I need to provide more details on this. Any suggestions are most welcome.
Thank You.
Code used:
reportClientDoc = new ReportClientDocument();
System.err.println("Opening the Report ");
reportClientDoc.open(REPORT_PATH, 0);
// this is where the error or exception is thrown
_Error: _
log4j:WARN No appenders could be found for logger (com.crystaldecisions.reports.reportdefinition.ReportDocument).
log4j:WARN Please initialize the log4j system properly.
com.crystaldecisions.sdkreport.lib.ReportSDKException: com/businessobjects/reports/jdbinterface/common/DBException---- Error code:-2147467259 Error code name:failed
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:286)
at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43)
at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.<init>(SourceFile:703)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632)
at com.crystaldecisions.sdk.report.application.ClientDocument.if(SourceFile:504)
at com.crystaldecisions.sdk.report.application.ClientDocument.open(SourceFile:669)
at com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
at rp.batch.bo.RpJRCExportReport.runReportExport(RpJRCExportReport.java:517)
at rp.batch.bo.RpSchedReportRun.process(RpSchedReportRun.java:163)
at rp.batch.bo.RpSchedReportRun.drive(RpSchedReportRun.java:240)
at rp.batch.bo.RpSchedReportRun.main(RpSchedReportRun.java:265)
Caused by: java.lang.NoClassDefFoundError: com/businessobjects/reports/jdbinterface/common/DBException
at com.crystaldecisions.reports.queryengine.Session.a2(SourceFile:244)
at com.crystaldecisions.reports.datafoundation.DataFoundation.do(SourceFile:376)
at com.crystaldecisions.reports.dataengine.dfadapter.DFAdapter.do(SourceFile:111)
at com.crystaldecisions.reports.dataengine.datafoundation.CreateDataConnectionCommand.new(SourceFile:81)
at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)
at com.crystaldecisions.reports.common.Document.a(SourceFile:203)
at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:442)
at com.businessobjects.reports.reportconverter.v12.e.a(SourceFile:231)
at com.businessobjects.reports.reportconverter.v12.d.m(SourceFile:192)
at com.businessobjects.reports.reportconverter.v12.f.if(SourceFile:210)
at com.businessobjects.reports.reportconverter.v12.V12SaveLoader.a(SourceFile:242)
at com.businessobjects.reports.loader.ReportLoader.a(SourceFile:205)
at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:137)
at com.businessobjects.reports.sdk.JRCReportLoader.a(SourceFile:76)
at com.businessobjects.reports.sdk.requesthandler.ReportDocumentRequestHandler.a(SourceFile:136)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:229)
... 12 more
Caused by: java.lang.ClassNotFoundException: com.businessobjects.reports.jdbinterface.common.DBException
at java.net.URLClassLoader1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.LauncherAppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 28 moreHelp me ...
Ambient:
Crystal Reports Viewer 14.0.0.0
java.vendor = Sun Microsystems Inc.
java.version = 1.6.0_37
os.name = Windows NT (unknown)
os.version = 6.2
os.arch = amd64
Exception:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects.sdk.erom.jrc.ReportAgentFactory---- Error code:-2147215357 [CRSDK00000026] Error code name:internal
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(ReportSDKException.java:112)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.createDefaultAgent(RemoteAgent.java:1000)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initRemoteAgent(ClientDocument.java:770)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(ClientDocument.java:961)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open(ReportClientDocument.java:226)
at src.HelloWorldSwing.createAndShowGUI(HelloWorldSwing.java:54)
at src.HelloWorldSwing.main(HelloWorldSwing.java:24)
Source:
import java.awt.BorderLayout;
import javax.swing.JFrame;
import com.crystaldecisions.ReportViewer.ReportViewerBean;
import com.crystaldecisions.sdk.occa.report.application.DatabaseController;
import com.crystaldecisions.sdk.occa.report.application.OpenReportOptions;
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.data.IConnectionInfo;
import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
public class HelloWorldSwing {
* @param args
public static void main(String[] args) {
HelloWorldSwing pgm = new HelloWorldSwing();
try {
pgm.createAndShowGUI();
} catch (Exception e) {
e.printStackTrace();
//JOptionPane.showMessageDialog(null, e.toString());
* @throws Exception
public void createAndShowGUI() throws Exception {
// Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(false);
// Create and set up the window.
JFrame frame = new JFrame("HelloWorldSwing");
frame.setTitle("Titolo del Report");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ReportViewerBean viewer = new ReportViewerBean();
viewer.init(new String[0], null, null, null);
ReportClientDocument rpt = new ReportClientDocument();
rpt.setReportAppServer(ReportClientDocument.inprocConnectionString); // inproc:jrc
rpt.open("Report.rpt", OpenReportOptions._openAsReadOnly);
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource(rptSource);
frame.getContentPane().add(viewer, BorderLayout.CENTER);
frame.setSize(1930, 1030);
frame.setVisible(true);
viewer.start(); -
Error while running PING program using applet. Pls correct the code.-urgent
Can anyone pls correct the error in the below code.
Program : TestExec1
Using : Applet
Logic : Trying to display the ping status in the text area but it returns error...!
CODING
import java.awt.*;
import java.lang.*;
import java.io.*;
import java.net.*;
import java.awt.event.*;
import java.applet.*;
import java.*;
/*<applet code="TestExec1" width=380 height=150>
</applet>
public class TestExec1 extends Applet
String line = null;
TextArea outputArea;
Process p;
public void init()
outputArea = new TextArea(20,20);
public void start()
try
Process p= Runtime.getRuntime().exec("ping 192.168.100.192 -t");
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
while ((line = in.readLine()) != null)
outputArea.append("\n" + line);
System.out.println(line);
catch (IOException e)
e.printStackTrace();
Error : C:\Program Files\Java\jdk1.6.0_02\bin>appletviewer TestExec1.java
java.security.AccessControlException: access denied (java.io.FilePermission <<AL
L FILES>> execute)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:323)
at java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkExec(SecurityManager.java:782)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:447)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:431)
at java.lang.Runtime.exec(Runtime.java:328)
at TestExec1.start(TestExec1.java:31)
at sun.applet.AppletPanel.run(AppletPanel.java:458)
at java.lang.Thread.run(Thread.java:619)
Regards
ESMjava.security.AccessControlException: access denied (java.io.FilePermission
<<ALL FILES>> execute)This message tells you that the applet does not have permission to access/execute files. Access may be granted by either signing the applet, which allows the user to grant (or not grant) the access when running the applet, or by adding the necessary permission file to the user's computer.
See http://java.sun.com/javase/6/docs/technotes/guides/security/index.html -
Error while loading velocity template using ear file (weblogic 8.1,SP5)
Hi,
In one of our j2ee applications we have a web application and an EJB application.
Web application uses velocity(1.2).
Application server is weblogic 8.1 with sp5.
If web app and ejb app are deployed separately, web app is able to load templates properly but if we make an ear file bundling web app and ejb app, we get following error at the time when application tries to load even the first velocity template.
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'login.vt'
at org.apache.velocity.runtime.resource.ResourceManager.getResource(ResourceManager.java:438)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:736)
at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:718)
at org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java:337)
at org.apache.velocity.servlet.VelocityServlet.getTemplate(VelocityServlet.java:499)
at com.nfsmith.servlet.Controller.handleRequest(Controller.java:377)
at org.apache.velocity.servlet.VelocityServlet.doRequest(VelocityServlet.java:331)
at org.apache.velocity.servlet.VelocityServlet.doGet(VelocityServlet.java:292)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
We have tried to configure and use all the resource loader for velocity engine(FileResourceLoader, ClasspathResourceLoader , JarResourceLoader etc.) but noting is working.
I have tried keeping all the templates under WEB-INF\classes dir. This does not work.
I have even tried keeping all the templates in a separate jar file and kept the same under APP-INF/lib and bundled the same in ear file, even this does'nt work either.
Should I create a rar file archive or is there any other way to achieve this?
Appreciate your responses.
JaspalPlease repost this in the WebLogic Portal forum:
WebLogic Portal -
Error while loading java applets
hello,
for some reason, whenever i try to open up a website using a java applet or even when I tried to download the latest version of jre, i get this error:
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:\Users\owner
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class RedBlack.class not found.
java.lang.ClassNotFoundException: RedBlack.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: RedBlack.class
redBlack.class happen to be one particular applet i was trying to look at. it happens for all sites w/ java applets. Help is very much appreciated.I see this in the stack trace:
Caused by: java.net.ConnectException: Connection timed out: connectIs it possible you're connecting through a proxy that filters out class files?
Or maybe you're going through a proxy but haven't configured the JVM to go through the same firewall?
Or something else like that? -
Error while loading xml files using JDBC
Hi,
I am trying to load xml files into an xmltype table using JDBC calls and am getting this error for some files
LPX-00200: could not convert from encoding UTF-8 to UCS2
The xml files and our database are both UTF-8 encoded. The version of oracle that we have here is 9.2.0.6
Any suggestions in this matter will be greatly appreciated.
Thanks,
UmaI also experienced this problem and unfortunately this solution didn't work for me given that the tag you suggested was already on the XML file.
-
Error while loading external data using Business Content
Hi,
I am new to BW and I'm stuck up with this problem.
I'm trying to load data from external file using business content cube(0PUR_C01)and infosources(2LIS_02_ITM/S012/SCL).
I first installed the above mentioned cube and data sources.
Then I activated the update rules and transfer rules, without any changes.(I don't know what changes might be required!)
Monitor is showing successful load but the cube has 0 enteries.
Even the simulation of update is showing data in the data target.
Can someone please guide me through this ?
Its really urgent....
Thank you all in advance.Hi Sharmistha,
Welcome to SDN !! Does your monitor shows any records extracted till PSA ? Go to the details tab -> processing and click on each node to check what monitor shows.
Hope it helps.
Thx,
Soumya
Maybe you are looking for
-
Problem with context mapping and data flow in a FPM application
Hi All, I am trying to develop an ESS application using FPM. For the same, the requirement is to see the history of an employee in the second view. The first view has got just the overview information and the second one has got the detail. So, the re
-
Newbie: orion-application.xml in both deployment and applications dirs
Okay, I am using OAS 10.1.2.2 and have deployed an OC4J instance with a web application. The web application that I deployed (from a .war file) was installed normally but for some reason I have an orion-application.xml file in both the +/application-
-
Cash or bank account should not go below zero
hi friends, what are configuration required to set bank and cash account should not go below zero. and system should give an error message for the same.
-
Installing SMC 3.5.1a on Solaris 10
After "successfully" installing SMC via es-guiinst the process fails when attempting to use es-setup/es-guisetup. I get a message saying setup unsuccessful and pointing to a log (/var/opt/SUNWsymon/install/gui_setup_spinel.x) containg the following i
-
Hi every one I have a problem with date format in my database. I am using Oracle8 Release 8.0.4.0.0 - Production server. Generally all procedures in my application runs with the date format DD-MON-YY I dont know suddenly what happens to this format a