我的.sh文件包含下一个内容:
#!/bin/bash
echo -------- uploader.sh v 0.1 --------
ORACLE_HOME=/opt/app/oracle/product/10.2.0/db_1/bin/
export ORACLE_HOME
PATH=$ORACLE_HOME
export PATH
sqlldr userid=PR/0611@database control=control_file.ctl LOG=fb_log.log errors=100
Run Code Online (Sandbox Code Playgroud)
所以,我想运行sql loader并上传数据.当我运行uploader.sh时,我收到来自unix的下一条消息:
未找到消息2100; 没有找到product = RDBMS,facility = ULMessage 2100的消息文件; product = RDBMS,facility = UL没有消息文件
我已经读过它并得出结论,问题出在环境变量中.你可以帮我解决这个错误吗?
抱歉愚蠢的问题......任何人都可以帮我从方法中返回两个变量(我在这里阅读 并尝试重新编码,但没有结果).
public class FileQualityChecker {
EnviroVars vars = new EnviroVars();
public int n = 0;
public int z = 0;
public int m = 0;
String stringStatus;
public void stringLenghtCheck(String pathToCheckedFile)
{
try{
FileInputStream fstream = new FileInputStream(pathToCheckedFile+"\\"+"Test.dat");
// Get the object of DataInputStream
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
//Read File Line By Line
while ((strLine = br.readLine()) != null)
{
if (
strLine.length() == vars.strLenghtH ||
strLine.length() == …Run Code Online (Sandbox Code Playgroud) 同事,我的测试课中有@ignore批注 AppTest.java.
import java.math.BigInteger;
import java.util.UUID;
import org.fluttercode.datafactory.impl.DataFactory;
import org.junit.Ignore;
import org.junit.Test;
import junit.framework.TestCase;
public class AdapterAppTest extends TestCase {
@Ignore("this test is not ready yet")
public static void testCreateApplicationWithAllRequiredParameters() {
AdapterApp.setWsURL(URL);
AdapterApp adapterApp = new AdapterApp();
System.out.println("Set UP Request Parameters");
DataFactory df = new DataFactory();
adapterApp.setRequestTimestamp("2015-12-01T12:12:12.123"));
adapterApp.setRequestUid(UUID.randomUUID().toString());
adapterApp.setProductType("0");
String applicationNum = adapterApp.createApplication();
assertEquals("2 symb", 2, applicationNum.length());
}
}
Run Code Online (Sandbox Code Playgroud)
我的pom看起来:
<!-- Spring framework -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency> …Run Code Online (Sandbox Code Playgroud) 我在Jetty上部署了一个Web服务.我使用SOAP UI通过链接调用它http://ip:port/DefaultRequestListener?workflow=WsdlCPF&soapAction=Import,它的工作原理.我一直在使用在网址末尾有?wsdl的服务,但现在我很困惑.为什么在url的末尾没有?wsdl?
我不明白为什么 maven-surefire-plugin 不运行 jUnit4 测试。我的 pom 是(无法在此处添加它,因为“它看起来帖子主要是代码”):http://pastebin.com/Jj3iJZpY
当我执行mvn clean testcmd窗口时显示:
C:\Users\maya\git\services>mvn clean test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building services 1.0.18
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ services ---
[INFO] Deleting C:\Users\maya\git\services\target
[INFO]
[INFO] --- maven-mule-plugin:1.9:attach-test-resources (default-attach-test-resources) @ services ---
[INFO] attaching test resource C:\Users\maya\git\services\src\main\app
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-resource (add-resource) @ services ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ services ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 …Run Code Online (Sandbox Code Playgroud)