错误:编码UTF-8的不可映射字符由于版权特征,我收到此错误.我正在使用netebans 7.2.
/**
* ? 2006
*
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.6-2b01
* Generated source version: 2.1
*
Run Code Online (Sandbox Code Playgroud) 我已经安装了OpenSSL sudo apt-get install openssl-dev.当我尝试使用Netbeans它编译它时会出现以下错误.我该如何解决这个问题?
g++ -lssl -o dist/Debug/GNU-Linux-x86/cppapplication_2 build/Debug/GNU-Linux-x86/main.o -L/home/sercan/Desktop/openssl-0.9.8h-1-lib/lib
build/Debug/GNU-Linux-x86/main.o: In function `main':
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:46: undefined reference to `OPENSSL_add_all_algorithms_noconf'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:48: undefined reference to `ERR_load_crypto_strings'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:58: undefined reference to `d2i_PKCS12_fp'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:66: undefined reference to `ERR_print_errors_fp'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:72: undefined reference to `PKCS12_parse'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:76: undefined reference to `ERR_print_errors_fp'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:82: undefined reference to `PKCS12_free'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:96: undefined reference to `PEM_write_PrivateKey'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:104: undefined reference to `PEM_write_X509_AUX'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:108: undefined reference to `sk_num'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:114: undefined reference to `sk_value'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:114: undefined reference to `PEM_write_X509_AUX'
/home/sercan/NetBeansProjects/CppApplication_2/main.cpp:112: undefined …Run Code Online (Sandbox Code Playgroud) 当我<h:form>在下面提到的页面中单击标签的命令按钮时,我希望在我点击提交按钮后,查询参数作为请求参数发送,就像我的页面URL一样../index.xhtml?cid=12&ctype=video.
我希望在我的动作方法中它应该被打印CID=12,然而,它打印出来CID=NULL.有什么问题,如何解决?
我的看法:
<h:body id="body">
<h:form id="form">
<p:commandButton action="#{authorizationBean.getParameters()}" value="Ajax Submit" id="ajax" />
</h:form>
</h:body>
Run Code Online (Sandbox Code Playgroud)
我的托管bean:
@ManagedBean
@SessionScoped
public class AuthorizationBean {
public boolean getParameters(){
Map<String, String> parameterMap = (Map<String, String>) FacesContext.getCurrentInstance()
.getExternalContext().getRequestParameterMap();
String cid = parameterMap.get("cid");
System.out.println("CID="+cid);
return true;
}
}
Run Code Online (Sandbox Code Playgroud) 我有一张这样的桌子:
CREATE TABLE `testt` (
`id` int(11) NOT NULL,
`pid` int(11) DEFAULT NULL,
`active` int(11) NOT NULL DEFAULT '0',
`pacitve` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `id` (`id`,`active`),
KEY `pid` (`pid`,`pacitve`),
CONSTRAINT `active_fk` FOREIGN KEY (`pid`, `pacitve`) REFERENCES `testt` (`id`, `active`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1
Run Code Online (Sandbox Code Playgroud)
pid代表父ID
我的数据是这样的:
id pid active pactive
1 NULL 0 0
2 1 0 0
3 1 0 0
4 2 0 0
Run Code Online (Sandbox Code Playgroud)
当我为id = 1设置active = …